i don' t know though if your array is one or two dimension. But, you must access all the array and each time in the loop have this:
sum =0;
loop{
sum = sum + A[ i ];
}
Your opinion?
Type: Posts; User: brack
i don' t know though if your array is one or two dimension. But, you must access all the array and each time in the loop have this:
sum =0;
loop{
sum = sum + A[ i ];
}
Your opinion?
its atoi and NOT itoa :)
a way to remember: ascii TO integer
yes! the loading bar is something like showing how much progress is your search. If the files are big the search should have some sec. So i want something that says x% of search completed. Like...
Hello,
can i add a loading bar to my program? Can anyone help me? It will be better in C++ but if it is possible here i will apreciate this! :)
#include <stdio.h>
#include <stdlib.h>
int...
Hello,
which function i can use so as to read from a file word by word(apart from scanf)?
thanks...
οκ. thx!
Hi! Sorry if i post in the wrong place. I would like to ask if i could use this tutorial Cprogramming.com Tutorial: Introduction to C so as to translate it in my language(Greek).
Althouhg i may...
Hi! I am working on an exercise where i must count the time of a process. The problem is when using the getitimer. I searched google, read some staff and more over i understood what id does. My...
i know the other functions and i have made some examples so as to see how working...but my problem is that i can't find a function that needs CPU AND OR Kernel time . Can you help me a little more?
Hi!. I have an exercise that i already have solved. BUT i have a problem and don't know if it is correct. What i mean is that i don't know how to check if it is correct...can anyone help me????...
i got it thanks...
ok salem i will check out the whole code then...thanks !
whats wrong?
...
fflush(stdout);
exit(0);
}
printf("this line should never be printed\n");
} /* end of main */
Right! thanks...i just change it into if else{ }
switch case error. Can anyone help?
void sig_handler(int signo){
switch(signo){
case SIGALRM:
flag = getpid();
switch(flag){
case parent_PID:
thank you vary much and i will read this BUT can anyone help me a little how to start? what to do first? explain maybe what i must do...please...thanks
Hey, after 6 months i come back programming again in C...i now have a lesson "operating systems" and i have a book of tanenbaum(a bit big!!)...So,
i have an exercise to solve and i need help. I...
yes right! thanks...its another mistake for not sleeping well! lol
First of all i fixed my mistake by intializinf i, j to zero. BUT, if i do not initialize them to zero the printf function prints '0' and '92'(which according to ascii code is 'a'). Why this?...
thanks! i understood the difference...
You can see bellow my code where i try to understand how to use malloc. But, i do not understand something. Why the output of A array is all zero? I thought that calloc does this "trick" and not...
it is about homework but i do not understand what !c is... please help...thanks....
#include <stdio.h>
int main(){
int n=10;
float a=2, p=3, s=5;
int c=0;
thank you all! i will check them out and post if i got a problem...thanks again...
first of all have you paid for this library? i think i saw somewhere some functions like drawline(). Have you google for it? Basically, i don' t know much and i need too some more information about...
i was currently using gdb, but i don' t understand how this helps to debug programs...i mean, sometimes i have segmentation fault and all it does is print in the screen Segmentation Fault...which...