yep that works now.. so its going to be an effort in itself learning from this site.... hmm...might look around for somewhere else...
cheers,
khris
Type: Posts; User: jonezy
yep that works now.. so its going to be an effort in itself learning from this site.... hmm...might look around for somewhere else...
cheers,
khris
another one for you...
this is the code i get from a tutorial website:
#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
yes i see...otherwise the program has nothing to stay open for... cheers
Right so i tryed to dable in c++ a while back but lost my footing at the start and am now trying to regain some skill....
so yes..i started right at the begining..on a fresh install of Xp with...
cant believe i missed that lol.
yep, that works now.
thanks for the help.
I do not no y this code does not work.
#include <windows.h>
int Exec(char szPath[])
{
PROCESS_INFORMATION pif;
STARTUPINFO si;
thanks, slilly me lol the tutorials were the only places that i didnt check. The tutorials seemed very complex to look at so i am goin to try you reply wejav 2nite tand then i will get back to you.
Hi,
I have searched the forums and across google, for code to simply lauch another exe.
Help appreciated
Thanks everybody, that was what i was after, and has done the trick nicely.
cheers!
Hi, i have just finished my first basic program (with a little help)
i want to know if there is a way to name my program, and not just the file path coming up when i run it
help appreiciated
ah i see. the complete problem was me not putting the braces in the right place.
thanks to everyone that has tried to tell me what i was doing wrong
here is wat i mean
if (answer != 1)//this is the if that the else if shoud be paired with
{
std::cout << "\nWell if you're not going to believe me. . .\n";
std::cout << ". . .maybe...
yes i no this has been said already- also as i have said, and annotated in code, it is paired with an if statement.
unless i have to do something special to pair it with an if statement i cant see...
no, thats why i posted it here in the first place.
when i try to compile this code, which is how i want it to be, it says that there is an error on the line
else if (answer ==1)
any...
Im not making my self clear enough, apoligies.
I hope this code will help explain myself.
#include <iostream>
int main()
{
nope sorry lol.
this is my fault- by half completing a prgram.
the
else if (answer == 1)
line was supposed to do wateva i put in- if the original answer was 1. i left the
if
o lol, i thought when i saw that , that it was a silly little mistake, however,
still recons theres something roung. even when i add the extra =
#include <iostream>
int main()
Thanks for that.
Yeah i can understand most of that now and its proved helpfull
the only thing is i tried adding an 'else if (answer = 1)' line, but compiler reckons there is something wrong
...
Think i must be doing something still wrong.
or missing out something uve said.
#include <iostream>
using namespace std; // So we can see cout and endl
int main()
{
hi, im just trying to make a simple program, just to see wat i can do.
i want to no y this code doesnt run as expected, after the last line the program quits, without leaving time to view wat is...
yeah, i c now
where i saw
cout<<x<<"-"<<y...etc
i thought it was doing the work, , now ive just ran through it i no its just writing it on the screen
sorry about that
Hi, im very new to c++ and am trying to learn by actually studying code etc.
I took this simple code from this tutorial website.
#include <iostream>
int
multiply(int x, int y)
{
return...