Forum: C 23 Days Ago |
| Replies: 5 Views: 270 Maybe I didnt understand someone correctly... |
Forum: C 24 Days Ago |
| Replies: 5 Views: 270 I think both of you just limit in another array the amount of chars in a char array when I want it to read/write the first letters then when it detects the first space (" ") and when it detects a... |
Forum: C 25 Days Ago |
| Replies: 5 Views: 270 Hey
I have a file named filetext.txt with the text:
One word
Two words
Three words
Four words
and the program should read this filetext.txt and output to another file called... |
Forum: C 30 Days Ago |
| Replies: 7 Views: 217 Gaiety I did not understand what you mean/said so here is the code translated:
#include <assert.h>
#include <complex.h>
#include <ctype.h>
#include <errno.h>
#include <fenv.h>
#include... |
Forum: C 30 Days Ago |
| Replies: 7 Views: 217 Thanks but now its just weird lol....
It copies in the file only the forth line and the seventh line... |
Forum: C 30 Days Ago |
| Replies: 7 Views: 217 Hey
I have a text file (1.txt) with the lines:
This is line 1
This is line 2
This is line 3
This is line 4
This is line 5 |
Forum: C 32 Days Ago |
| Replies: 17 Views: 639 I rather use the VS 2008 complier myself but AFAIK it is NOT standard (eg. it will comply exactly in another IDE/complier/etc).
I dont give a shit about gcc. Also, I rather use gcc, besides the... |
Forum: C 33 Days Ago |
| Replies: 17 Views: 639 Yet VS 2008's C compiler is different than a standard C compiler.
Please forgive me for hurting your feelings. I did not know you get so emotional over the truth. |
Forum: C 33 Days Ago |
| Replies: 17 Views: 639 OK....
Exactly. I want the best complier that is compatible with C89. I have no intrest in C99.
Well if im "picky picky", then I invite you to go ahead and buy the complier for me and... |
Forum: C 33 Days Ago |
| Replies: 17 Views: 639 Really? Then how can I set in VS 2008 to use gcc and gdb as the debugger (including the rest of the minigw compilation which is the port of gcc to windows)
Simply because it conforms to the... |
Forum: C 33 Days Ago |
| Replies: 17 Views: 639 Eclipse simply sucks for C. Period. Configuring it is difficult. |
Forum: C 34 Days Ago |
| Replies: 17 Views: 639 Hey
I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it... |
Forum: Computer Science Sep 2nd, 2009 |
| Replies: 5 Views: 520 I actually contacted the author of Cheese and he said he be willing to do it but he doesnt understand enough of Windows to be able to port it himself so he needs some help...
Any takers? |
Forum: Computer Science Sep 2nd, 2009 |
| Replies: 5 Views: 520 A bit more explanation please :)
I install Cygwin then I (in Cygwin, hoping it has a GUI frontend) comply it (Cheese's source) as a Win32 binary? And thats it? |
Forum: Computer Science Sep 1st, 2009 |
| Replies: 5 Views: 520 Hey
I was wondering how I could port and comply a Linux application to run it under Windows?
The application I want to port is Cheese. |
Forum: Shell Scripting Aug 31st, 2009 |
| Replies: 13 Views: 1,003 Not sure what you ment by cd'ing....I havent used cd in anything Ive said. |
Forum: Shell Scripting Aug 30th, 2009 |
| Replies: 13 Views: 1,003 Rome wasnt built in a day right? Even though I have to get Rome done in alot less days....
AFAIK, pwd is just a function that returns the current path and $PWD is just a variable that changes... |
Forum: Shell Scripting Aug 30th, 2009 |
| Replies: 13 Views: 1,003 I believe /src/dir is the current directory so I would have to change it; Is there any variable in Linux that shows the current directory? Could I maybe use pwd? |
Forum: Shell Scripting Aug 29th, 2009 |
| Replies: 13 Views: 1,003 Thank you for helping :)
Lets analize everything.
du lists with details everything in the current folder, -b showing it in bytes and sed cuts off all the chars listed. That I understand.
... |
Forum: Shell Scripting Aug 28th, 2009 |
| Replies: 13 Views: 1,003 I rather not "rip" code from another utility.
Id just like to make this using a shell script. Please no more comments suggesting rsync. Thank you :) |
Forum: Shell Scripting Aug 27th, 2009 |
| Replies: 13 Views: 1,003 Thanks but I rather use a self made shell script. Any tips? |
Forum: Shell Scripting Aug 25th, 2009 |
| Replies: 13 Views: 1,003 Hey
Ive been asked (and I may add this to my system as well) to make a shell script that backups to all files in x location to another location in z. The thing is that the backup must only be made... |
Forum: C May 19th, 2009 |
| Replies: 8 Views: 681 Im using wxDev-C++ 6.10.2 using the default GCC compiler |
Forum: C May 18th, 2009 |
| Replies: 8 Views: 681 Hmm MessageBox(0,"Message body", "Message title", MB_OK ); doesnt work. Ive included windows.h but nothing. It complies with no errors and no warnings but just (blank program) tells me press any key... |
Forum: C May 18th, 2009 |
| Replies: 8 Views: 681 Damn it is a shame that there is no standard function for it and it is only avaliable in Windows. Thanks anyhow :) |
Forum: C May 13th, 2009 |
| Replies: 8 Views: 681 Hey
I was wondering how to generate a Windows popup in C. I mean by "Windows popup" as in (for example) when you do a net send message to a PC, a simple Windows popup comes up on the PC you sent... |
Forum: C Mar 9th, 2009 |
| Replies: 3 Views: 442 It is enabled and it doesnt seem to work. Could you write a quick code example which works for you so I can test it out? I thought my example worked but maybe it doesnt. |
Forum: C Mar 9th, 2009 |
| Replies: 3 Views: 442 Hey
In VS, you can in a struct do:
struct test{
int tes;
}tt; |
Forum: C Feb 17th, 2009 |
| Replies: 12 Views: 1,805 |
Forum: C Jan 29th, 2009 |
| Replies: 8 Views: 431 Can't be a card because you know there are only 1-12 cards. This number can be infinite.
And yes I already thought of the array but I wanted to check if there was a easier/better way. I guess I'll... |
Forum: C Jan 28th, 2009 |
| Replies: 8 Views: 431 Obviously, this is the solution the problem is how to implant it.
Do I make another array storing all the numbers?
And/or how?
lets say we have player[n]
player[1] says 1 (because he typed it in)... |
Forum: C Jan 28th, 2009 |
| Replies: 12 Views: 1,805 n=((int) ((1+(3*numberofplayers)) * (rand() / (1.0 + RAND_MAX))) + 0) ;
Works pretty well :) numberofplayers is a global variable so I dont need to pass it.
Thank you very much to everyone... |
Forum: C Jan 28th, 2009 |
| Replies: 8 Views: 431 Kinda important so bumping up... |
Forum: C Jan 28th, 2009 |
| Replies: 13 Views: 714 Even if you have no idea about programming like this guy does?
Obviously, he doesnt like programming either so a course with indivdual (sp?) help will help him. |
Forum: C Jan 28th, 2009 |
| Replies: 11 Views: 523 BTW use wvDev-C++; Much better IDE. |
Forum: C Jan 28th, 2009 |
| Replies: 11 Views: 523 How can you put p=o?
P is a integer. Do you even know what a integer is? |
Forum: C Jan 28th, 2009 |
| Replies: 12 Views: 1,805 Hmm I think what Im looking for is:
n=((int) ((1+(3*numberofplayers)) * (rand() / (1.0 + RAND_MAX))) + 0) ; |
Forum: C Jan 28th, 2009 |
| Replies: 12 Views: 1,805 Hmm Im not sure if I should start another topic since this is a different topic but:
Right now I was using:
n=rand()%(3*numberofplayers+1);
How can I adapt that to |
Forum: C Jan 28th, 2009 |
| Replies: 8 Views: 1,027 Well I learnt something from this thread
printf(
"CHECKBOOK\n"
"=========\n"
" ^\n"
);
Had no idea you could do that in C. |
Forum: C Jan 28th, 2009 |
| Replies: 13 Views: 714 My suggestion:
Take a C course in some center in your city. WILL help you out... |