No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o from binary files in several locations to initialize variables. For some reason for one …
just a simple question that has been driving me bonkers for a few hours, but I'm new to MFC and haven't encountered this until today I've implemented serialization in my current project and set the modify flag appropriately... when I select "New" or "Exit" in my menu the program correctly …
[QUOTE=Toshkin78]Im having trouble sending a bool type to a function which returns a char string to a string. I have provided the code below [CODE] char outin(char *string,bool *bl) // this doesn't work { if (bl==1){ string = "in"; } else if (bl==0) { string = "out"; } return string; …
[QUOTE=smallville][CODE] for(j=1; j<=lines; j++) { for(i=1; i<=lines; i++) { cout << " "; } for(i=1; i<=j; i++) { cout << "*"; } cout << endl; } } [/CODE] the problem is with the for loops and the numbers you are using for the test program if the first for loop …
how do you want the time zone to be determined? just have the function bring in an int and set it to timezone... that is unless the time zone is dependant upon something in clocktype not sure what you are going after
[QUOTE=sunnypalsingh]Neither in your program nor the example which i gave you derefrenced null pointer. [/QUOTE] actually you do dereference the null pointer... PT* ptr = 0; ptr->whatever(); is the same as PT* ptr = 0; (*ptr).whatever();
#include <iostream> using namespace std; int main() { int first; int last; int num1; int num2; int num3; cout<<" Enter your last name :"; cin>> last; cout<<" Enter your last name :"<<endl; cin>>first; cout<<endl; cout<< "enter three test scores :"<<endl; cin>> num1, num2, num3; cout<<endll; cout<< average of test scores …
[QUOTE=MillStrike]Just one more small thing, how do I get the user to enter a line instead of declearing one in the code? Tried many things, but since i can't use "cin >> *str" I don't know what to do. I appriciate any help.[/QUOTE] you need to either declare a fixed …
I'm new to the forum as I've been surfing around for some previously posted help, but I just can't find it. So if anyone can help it would be greatly appreciated. I'm new to C++ and programming in general and I'm compiling on Microsoft Visual Studio .Net 2003. For a …
The End.
drock9975