Indeed now..lol. Thanks for the encouragement in the interview part :P
Start() is used to initialize the data members. Let's see, I'll try to apply your concept and let you know.
Type: Posts; User: SVXX
Indeed now..lol. Thanks for the encouragement in the interview part :P
Start() is used to initialize the data members. Let's see, I'll try to apply your concept and let you know.
Could you elaborate what you meant by this? The modeling of an account and the list of accounts..
And even if I did persuade the administration to do so, it wouldn't help. They say the "level" of...
Well I did try what you asked but the problem is, I'm storing an array of users and their bank account details. If I put Name instead of Name[i], then in the Display function it only shows a random...
Hi there. I was making a program which emulates a bank account of sorts using classes.
void Account :: Start()
{
Account Temp;
int i;
for(i = 0; i < 3; i++)
{
...
Hi there.
I've made a C++ program which reads the time (input by the user) and adds two times entered using the concept of classes. However the answer always comes 11 hours 10 minutes regardless of...
Alright..I've been berated too much for gets(). Let it never haunt thy mind again! xD.
For the alternative, I used something a little simpler. Please do tell me if this method is safe from buffer...
Hmm..I checked that. Then I suppose this is how I would go about it -:
cout << "\nEnter 2 strings - ";
int ch;
char buf[BUFSIZ];
while((ch = cin.get()) != '\n && ch != EOF);
{
...
Hello all. Getting to the point, I need some help in string functions. I was making a program to implement my own string functions, without using string.h
The program turns out proper and correct,...
Been a long time since I posted a problem aye! Still remember ol Prelude helping me with that termination prevention thingy.
So, to the point. I'm making a prime numbers program and in two cases I...
I see...so I guess thats a redundant idea as well. Why don't I just add a Notes section and write that,lol
Lol I need the code to do that, because half the noobs I call friends don't know Alt+Enter maximizes the DOS screen.
Very well,I have a different query now. I scrapped the loading screen, if it is so "pretentious". My question is if I were to automatically maximize the DOS window on loading the program,how would I...
And then again, you're not one of my classmates, neither do you know me.
I'll get advanced as I progress, and probably feel the same about that crap.
True, it may be pointless rubbish, but I don't...
I guess it should be
if(a[0] == b[0])
{
.....
.....
}
cin.get();
return 0;
Well,as the guy who suggested it says, it "gives a pro look to the program". Lmao.
Yer really too serious about this Mat...I just added it for fun,it gives a more interactive look to the program and...
Uhh you could go on loggerheads about M_PI later...some help with my problem please? >.>
lol Salem...I have another problem now. I made a loading screen for the program with the following code
for(int i = 0; i < 100; i ++)
{
gotoxy(35,12);
...
I'm using M_PI,which is a pi constant declared in cmath. K thanks its working now.
In a nutshell,this is the code of the area,lateral area and volume of a cone from a class structure -:
else if(g[0] == 'N' || g[0] == 'n')
{
...
lol.
And yes mat,toupper indeed does do that..I looked it up in my reference. Goddamn,I've forgotten all my basics...
I find class structures best for these type of programs..well,you need to only compute one function,so its not required
Edit owns. MUHUHAHAHAHAHA.
while ((quit!='n')&&(quit!='N')&&(quit!='y')&&(quit!='Y'));
cout << "Enter Y to continue, N to quit>";
cin >> quit;
Uhh. Set a char size for quit[1], and I think you want this
...
The dude has a point!
In my original post, I ADDED the break statement thinking why it wasn't there..if only I had the brains to look in my original code :P