no . But i can tell what the makefile.inc tells if i open it with word:
CC = g++
# this line gives compiler optimizations that are geared towards g++ and Pentium4
# computers. Comment it out...
Type: Posts; User: alzar
no . But i can tell what the makefile.inc tells if i open it with word:
CC = g++
# this line gives compiler optimizations that are geared towards g++ and Pentium4
# computers. Comment it out...
OS is linux
compiler is gcc
there is no IDE
Thanks abachler. It works the way you suggested me.
Is there any other way?
also anyone for my second question?
@laserlight
yes, i know this , but i am asking you how the compiler see the header file.(the header file is in another folder)
I would like to ask you this: how can i compile a program that includes a header that i make?
Example: we have test.c and we need for the compile the header that is in another folder.How can i tell...
Thank you so much this is the site i want. Thanks again!!!!
A strange post :)
before some months i see in a post in this forum about a site which have some problems about C. This site has some problems ( i think 100 problems ) that you must program with C...
Thanks i understand it!!
How can this happen?
we are in a while loop while(!feof(my_file)) and this means that the End of file not reached
???
yes but i must use feof (it is for an execise and says that i must use feof)
if we have this code for files
while(!feof(from);
ch=fgetc(from);
if(ferror(from){
printf("error reading source file\n");
exit(1);
}
if(!feof(from)) fputc(ch,to)/*IN...
thanks.So we can't say that is something like this I said (modulo....).
These a) and b) that you tell me i can make them.
and i can't ask my "instructor" because i don't know him.This exercise i...
I can't ask the instructor.So for this reason i am asking here if anyone understand something other? I was thought also something about cycle arithmetic with characters and the USE of modulo(%) like...
I have to write this recursive function:
write a recursive function called shift which takes a string and rotates each character cycle one position at the time.The problem is that i don't understand...
Thank you so match Adak i try and other sentences and it seems to work fine.It was so easy.I was trying with the pointer new and you didin't need to use this pointer.Thanks!
i make a try but it doesn't work. I am confused with the loop.
int len,l;
char t[23]="hello world how are you";
int i, last,count;
char *words[10];
char *new;
...
i fix it
char *new;
i=0;
len=strlen(t);
while(i<len && t[i]!='\0'){
if(t[i]== ' '){
last=i;
t[i]='\0';
i don't understand. You mean that i should use if(t[i]== ' ') or something else?
i=0;
len=strlen(t);
while(i<len){
if(t[i]= ' '){
last=i;
t[i]='\0';}
printf(t);
i++;
}
so i need malloc to allocate memory for *words[0] ?
Maybe the idea of array *words[3] is not so good .Is there a way to do this without the use of malloc
some changes
int len,l;
char...
int len;
char t[10]="hello wor";
int i, j , last;
char *words[3];
i=0;
len=strlen(t);
while(t[i]<len){
if(t[i]= ' '){
I can use only strlen and strcpy from str functions
So you say that is possible to have an array like that : "hello/0my/0name/0is/0"
But how i pass the string to the array from strings( char...
@matsp
i must write my function
@IceDane
Yes i thought something like this but i think that:
every time i find a space i must replace it with \0 or not? Because i must pass this word as a...
The problem:
I have a string in a pointer or in an array.I want to seperate the words from this string and drop them into a list.Example: we have string "my name is Bond". I want to seperate the...
Thanks I understand it