Search:

Type: Posts; User: gamer4life687

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    1,295

    int sum1 , sum2 , sum3 , sum4, z , q ; What...

    int sum1 , sum2 , sum3 , sum4, z , q ;


    What do you think this does?

    output sum1 sum2 sum3 immediately after this line
    and take it from there...
  2. Replies
    12
    Views
    1,404

    What error are you having?

    What error are you having?
  3. Replies
    4
    Views
    2,375

    [39] Miscellaneous technical issues, C++ FAQ Lite...

    [39] Miscellaneous technical issues, C++ FAQ Lite

    You can find info here.
  4. Replies
    4
    Views
    2,375

    #include #include using...

    #include <iostream>
    #include <sstream>
    using namespace std;

    inline int cToInt(const string& s){
    istringstream i(s);
    int x;
    i >> x
    return x;
    }
  5. Replies
    9
    Views
    1,488

    Np. Substring is useful when you want to store...

    Np.

    Substring is useful when you want to store a string of characters from a larger string. You, however, only need a single character which you can access using [] or .at(). You can store the...
  6. Replies
    9
    Views
    1,488

    Approach the problem first as just a problem. Not...

    Approach the problem first as just a problem. Not as a C++ assignment and your limited amount of coding won't matter.

    Why do you need substrings for each character? Look at what I posted again...
  7. Replies
    9
    Views
    1,488

    Do you need to store the individual letters or...

    Do you need to store the individual letters or just output their translation?
    If just output it's straightforward.


    string text = "tree"; //get it from user doesn't matter.

    for(int i = 0; i <...
  8. Replies
    9
    Views
    1,488

    Look at the std::references. string - C++...

    Look at the std::references. string - C++ Reference

    length() is provided for you. There isn't much work for you to do.
  9. Replies
    4
    Views
    1,402

    A little unclear on the structure of your input...

    A little unclear on the structure of your input file. Is it
    URL Garbage
    Are there spaces?

    if it's like the above case, thats 2 words per line (URL's are just one long sequence since there...
  10. Replies
    9
    Views
    1,488

    Loop through the string and use either .at() or...

    Loop through the string and use either .at() or [] to access the specific characters.
  11. Replies
    22
    Views
    2,598

    Or you may see this using the initilization list....

    Or you may see this using the initilization list. Doing it in the body is assignment. Data members are initilized prior to the ctor's body; although not true for built in types as there is no...
  12. Replies
    10
    Views
    16,611

    // draw top line for (int r = 0; r != sides;...

    // draw top line
    for (int r = 0; r != sides; ++r)
    {
    cout << "*";
    }

    A little misleading when I first read it because I saw r thinking rows but in reality your only printing a single row.
    ...
  13. Replies
    5
    Views
    5,977

    ya i know how to do average lol... i was just...

    ya i know how to do average lol... i was just reading the problem wrong.
    it makes more sense now to clock all 100 iterations not 1 at a time. thx
  14. Replies
    5
    Views
    5,977

    So I'm assuming I've read this wrong then. I read...

    So I'm assuming I've read this wrong then. I read it as
    "enter my text, enter my key, press encrypt" that would give me .001 thats 1 time
    "enter my text, enter my key, press encrypt" that would...
  15. Replies
    5
    Views
    5,977

    Execution Time - Rijandael encryption

    My professor posted this problem for us.






    I chose a plaintext of 5 blocks of(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
    and a key of (bbbbbbbbbbbbbbbbbbbbbb)
    I used this as my way of measuring...
  16. #include #include #include...

    #include <iostream>
    #include <iomanip>
    #include <fstream>
    #include <string>

    using namespace std;

    //function prototypes
    int CountNegatives();
    double AverageNonNegatives();
  17. Replies
    5
    Views
    1,314

    Use a for loop to assign the values into the...

    Use a for loop to assign the values into the array. For the chars you could increment by number and then convert the number into a char. I forgot the function for that. Someone here would know.
  18. Replies
    6
    Views
    1,324

    Just a word of advice. You should never really...

    Just a word of advice. You should never really need a loop inside of a recursive function because it defeats the point of recursion if the loop is doing the work. On the other hand if you can get a...
  19. Replies
    7
    Views
    2,060

    I guess most will agree we cant help with your if...

    I guess most will agree we cant help with your if we dont see some code :confused:
  20. Replies
    16
    Views
    3,765

    Not excatly sure but i dont see any main()...

    Not excatly sure but i dont see any main() anywhere there? is there a third file to this im assuming?
  21. Replies
    1
    Views
    948

    Generally i believe that means you probably...

    Generally i believe that means you probably created the wrong type of project. Make sure your doing a win32 console project. Most times i get that its b/c of that.
  22. Replies
    14
    Views
    6,637

    Yup :cool:

    Yup :cool:
  23. Replies
    10
    Views
    2,176

    I dont know about your error but i do know whats...

    I dont know about your error but i do know whats in red will never be printed.
    Can you see why?

    bool game(int chess[]) // set up the win/lose function
    {
    int b;
    int w;
    int p;
    for( p = 0;...
  24. Replies
    14
    Views
    6,637

    Simply put... in a class if the member function...

    Simply put... in a class if the member function isnt changing any member variables the function should have a const.
    const just promises that your not changing anything thats all.
  25. Replies
    25
    Views
    2,185

    If you dont know alot about programming this...

    If you dont know alot about programming this project might be alittle difficult to jump into. Try first reading some tutorials looking into case statements loops and as someone suggested file reading...
Results 1 to 25 of 230
Page 1 of 10 1 2 3 4