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...
Type: Posts; User: almich
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...
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...
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...
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...
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] =...
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",...
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...
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...
wow, thank you all for your help! i am glad i learned something from this board.
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...