User Profile
Collapse
-
how do you get multiple source files to run one after the other?
i am trying to run multiple source files but right after the first one finishes running the program closes and doesnt move on -
need help fixing if statements
...Code:#include <stdlib.h> #include <stdio.h> #include <ctime> #include <string> #include <iostream> using namespace std; int main() { srand ( time(NULL) ); string face; int suit,yes,r,face1,num,yes1; r = rand()% 10+4; cout << r; if(r==1){ face ="Ace "; } if(r==11){ face="Jack "; -
rabbit i looked up all the braces and fixed them but i keep getting the second error -
i keep getting this error and i dont know how to fix it
...Code:#include <stdlib.h> #include <stdio.h> #include <ctime> #include <string> #include <iostream> using namespace std; int main() { srand ( time(NULL) ); string face; int suit,yes,r,face1,num,yes1; r = rand()% 10+4; r=1; cout << r; if(r==1){ face ="Ace "; } if(r==11){ face="Jack -
-
need help figureing out why my if statements are not working right
...Code:#include <stdlib.h> #include <stdio.h> #include <ctime> #include <string> #include <iostream> using namespace std; int main() { srand ( time(NULL) ); string face; int suit,yes,r; r = rand()% 10+4; cout << r; cout << "hello welcome to a virtual card trick.\n"; cout << "what -
Phillis2013 started a topic will someone help me fix the errors i am trying to make a ascii card deckin Cwill someone help me fix the errors i am trying to make a ascii card deck
...Code:#include <stdio.h> #define ERROR 00404 #include<iostream> using namespace std; int argc; char *argv[]; int main(argc,argv) { FILE *ascii_fd, *card_fd; int arg = 1; int format = 80; int color = 0; int corner = 0; int cut = 2; int interp = 0; int punch = 4; int table = 4; int form = 1; int logo -
did you know you have a > right here fine list item> it might be affecting the code other wise i am stumpedLeave a comment:
-
it writes "a title" because it is in an h1 tag in the body of the html file
as for the some text it is in a h2 tag and i dont know how to help you on that one.Leave a comment:
-
Phillis2013 replied to 1>c:\documents and settings\wigundlach\my documents\visual studio 2010\Projects\countin COk thanks I am new to c++ and this is my first project not using a tutorialLeave a comment:
-
Phillis2013 started a topic 1>c:\documents and settings\wigundlach\my documents\visual studio 2010\Projects\countin C1>c:\documents and settings\wigundlach\my documents\visual studio 2010\Projects\count
how do i fix this
here is all my code from my header file and cpp file
#include "Counter.h"
#include<iostre am>
using namespace std;
Counter::Counte r(int c)
{
Add = 1;
Total += Add+Add;
cout << "your number is "<< Total << " enjoy." <<endl;
}
Counter::~Count er(void)... -
Phillis2013 replied to : fatal error C1083: Cannot open include file: 'isotream': No such file or directoryin COk thanks it looks like isotream on the totourial I was using but that is probably the problem thankLeave a comment:
-
Phillis2013 replied to : fatal error C1083: Cannot open include file: 'isotream': No such file or directoryin CSorry for the double post didn't know how to edit last one and wanted to put the code in it but was on my iPad and I don't know what to do about the include isotream it keeps on saying the same thing and If I take it out it has errors with undefined identifiersLeave a comment:
-
Phillis2013 started a topic : fatal error C1083: Cannot open include file: 'isotream': No such file or directoryin C: fatal error C1083: Cannot open include file: 'isotream': No such file or directory
how do i fix this error i have no precompiled headers and everything i have tried has not worked
here is all my code
#include "Cardgame.h "
#include<isotre am>
using namespace std;
Cardgame::Cardg ame(int p)
{
players = p;
totalparticipan ts += p;
cout << " players have started a new game. there are now" << totalparticipan ts >>...
No activity results to display
Show More
Leave a comment: