Search:

Type: Posts; User: almich

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    906

    Thanks. I got it to work! But I must move on...

    Thanks. I got it to work!

    But I must move on to the next level where I have to store
    lastname,firstname into one variable and use the substr function to extract the last name and display the...
  2. Replies
    4
    Views
    906

    How to use the string() function?

    I am working on an assignment that will return the string length in the number of characters. Here is what I've done so far, but I have no clue how to use the string() function. Any help would be...
  3. Replies
    2
    Views
    1,909

    overloading operator problems

    this piece of code was fine when i replaced operator+-*/ with add, subtract, multiply, and divide. now i am getting errors that there are too many parameters in the overloading operators. i am not...
  4. Replies
    10
    Views
    1,272

    lol. i honestly had no idea what i was doing at...

    lol. i honestly had no idea what i was doing at first. i think i figured out the code. let me know if there is anything i should change or styles to make programming more simple.



    #include...
  5. Replies
    10
    Views
    1,272

    could it be something like this? I am trying to...

    could it be something like this? I am trying to figure out what is wrong with this code, but am i almost there?



    #include <iostream>
    using namespace std;

    const char * const months [12] =...
  6. Replies
    10
    Views
    1,272

    yay! at least i got something to work! ...

    yay! at least i got something to work!



    #include <iostream>
    using namespace std;

    const char * const months [12] = {"January", "February", "March", "April", "May", "June", "July", "August",...
  7. Replies
    10
    Views
    1,272

    lol, you are right. should i try using the if...

    lol, you are right. should i try using the if else statement something like
    if (days[months-1] >31)
    cout << "Please enter a valid day: "; ?

    should it be [months -1] since the array is from...
  8. Replies
    10
    Views
    1,272

    i think i have gone overboard this time

    My assignment is to create a program that calculates the number of days from Jan 1, 2004 to a date in the year the user enters. It has to recognize invalid dates (such as feb 30) and the user should...
  9. Replies
    10
    Views
    1,740

    wow, thank you all for your help! i am glad i...

    wow, thank you all for your help! i am glad i learned something from this board.
  10. Replies
    10
    Views
    1,740

    would anybody be kind enough to help?

    I am stuck on a homework problem. What I am suppose to do is write a program that calculates the square of all the intergers from 1 till the number a user enters. So my program should calculate...
Results 1 to 10 of 10