You should try out yourself, here is now a place for homework. Read the sticked post,plz
Type: Posts; User: hth373737
You should try out yourself, here is now a place for homework. Read the sticked post,plz
the compiler can only tell the TRUE or FALSE ,right?
I never know about the Falure.
why if cin>> line is in the block,also, cause the strange result?
thanks
what is the terminate condition of that while statement?
how that happen?
why if i add that fin>> line twice, number 1 and 3 group are to be eaten?
confusing
Ye,,,
that is it.
but could you explain why this happen? how the statement work?
i cannot understand that statement, as well as the FAQ
Thanks!
i hope it works and reger to the FAQ,
i still not understand why for this case now work well
2,5
4,9
5,11
Here is the new result, still ....not right
source file:
1,2
2,5
3,7
4,9
5,11
Got it,thanks! it is in C
it is a project with head files and source files. codes are compliered successfully, but when it is run. it says "BUS ERROR". i don'tknow how to solve it.
i think sth is wrong in login.c
...
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp,*fw;// declaring file pointers.
double val;
int ch;
int new; // new for integer part.
int i=0;
if((fp =...
yes, thank you all.
based on some similar codes that i can see, i have the codes now.
#include<stdio.h>
#include<string.h> // for strlen() function.
#include<stdlib.h> // for...
we have just learned about the file types. and to finish the task within one week.
we are scheduled to learn this very fast. impossible task? right?
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp,*fw;// declaring file pointers.
double val;
char ch;
int new; // new for integer part.
if((fp =...
sorry , i don't understand what to do
every second counts.
i have just finish one essay and one report and then rush into this C programming.
the assign will be handin within about 30 hours day to night.
i got stuck with it
thanks for you explanation, i have to learn much more things to know that.
i don't know what that warning means, does is mean the if-statement is not correct or in vain?
the c textbook has that...
yes...i am in panic with the limit of time.
what can i do with that loop?
#include<stdio.h>
#include<string.h> // for strlen() function.
#include<stdlib.h> // for exit() function.
thanks for your explanation.
then what should i do with that loop
appledemacbook:documents apple$ gcc -Wall -Wextra [myfile.txt] 10-2.c
i686-apple-darwin9-gcc-4.0.1: [myfile.txt]: No such file or directory
10-2.c: In function ‘main’:
10-2.c:10: warning: empty...
i use getchar() to end the program instead of "return 0", if user enter any key on the keyboard.
does is work?
yes,that metaphor is really good for the question.
i can understand what you are saying.
Matsp is expert, but i am unable follow his guidelines.
i don't know how to do that.
right now, i...
appledemacbook:documents apple$ -Wall -Wextra
-bash: -Wall: command not found
what is the matter? i am new to unix command.
i was use VS instead.
how to verify the codes with Mac OS X...
really appreciate your advise, i know the codes has many bugs and if we choose a random file, it will breakdown.
it is hard for me to do that, though i know much should be done for the program.
...
what i want to do is feed the request of the question, however, it is not easy to fully understand and do that task.
i think a small text file is okay.
the codes is really beyond my head.
hth
the compiler has not said the codes are wrong. but as the question asked i do,
the 3*5 matrix number are stored in myfile.txt
it cannot run when ues the program.
it was okay with the codes in the...