Search:

Type: Posts; User: kilastria

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,452

    im gonna try while(ifs != inFile.eos())...

    im gonna try




    while(ifs != inFile.eos())
    sum+=static_cast<int>(ifs.get());
  2. Replies
    10
    Views
    1,452

    hmmm..that would be all fine and dandy, except I...

    hmmm..that would be all fine and dandy, except I cant change the header files. I tried to use static_cast<int> to change from char to ASCII, but the compiler complains. I think it has something to do...
  3. Replies
    10
    Views
    1,452

    I didnt really want to move the information to...

    I didnt really want to move the information to another file, because I need it to do more calculations. This bit is really bugging me, and its the first step in the prgram, everthing else Ive been...
  4. Replies
    10
    Views
    1,452

    ok, heres the code; #include ...

    ok, heres the code;



    #include <iostream>
    #include <fstream>
    #include <cstring>

    using namespace std;
    int main()
  5. Replies
    10
    Views
    1,452

    String from file to ASCII

    Hey,
    Im having trouble converting each character from a string in a file to ASCII. I tried to use inFile and put each character into a variable, then convert the variables using static_cast<int>,...
  6. Replies
    8
    Views
    8,462

    re:basketball rounding to 5

    Thakyou so much, i will try this-it sounds right to use modulo, i thought thats how it would go. Now I just have to work out how to write it!!
  7. Replies
    8
    Views
    8,462

    Rounding to multiples of 5

    Hey,
    I am also doind this basketball program, but fortunately I have my algorithms correct, and sorry I cant tell you. BUt I do need help with one thing, how do you round the answer to the nearest...
Results 1 to 7 of 7