Search:

Type: Posts; User: xforevertink

Search: Search took 0.01 seconds.

  1. Thread: Help!

    by xforevertink
    Replies
    10
    Views
    2,702

    I don't want to create another vector.. I want to...

    I don't want to create another vector.. I want to use the one I already created (header file), inside the main file in the function "double Grade::gpa() const".

    Although my code works, obviously...
  2. Thread: Help!

    by xforevertink
    Replies
    10
    Views
    2,702

    Why is it in a form of a question? I was asking...

    Why is it in a form of a question? I was asking how I call the vector (in header file) inside the class Course, in the main function.
  3. Thread: Help!

    by xforevertink
    Replies
    10
    Views
    2,702

    Are you trying to say that I should create a...

    Are you trying to say that I should create a string variable with the course name?
  4. Thread: Help!

    by xforevertink
    Replies
    10
    Views
    2,702

    Note. I'm not asking you guys to do the...

    Note. I'm not asking you guys to do the assignment for me. I'm just stuck in a wall right now and would appreciate how to get out of it. Thanks!
  5. Thread: Help!

    by xforevertink
    Replies
    10
    Views
    2,702

    Help!

    Assignment: implement a 3 different classes [student, course, grade] and have the code calculate the total number of units the student is taking and calculate the gpa.


    So far, my code is...
  6. Replies
    8
    Views
    10,807

    Yeah. I actually tried changing the line int...

    Yeah. I actually tried changing the line

    int num = 1;

    with....

    string num = 1;

    But instead I got an error, which I don't understand. I thought strings could read numbers as well?
  7. Replies
    8
    Views
    10,807

    Can you explain the two character replace? I'm...

    Can you explain the two character replace? I'm new to c++ programming. I don't understand what you mean by that.
  8. Replies
    8
    Views
    10,807

    If I replace num with '1', then I would have to...

    If I replace num with '1', then I would have to type out all 26 numbers. I just wanted a quicker way to replace the whole phrase by incrementing num as it encounters all the letters, since I'm...
  9. Replies
    8
    Views
    10,807

    Well, the program prompts the user to enter a...

    Well, the program prompts the user to enter a phrase. And I just want to convert all the letters into numbers starting from 1. So that 'A' would equal 1. 'B' would equal 2, and so on.

    And in the...
  10. Replies
    8
    Views
    10,807

    converting letters into numbers.

    I'm trying to convert the letters into numbers. But I keep coming into errors in the if loop of the statement. Particularly, in the....

    phrase.replace(i,1, 'num');

    Right now, I'm getting a...
  11. Replies
    6
    Views
    1,578

    I'm trying to return the partial sum that the...

    I'm trying to return the partial sum that the text below in the main function is asking for.



    #include<iostream>
    #include<vector>
    #include<exception>
    #include<stdexcept>
    #include<string>
  12. Replies
    6
    Views
    1,578

    Sorry, the code is a bit messy. :[

    Sorry, the code is a bit messy. :[
  13. Replies
    6
    Views
    1,578

    Vectors Help! :(

    I'm trying to only change the code within the function "partial_sum". but it doesn't seem to return the total. What am i doing wrong? :(





    #include<iostream>
    #include<vector>...
Results 1 to 13 of 13