I am trying to determine what the x ++ 5 does I have never seen this before, can anyone tell me what it means:
if ((x == 3) || (x ++ 5))
y++;
This was an answer on my test but I think it is a...
Type: Posts; User: robasc
I am trying to determine what the x ++ 5 does I have never seen this before, can anyone tell me what it means:
if ((x == 3) || (x ++ 5))
y++;
This was an answer on my test but I think it is a...
I am learning about strings and I am trying to interpret what the +1 is for when the const MAX_LEN is used. I know strings have a null terminating value, does this allow room for it?
void...
for instance when I execute the program it should execute the command line
Hello all!
I am looking to build a program that would connect me to the windows command line utility, any help or leads as to where I can learn how to do this.
thanks!!!
How could I convert an int to char and then concatenate the char variables.
ok this is what I am thinking but it doesn't work:
int var1 = 35, var2 = 36;
var1 = static_cast<char>(var1);...
yes you are right! and it is much easier to understand as well.
thanks guys!!!
Well guys I finally got it:
#include <cstdlib>
#include <iostream>
using namespace std;
void designDown(int);
int designUp(int);
int main(int argc, char *argv[])
well I got some what of an idea but my inner if statement does not increment back up.
#include <cstdlib>
#include <iostream>
using namespace std;
int design(int);
int main(int argc, char...
yes I do realize that but I am trying to learn how to do it using a single recursive function.
But hey thanks for the reply.
I am trying to create a shape in the form of:
****
***
**
*
**
***
****
I am trying to extract the first two characters from a string using getline, is this possible or how can I do the extraction?
Thanks for the information. Yes, I am still learning alot about classes and having fun with them but in the same sense I am also serious, so thanks for all of your help.
I believe this is it:
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
class secretType
I cannot seem to initialize my constructor with default parameters. Could anyone give me a good explanation as to why this is happening?
#include <cstdlib>
#include <iostream>
#include...
I have just recently decided to start reading other programs and try to get involved with them so I may be able to learn and understand code. But the problem I am having is when I download a project...
definately some good advice friends. I used a two dimensional array so I could use codes like a1, or b2 etc.. but I did not get it figured out yet.
I also noticed that my thank you not was...
Hello everyone!
I have been learning about classes and this is my first program using classes.
I would like to know how bad I did.
I am interested in opinions.
Also I have a constant...
system ("PAUSE");
return EXIT_SUCCESS;
I still can not get this to stop going out of bounds.
while(infile >> firstName[numOfStudents]) does not work either.
I appreciate your honesty decrypt when you say hideous. As you can tell, I am a newbie taking my first programmming course in college so any advice you could give to make my code more readable would...
I program has a problem when reading from the file given:
robert arnold 85
hiedi turberville 90
sally hall 55
Program output is:
robert arnold 85
hiedi turberville 90
man that's it!
I have got to watch out for that
when I run this program in dev C++ I get a windows error screen that pops up but it compiles and runs; However, if I run this in visual C++ 6.0 it runs just fine and is error free? Any suggestions?
...
I see you used your function header and your prototype together?
could you break your code down and explain what (#include <string>) does?
I haven't seen this one before
How's this?
#include <iostream>
using namespace std;
void age();
void greetings();