my problem is in this code that do for the morning for allocate structures conform the user want. After allocated, he write to the file entred as second argument in the call of program in mode text(I...
Type: Posts; User: k4z1nh0
my problem is in this code that do for the morning for allocate structures conform the user want. After allocated, he write to the file entred as second argument in the call of program in mode text(I...
use the function scanf in form correct:
this correct is:
scanf("%s",str); //for strings
scanf("%d",&d); //for integers and floats and doubles
#include <stdio.h>
#include...
hi people!
my question is how change the color of text that i send to stdout(display screen) in my linux.
What is the function and in that header file is on?
Tnks!
here go!
int main(){
char ch;
printf("Press one key for continue...");
while((ch=fgetc(stdio))!='\n');
printf("You hit the key %c!",ch);
return 0;
}
hi are u right???
man you have pointers, then use so: scanf("%d",str).
see you code again below.
char str[SIZE];
char patt[SIZE];
char repl[SIZE];
char res[SIZE];
man go to www.freeprogrammingresources.com that in there you find various tutorials of C and diverses languages of programmation, you find inclusiv www.cprogramming.com hehehe ;)
good luck.
hi.
man this error is in pointer that you are accessing by means of operator unary "&".
In this part of code, pay attention and write again:
for(count = 0; count <= (n-1); count++){
...
hi man.
the advantage is the efficiency in access address in memory directly in functions....the method of indexation of vector is most waste that this, because the access with pointer work directly...
hello. my problem is in this code that i write to tes my knowledge of programmer of pointer and allocation dynamic. here go the code.
#include<stdio.h>
#include<stdlib.h>...
hi people.
I'm with one duvid.
this ask if about the function __fpurge(FILE *STREAM);
is secure use this function to clear buffer?
if yes, then anyone can use him in your codes, because simplify...
thks, but the problem persists and problem not is in NULL TERMINATOR, the point is:
when the program askme "Digite uma String: ", the correct will be if he showme a cursor posicioned right of this...
sorry here go the code correct that generate error.
#include<stdio.h>
#include<stdlib.h>
int main(){
int *p,
num;
char *entrada;
p = (int...
hi.
my ask is this:
when i alloc memory in my code with function malloc of library <stdlib.h>
and i going use him...this not work...look my code testing malloc:
#include<stdio.h>...
hi guy!
printf("\n\n\tPlease enter the weekly price of the newspaper: ");
fflush(stdin);
scanf("%f",&paper[toprec2].price);
this void * buffer is a pointer to parameter buffer.
The function fread reads nmemb elements of data, each size bytes long, from the stream pointed to by stream, storing them at the location given...
hi man.
this problem is equal my problem, this link answer your question in relation with the function gets.
http://www.eskimo.com/~scs/C-faq/q7.1.html
I'will wait to have help you!
obs.:The variable of type int have 2 bytes(16 bits) man...or im wrong?
hi people ok??
im from brazil and I new in here...and have one ask.
when i compile my simple program in C(gcc in my linux) he generate one messege of erro in screen!
Look the error:...