Forum: C 2 Days Ago |
| Replies: 21 Views: 512 As everyone else had pointed out solution for, it better to you scanf function to read string or to reading anything at all. At least that my preference. But anyway, if you still used it make sure... |
Forum: C 3 Days Ago |
| Replies: 3 Views: 177 You could also do something like this. Where you return the memory address of the allocate space in heap.
#include <stdio.h>
int** allocate_matrix(int rows, int columns);
int main()
{ ... |
Forum: C Jul 25th, 2008 |
| Replies: 8 Views: 1,042 #define GCD();
Take of that semicolon from that statment. Macros donst need a semicolon. If your marco definiation are like too big then you might use a '\' to speak it up and concatenate.
But... |
Forum: C Jul 9th, 2008 |
| Replies: 4 Views: 466 Pleaseeeeeeeeeeeeeeeeee use code tags :'( and intendant the code.
ssharish |
Forum: C Jun 27th, 2008 |
| Replies: 6 Views: 718 Have a look at a function calle3d fgets which is defined under stdio.h library. This function will do what excatly you want. It read a line of text from the text file until it EOF which then return... |
Forum: C Jun 24th, 2008 |
| Replies: 16 Views: 1,339 ohh nelledawg, where did you get the code from. It donst look like that you wrote the code. You need to look into some basic before you program anything like this. You are usinfg some advance... |
Forum: C Jun 24th, 2008 |
| Replies: 8 Views: 3,560 Well, ok i decided to give you hint but not the answer, here you go with some sample pesudo code. This should give you an idea on how to approch this problem.
character [] source = " We dont do... |
Forum: C Dec 24th, 2007 |
| Replies: 28 Views: 1,944 YES thats right, you call the routine which is written in a different language. But the calling procedure is language independent. It will vary from language to language. But, in LISP you have a... |
Forum: C Dec 23rd, 2007 |
| Replies: 28 Views: 1,944 I had a problem which is something similar to what you are having, on how to interface the AI routine with my Code. But in my case the AI reasoning part part was done LISP. So for example if an Agent... |
Forum: C Dec 19th, 2007 |
| Replies: 7 Views: 5,021 Use Dev-C++, thats good as well. Salem Thanks for that Code::Blocks that looks pretty cool.
ssharish |