Hello,
im trying to make a program that reads from a file and sums up only the numbers.the numbers ar aranged like this in the file:
100er34 67 yyy 7
5 63 6
1
My problem is that the program...
Type: Posts; User: zyberb
Hello,
im trying to make a program that reads from a file and sums up only the numbers.the numbers ar aranged like this in the file:
100er34 67 yyy 7
5 63 6
1
My problem is that the program...
I changed the code a bit. Now i can read the numbers but i get wring sum.
Because the program sums 100 + 34 +4?+67+7?+7+5+5?+63+3?+6+1 =297 while it should be 100+34+67+7+5+63+6+1=283??. I can se...
Hi!
I problems solving thins assignment:
* I want to read numbers from a file and the numbers may be seperated.like this
200ee4e 66 yyy 888
22 5 6
1
Thank you all:D
i found out it,just needed to switch my mind over to c++ and get used to Code Blocks Compiler.
Now for trying out and compiling small codes i just new File->C++...
Helo,
I've had some java before where i used eclipse as a compiler.now im learning some c++ using codeblocks.
Just a quick question:
* in java i was used to make 1 projectfile then a could...
I was looking for the same a few weeks ago, wth help from the forume i made it.
ctime (time.h) - C++ Reference
did something like this:
remember to include time.h
time_t rawtime;
...
I tried it didn't work i just got some random numbers behind the name,maybe the adress? Here is my code by the way.
#include <stdio.h>
#include <windows.h>
#include <string.h>
#include...
Helo!
Does anyone know how i put date on filenames.Now i use this code to create a new file:
FILE *fil1,*fil2;
fil1=fopen("sample.txt","w");
i know that time.h has the date,but how do i...