it depends on the OS and the compiler used...i remember the ancient TurboC++ IDE having color support ... they provided functions for rendering colored text in conio.h
In UNIX-like OS any OS...
Type: Posts; User: creeping death
it depends on the OS and the compiler used...i remember the ancient TurboC++ IDE having color support ... they provided functions for rendering colored text in conio.h
In UNIX-like OS any OS...
to summon satan himself, either use hex or listen to britney spears...! :eek: now pheer phoolis mortal!! ;)
(it kinda sucked i know...)
Girls?!
silly boy! there are NO GIRLS on the internet! :p
there has to be a range specified, if one wants to check for repetition, otherwise the arraysize must be equal to integer range...and...
and btw
str1 should be "hS eesll snsiaslo nht e ahsro e " for your output...
comp is a pointer to a function returning int
v is an array of void pointers
http://www.opengroup.org/onlinepubs/009695399/functions/qsort.html
what compiler are you using?
fread() function reads from a stream and returns the size of the data it reads...why are you assigning that to a character array?
it depends on the distro you are using...if you are using ubuntu or fedora or opesuse or mandriva or debian or similar distro its only a matter of having internet access and typing 1 line of command...
LOLOLOL!!!! please see this Cprogramming.com Tutorial: Structures
i guess...i reluctantly agree...you have got a point there...(@iMalc and @laserlight)
@vart...i dont know...i hav'nt really dug into this compiler stuff...i will though, soon ... for now all that...
temp=line next_Id(c[0] , 666666666);
what are you doing here???
and here???
flag=fscanf(room,"%10s%10s%10s%10d%10d",temp->name,temp->address,temp->ID,&temp->grade,&temp->code);
you need not...you can specify the absolute path to del DOS command.
i woundn't be too worried about both of them...let the compiler perform common subexpression elimination and dead code elimination...which all standard compilers do by default.
:p
remove the while loop and change your code to like this
//remove this while(s1 != NULL){
//remove this strcmp(s1,s2);
if((strcmp(s1,s2)) == 0)
printf("These strings are equal");...
n=-1 and n=0 and n=1 for starters, as right at the beginning you got n>0
though its really hard for me to tell...as i dont have any idea what its about...its upto you...actually
call the function in main() function with different values of n and place(preferably at boundary values) and observe the output
1. your paranthesis are unequal
2.you are defining functions inside a function(main function)...this will not work unless you use gcc
what? i think thats how you develop a program...first algorithm then pseudo code then the program...generally all of us think atleast the algorithm part in our head.
you should keep in mind that when using free() function, you should pass the base address of the dynamic memory allocated.
for example.
#include<stdio.h>
#include<stdlib.h>
int main()
no offence prakash0104 lolguy,but if you notice the OPs post #11 you can see that he/she had already got the solution partly...the point was to help the OP build the basics of C, not to spoon-feed...
hi angel_copra,
iMalc is already helping you . I just re-conveyed what your requirement was. What he was about to tell, could have drastically increased the complexity of the program. Dont worry you...
hi, i think the OP just wants to check if the brackets are correct and balanced out...but anyway...please ignore me and continue...you're doing an awesome thing btw.
yeah , talking *about* C language NOT talking *in* C language.
just because i did not put ' ' does not mean that i imply that its already an integer, and you putting it does not imply it to be a character. i did mention that it is a "string"...which is an array...