You know what... I didn't even learn std and all the functions that come with it... Is there a way to do it more simple? The focus is on Default Arguments.
Type: Posts; User: tinkerbell20
You know what... I didn't even learn std and all the functions that come with it... Is there a way to do it more simple? The focus is on Default Arguments.
This is a question I'm stuck with from the book "C++ Programming 101" :
Write a program that computes net pay based on the values the user types, Ask the user for the hours worked, the rate per...
Hey... thank you all for your help.
I tried to fix my code. Just as a reminder, this was the question:
The following program segmant asks the user for his or her first name in main(). Write a...
I see...It's seems as if I need a third variable. mmmm...... How do I do it with a loop?
Hi Everyone! :)
This is my question...
The following program segmant asks the user for his or her first name in main(). Write a function that reverses the name in the array so that main() can...
Hi All,
This is my question:
Write a function that counts the number of times it is called. Name the function count_it(). Do not pass it anything. In the body of count_it(), print the...
How do I find that? I have Microsoft Visual Studio.Net
Oh thank you! forgot to put }
This error appeared when I tried compiling theprogram:
fatal error C1075: end of file found before the left brace '{' at 'c:\Documents and Settings\TinkerBell\My Documents\Visual Studio...
You're a genius! Thank you, I appreciate it a lot.
So what CAN I compare in an "if" statement?
Hello all,
What is wrong with this code? I can't get Wow! to print if the user answers "truck." :p
#include <iostream>
using namespace std;
main()
{
What's wrong with this:
AndIt = Test | 4.563;
Is it wrong because there's a float number? if it wasn't float, does it compare the last digits or all? Thanks... :p
Thank you. I am worried my book is teaching me bad habits. Thank you for your help
I'm a little bit overwhelmed. I can't believe there is a string variable! After my book had conviced me there isn't such a thing. Could you recommend a book that you would use to learn C++?
I'm a little bit overwhelmed. I can't believe there is a string variable! After my book had conviced me there isn't such a thing. Could you recommend a book that you would use to learn C++?
Here is what I did, and now it accepts floats. But like you said, no char. Is there a thing as a general variable that accepts all data...?
#include<iostream>
using namespace std;
int...
Antigloss,
I tried your code and it works beautifully... how can I do what 7stud suggested? seems more simple
I'm reading "C++ programming 101" and it ectually makes every function exciting... no kidding...
Hey Antigloss,
I didn't get so far with programming.. Could you explain the function you used?
Thank you :)
1. about the cast: for some reason, my book used this (int)a;for c++. Thank you for your advice.
2. The loop was just for me, so I could keep trying numbers without having to keep re-running the...
I have one more question... last one for now.
Write a program (by using a single compund if statement) to determine whether the user enters an odd positive number.
Here is what I did :
:...
I have one more question... last one for now.
Write a program (by using a single compund if statement) to determine whether the user enters an odd positive number.
Here is what I did :
...
I see... I get it. Thank you so much!
It works now! So when using cin, the user has to type spaces, or else it won't work... ?
Thank you so much, can I ask you questions when I run into a problem? great forum!