I am working on a Compiler, it is supposed to use the least resources it can and it must be done from nothing, so, we are not allowed to use newer versions of TC (I believe is a lot of Teacher's...
Type: Posts; User: louis_mine
I am working on a Compiler, it is supposed to use the least resources it can and it must be done from nothing, so, we are not allowed to use newer versions of TC (I believe is a lot of Teacher's...
Oh, so fun, specially because I said I couldn't use a newer one.
Anyway, I've already solved this problem, I was missing the BGI library and now it works just fine
Thanks for the help :D
Yep, I am using a quite old compiler, but using a newer is not allowed, because it is going to be run on this one.
I am using Turbo C++ Version 3.0
Ok, on options->linker->libraries I activated...
Hi, I am trying to use graphics.h library on a program, I copied the example of a program that comes in help, however, it does compile but at the time I try to run it, it shows a lot of linker...
Hello, I am working on a Compiler and I've made it to the point it has to resolve arithmetic operations, however I would like to save some time and implementing some sort of already existing...
Hi, I m looking for programming an automata that must remove empty derivaions from a text chain given, I would like to know if anoyone has programmed this that would give me a hint on how does this...
hhmmm?? wasnīt that the original question??? I would use %ld
just as easy as changing the %d to %ld on each scanf and in your last printf
C do support threads, I saw someone made a simulation of a distributed Operative System by using threads, however Google is not showing me something that has to do with it :(, however, thanx for the...
Hi, I am using c and I would like to know how to use threads on this programming language, I have looked on the internet, but I can't really find good examples or theory, please, can someone tell me...
atof converts a string to Float, you don't need to go character by character
just put res=atof(data);
I recommend first to check if all values are numbers or in case there is a point, that...
int i,
found=0 //A colon is missing here ","
where;
int i=0, found=0, where;
you could also use a counter, counting the number of "line jumps", when this reaches the number you want (or if it reaches the EOF first) end your cycle.
x=0;
while(x<number_of_lines && "name of...
scanf("%c", &again);
YOU never declared again,
search(const char *arr[][7],const char *target[],int n);
that ; symbol should not go there
delete it and leave only the {
[CODE]printf(\n"Do you want to decode another resistor?\n");[\CODE]
the \n goes inside the "" marks
[CODE]printf("\nDo you want to decode another resistor?\n");[\CODE]
that's one less
Hi, I am studying about how to make data storage in disc more efficient, and I know about a method that uses a Hashing Table and a Hashing algorithm, i would like to know if someone knows a place to...
sorry, no *person required, its only the double == what is missing
you have some minor mistakes like
[CODE]
if (fp=NULL) //it should be
if (fp==NULL)//notice the double = symbols
[\CODE]
Also I believe that the structure you declare named person of type data...
you could also use the strcmp function, in the library string.h, just see how it works, i dont remember exactly, but I think it returns a 1 if the strings are the same, also post your code so I can...
Hi, I have a porblem sending an array to a function, it sounds quie simple, however, it wonīt let me do it, I believe there should be a way to do it, however, i cannot find it, if someone knows how,...
Hi, i was thinking about creating a program that would return to me the way the computer stores the data, however, it must be using binary code.
i am not quite sure, i believe it first transforms...
Just a simple question, but really important :)
Can someone explain to me please how do I declare a pointer to an array of more than one dimension?
is it just
int *p;
int arr[10][10];...
That code returns a numerical value for each key I press, different for each letter, it doesnīt print anything if I use the arrow keys ;(
Hi I have been trying to create a program which movement is using the arrow keys, however i havenīt been succesful, I donīt know why this is not recognizing the arrow keys, i have even copied and...
I believe pointers are not so hard to use, however, they seem complicated because the apparently weird syntaxis, however, you could create a small program using various of the different ways poiters...