Programming :: What Kind Of Code Has Shapes In It?
Sep 10, 2010When I open program files in windows some of them are almost nothing but boxes and triangles. I was always curious what the hell it was.
View 2 RepliesWhen I open program files in windows some of them are almost nothing but boxes and triangles. I was always curious what the hell it was.
View 2 RepliesI've been working on it for over 20 hours and I'm stuck. It asks the user for input and then prints a shape of a certain length.
View 4 Replies View RelatedHere is my program. It asks the user for input and then prints a shape of a certain length. The errors I get when I compile are:
shape.c: In function "main":
shape.c:22: error: expected identifier or "(" before "int"
shape.c:58: error: expected expression before "return"
shape.c:59: error: expected expression before "}" token
shape.c:59: error: expected expression before "}" token
#include<stdio.h> .....
Following on from my issues with QSplashScreen, I am wanting to investigate the QPainter class(es) some more.
Code:
How would I best achieve this:
- Draw some shapes and gradients with QPainter/QPen etc
- Create a splash screen out of it
- Display SplashScreen.
I cannot find anything that doesn't involve
Code:
I am comfortable making splash screens out of images, but now I want to try drawing one myself.
since some days I have a strange problem with KMail (1.13.5) in KDE4.5.5. When I try to copy some text from an email and past it to any other program (e.g. Openoffice), not only the marked text will be pasted, but a kind of HTML code including the text.
This bug is not OpenSuse specific. I found the same bug in a Fedora mailing list (of course, whithout an answer): Strange Copy/Paste behavior in KMail 1.13.5/Kontact 4.4.8
Is there some kind of certification or certificate for Python?
View 2 Replies View RelatedDoes anybody know any Java package that can be used for playing music with different kind of instruments. Is any package which implements the java.sound api http://java.sun.com/products/java-me.../doc-midi.html
View 1 Replies View RelatedI need to rewrite the selenium java code into its equivalent php code.
View 5 Replies View RelatedIs it possible to get rid of the windowshapes in the desktop switcher application? I just want to see the square of the desktop an it's title, not the ugly shapes of all open windows on it.Or any alternatives?
View 2 Replies View RelatedFor example, if I fill in a circle with black (using the ellipse tool), then fill the surrounding with another color (a dark color) there will be a nearly white outline of the circle. I don't want there to be an outline. The whole canvas should be ALL black.
View 1 Replies View RelatedI have a Macbook Pro which i want to install Opensuse 11.2 64bit(Upgrades to 11.3) The problem is that once i install opensuse and then boot via rEFIt, it loads up till the desktop is supposed to appear. All i get at this stage is darkness with a few coloured shapes in the background (Video driver not loaded).I can however reboot and go in via the failsafe option. Once in here i can use the GUI. I am a total noob with linux, can some one give me the instructions on how to install this driver. Its driving me insane. When i run uname -r, the results are 2.6.33-6-default I have added the following http repository (download.nvidia.com/opensuse/11.2/)
View 3 Replies View RelatedI am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?
View 12 Replies View RelatedIs there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies View RelatedI went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error
./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!
[code]....
I have the following code:
Code:
#!/bin/bash
function dx {
[Code].....
So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).
It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:
Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y
[Code]....
I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.
View 10 Replies View RelatedI have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?
Code:
section .data
msg db 'Hello, World!', 10
[code]....
whichever source code I go through I find these three lines of code written what do they actually mean and what is their function?
[code]...
I want to write a c program with some shell scripts.Now For a simple C program. I am Setting a variable called val2 in bash, now I want to use bash variable val2 in C code. How do I do that?The above doesn't work (coz its spawning a different memory space and when shell script ends the variable dies with it as per my research but how do I keep them in same memory space)Also Is there any Good reference where they teach how to integrate C and Bash Together?
View 5 Replies View RelatedCan you find an alternative for Code: wc -l using grep?
View 1 Replies View RelatedLooking for code to add 5 numbers in assembly? I want to use array for input of those 5 numbers. No problem if the output is 1 digit(0....9).
View 3 Replies View RelatedI've been converting some C code to assembly for my homework; it was going well but I'm having trouble with a for loop for hours. I could not understand where is the problem and decided to ask. I'm posting the part where I'm having trouble of my C-code and assembly-code; every other part of codes act same and the variable values are same. I'm waiting this two codes to act same, but they don't.
Code:
mov ebx, [result]
mov eax, [i]
mov ecx, [ebx+eax]
mov [j], ecx
mov [ebx+eax], byte '.'
_loop:
mov ebx, [result]
mov eax, [i]
inc eax
mov cl, [ebx+eax]
cmp cl, 'Z'
je _continue
mov ebx,[result]
mov eax,[i]
inc eax
mov ecx, [ebx+eax]
mov [k], ecx
mov ebx, [result]
mov eax, [i]
inc eax
mov ecx, [j]
mov [ebx+eax], ecx
mov ecx, [k]
mov [j], ecx
inc dword [i]
jmp _loop
_continue:
Code:
j=result[i];
result[i]='.';
for(;result[i+1]!='Z';i++){
k=result[i+1];
result[i+1]=j;
j=k;
}
I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...
View 6 Replies View Relatedi want to run this code
[code]...
i have error in graphics. i have C++ 2005
I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:
foo.c:
Code:
#include <stdio.h>
extern int qux_();
main() {
[code]....
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.
View 4 Replies View RelatedI created a dbf file via a code but the file does'nt seems to open.
Quote:
Code is running file and the file emaster.dbf and etran.dbftoo is created in the home directory but it does'nt opens(Libre Office 3 can't open it).
How to open the file.? I want to add information to the database file(Dbf) file. But until it opens how will I achieve my purpose?
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
Quote:
$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o
but the linking fails with
Quote:
$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here
[code].....
For the following compilation warning message I need to create some sample program in C for self study. Also I am looking for some good web link where all the C warnings are described.
1. Warning #47: incompatible redefinition of macro "entity" . Undefine macro before
2. Warning #167: argument of type is incompatible with parameter of type
3. Warning #175: subscript out of range
[code]....
Unfortunatelly since i have no background at all about GUI programming, i dont know even the keyword for that i want to generate a pop up window from my program (written in C) which show a message and an OK button. in my opinion, maybe i should use directly the Xlib library and not the GTK or QT library for example so the program can work almost on every linux system. A code snippet/hint for the pop-up window then?
View 2 Replies View Related