Noun[1][0] Also crashes.
But, I got lucky with this program. The data that matters ends up in a array (dont know how I missed that yesterday). So I just had to add one extra line and now it is...
Type: Posts; User: Zeratulsdomain
Noun[1][0] Also crashes.
But, I got lucky with this program. The data that matters ends up in a array (dont know how I missed that yesterday). So I just had to add one extra line and now it is...
It is a pointer array.
If I do not put "*" id get the whole "string" capitalized . But, if I do remove it, I get this error:
C:\Documents and Settings\chris\Desktop\Homework\c++\Assignment...
Using string I get this errro:
Changing all strings to pointer arrays my program crashes when I run this (without giving me any error or warnings)
Yes, I have two duplicates program with...
What?
I actually ditched pointer arrays (there goes a couple points).
I am using string. But I am back in the same problem.
My second program is now 100% done, with the exception of the...
I don't know hat you just gave me.... But it sounds complicated. After I morning test, I spent 3-4 hours working on the program I just finished today. I got to finish another one right now.... Then...
Well, the first program is done. I still need to polish the code (throw it into mandatory functions and make sure all the spacing looks good) but other then that 99% as well as I could want.
I...
Question:
I am using char *x;, how would i go about converting (so I can compare them) a char to char *?
edit: I am forced to use char because there are requirements which need to be done in...
Well as a Visual Basic guy, I wanted to use strings. I have been using string since I started in c++.
But for this project it looked like I was forced to use char.
Strings are easier then char...
7stud: It is part of the guidelines I need to follow.
Daved: So you cannot use getch and cin() together?
Using getch() to put data in variables is the only way to put string
cout <<...
I am having lots of trouble...
C++ is a nightmare when it comes to this stuff :(
... If I were to restart everything... How would I go about doing the 555-1212 stuff using cin with string?
I...
wow... last time it took 2 hours to get a reply :P tnx for the replies.
Anyway, I finally found a way 2 do this (I did not think I was going to get a reply so fast)
int main ()
{
int...
Lets say I want to add text as the user is writing it... How would I do that?
example: phone number: 5551212
and I format it so it injects a "-" as the user types it?
Ex: After the third...
Two string questions (not char)
1# When the user type in data when I cout how would I go about running code between each and every change? (ie, if they type h-e-l-l-o, it would run at the h, then...
Are you talking about the reference link dwks gave me? I did look at that one.... I dont know why, but I can never find anything on google about c++, I could not even find this site (good thing it...
7stud : That does sound like a good way to go about it, but I do not think i could get away with that.
dwks: I read the reference. I just cannot see how that would work. Could you perhaps give me...
I am coding in c++.
Can you provide a link to these "references"? Is that the only way to go about it? I was sort of told to use something called address.
I got main() and a second user defined function. In my second user defined function there are two double values I need to pass to main. How do I do it (using addressing).
Note: I cannot use global...
getline(cin, sMovie);
Problem with that, if there is a space (example "The Matrix") I need to hit enter twice.
So how do you format your output in a console window? (with coulombs)
1#
Why isn't this working? (if it cant work with string, how do I save spaces into strings?)
cin.getline(sMovie);
2# (need to know this tonight)
How does getwidth work? I cant find good...
1# I am using a double. When I cout out my data I want there to be two digits after the period. How do I do this? Example 2+3 = 5.00 instead of 5.
2# When I use tabs (the ones on your keyboards)...