Okay here is what I want to achieve, I want to be able to write in DOS from my program that I am creating. I've execed it with:
Code:
....
char szPath[] =...
Type: Posts; User: Jotun
Okay here is what I want to achieve, I want to be able to write in DOS from my program that I am creating. I've execed it with:
Code:
....
char szPath[] =...
Thanks for the help guys, I worked on it a bit more and came up with:
#include <iostream.h>
//this program is made to count all
//the prime numbers between 1 and 500
int main()
{
int i=1;...
Anyways I am trying to create a program that counts all the prime numbers between 1 and 500. Its executing with no errors or warnings but there is no output
#include <iostream.h>
//this...
Thank you, I appreciate the help guys.
Can someone explain this to me. I see it being used all the time, I am brand new to the language. Is it used to declare a certain type of a variable or constants or?
Can you use examples if...
haha
#include <iostream.h>
int main()
{
//declerations
int guess=0; //ammount of guesses
int UserNum=0; //the number the user guested
int GenNum=10; //the random number, 10 until i figure...
Okay well I know this is a no brainer to most of you but I am brand new to the language and programming so could I get some help :). Basically I want to make a quick game where you have to guess a...
It runs find in CodeWarrior
Don't like to make a thread over this. I couldn't find it in the FAQ maybe to basic? :confused:
Isnt he forgeting to #include <string.h>?
Well I am new as well but you would put that if you wanted the user to input something with spaces for example
#include <string.h>
#include...
Can someone make on in C++ for me to read, I am new to C++ and never studied C. I understand they are the same but being new to programming I don't want to overload myself.
or you could
#include <windows.h> //You need shell32.lib for this one
int main(void)
{
char szPath[] = "C:\\WINDOWS\\system32\\Calc.exe";
wow I might be new to programming but geez guys learn how to steal software, well not steal just use without paying. There are thousands of networks and servers set up on IRC for people like you and...
I thought the <string.h> would fix it, but it is still returning the passwords don't match
How do you shell files in C++? I know how to in VB, but say I were to create a console program where the user would type "open msword" and it would shell C:\program files\...and so-on.
Okay again a very basic question, I followed the tutorial step by step and it does not want to work. It executes fine but it will not say the passwords match
<code>
#include <iostream.h>
...
Thanks, I have read over them carefully. I am surprised that MSVC++ doesn't have the clrscr(); function.
Hehe it probably does I am just doing it wrong :O
I am a total newbie in C++ but learning, I have been reading a few tutorials and was just wondering if there is a clearscreen command.
Also if I am interested in learning this langauge would you...