Hi everybody, I have a text file which contains a sequence of characters terminated by newline. I need to extract a sequence of character from the file until i...
Hey all Im working on a simple 2d asteroids game at the moment. I have most of it working but there is one part that aint working the way id like. Basically...
... This would be MUCH simpler if done in c++, but here is a solution in c. int main() { FILE *fp1, *fp2; char ch; bool IgnoreRestOfLine = false; // clrscr(); ...
... one small tweak - probably best not to set the flag every time - so the following logic could be added. if (ch!='_' && !IgnoreRestOfLine) fputc(ch, fp2); ...
Nevermind figured out what i was doing wrong myself have it working now thanks anyway g ... most ... pointing ... dead ... it ... if ... understanding...
... [Snipped.] ... Because it has classic newbie mistakes. I seriously suggest you read the comp.lang.c FAQ... http://c-faq.com/ Particularly section 12. ... ...
the code i have developed is for sum of digits is this main() { int b,c,d; printf("the number is 12345\n"); b=12345%10; c1234%10; d=c+b; printf("value is...
... #include <stdlib.h> int rand(void); See the comp.lang.c FAQ for caveats and other hints. http://c-faq.com/ ... You're probably seeding every time, which...
S A I don't really understand, what are u going to do after finding the underscore, are u going to ignore the rest of the line and start fetching a new line? I...
Thank you so much for your timely help..... I would like you to comment on my approach. what's wrong in my code. Logic seems to very simple but where did I go...
... If you can't change the code, then you can use /force:resolved or /force:unresolved directives for Linker. This will work only in case you are using VC++...
... What is preventing you from taking input from user? -- Regards Sumit Chawla ("eNetra : Hail the Invention") "Computers are useless. They can only give you...
if you are going to use the graphics ...then you have to provide the path of EGAVGA.BGI file and you can just copy the file to the folder which contains exe...
hey all anyone any good at programming with vector graphics? im trying to create an explosion with particles from a given position that fade out the further...
Hi Group ! Though I know how 'Google', but still anyone who had come across a good link / tutorial which teaches the concepts of ASN-BER with exaples. Please...
Knowledge Seeker
knowledgeseeker78@...
Apr 2, 2007 11:37 am
61789
Hi everybody, I have two text files. One of them contains a sequence of character terminated by newline. File 1 for eg.....gnlase#5678940 gnlase#3421667 ...
... One approach (it's really bad, I just want to show the principle) goes like this: 1) open file 1 for reading. 2) open file 3 for writing. 3) while not eof(...
... First - you did go wrong anywhere. Your logic was ok until you got the - character at that point the logic just stopped. So the logic was incomplete. The...
The purpose of the code is to return array of strings variable to main I am giving input 3 strings in function call() these strings are stored in a variable...
Sorry to bother you again so soon ... I'm dealing with a problem in using the mktime () call, passing it dates ranging along the whole year, so possibly...
... BER is an encoding of ASN.1. I ran a Google search for "asn ber" and it came up with this link: http://www.columbia.edu/~ariel/ssleay/layman.html That's...
... Are we talking 2D or 3D? -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.4 Change tracking and management tool. Reduce tech....
hi its in 2d.. this is what i have at the moment and it will do the job i suppose. Basically when a collsion occurs startexplosion is called to initialize the ...
... This would be _significantly_ easier and faster if you used C++. Doing what you want is either going to be performance-unfriendly (as Nico's suggestion...
... <snip> Typical mistake. You have declared "name" as a char[][] which is correct (a 2D array of characters). However, you have the function "call()" return...
... One way to improve it is to decrease the velocity exponentially. Think about it: Explosive debris is thrown from the ship at some velocity but that...
... Thanks Thomas Good idea about decreasing the velocity exponentially! will work on that next cheers. also the green colour is just in there while im woking...
... Well, you don't actually work directly with the GPU. You use DirectX or OpenGL, which handles all the ugly details. Stretching an image is pretty easy...