Search:

Type: Posts; User: zyberb

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,930

    Summing numbers from a file

    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...
  2. Replies
    2
    Views
    1,741

    I changed the code a bit. Now i can read the...

    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...
  3. Replies
    2
    Views
    1,741

    strpbrk() problem

    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
  4. Replies
    4
    Views
    1,919

    Thank you all:D i found out it,just needed to...

    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++...
  5. Replies
    4
    Views
    1,919

    C++ beginner Question

    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...
  6. Replies
    2
    Views
    10,846

    time.h

    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;
    ...
  7. Replies
    4
    Views
    3,121

    I tried it didn't work i just got some random...

    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...
  8. Replies
    4
    Views
    3,121

    Date on Filename

    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...
Results 1 to 8 of 8