Search Results

Showing results 1 to 12 of 12
Search took 0.01 seconds.
Search: Posts Made By: iamboredguy ; Forum: C++ and child forums
Forum: C++ Jan 22nd, 2005
Replies: 47
Views: 159,666
Posted By iamboredguy
Hey firenet
You had mentioned a way to delete a record from the file (using sequential access). I tried to do it with random access (i.e seekg and seekp). The program can't delete the last record....
Forum: C++ Sep 8th, 2004
Replies: 1
Views: 3,043
Posted By iamboredguy
Since no one cared to answer my thread posted earlier, :mad: I'm posting the question again.
I have this project to do and I want to use coloured text and some simple shapes, etc. But the problem...
Forum: C++ Sep 7th, 2004
Replies: 5
Views: 2,622
Posted By iamboredguy
You don't HAVE to define NUM_TURNS as static. Defining it as static makes it common between all objects of that class. So if you have
GamePlayer a1;
GamePlayer a2;
then, a1.NUM_TURNS and...
Forum: C++ Sep 7th, 2004
Replies: 6
Views: 3,720
Posted By iamboredguy
No wait. You are trying to compare individual letters with strings when you use
words[i]. strcmp() can only accept string arguments.
Forum: C++ Sep 7th, 2004
Replies: 6
Views: 3,720
Posted By iamboredguy
Did you include string.h?
Forum: C++ Sep 4th, 2004
Replies: 19
Views: 8,775
Posted By iamboredguy
No comparison! I'm doing both subjects right now. And calculus drives me nuts! I mean its pretty awe-inspiring but it never gets into my head. C++ is a different matter. I thoroughly enjoyed every...
Forum: C++ Sep 4th, 2004
Replies: 4
Views: 8,955
Posted By iamboredguy
I have this project to do and I want to use coloured text and some simple shapes, etc. But the problem is that my compiler does not support graphics.h or dos.h. Even my tclite doesn't (I usually use...
Forum: C++ Sep 2nd, 2004
Replies: 8
Views: 3,953
Posted By iamboredguy
I don't get why C++ pros see red when they see void main(). Can someone explain why intmain() is good and void main() bad?
Forum: C++ Sep 2nd, 2004
Replies: 2
Views: 8,583
Posted By iamboredguy
Well, you can try this code, but I don't know if it will work beyond n=9.

#include <iostream.h>
#include <conio.h>

/* This program creates a half pyramid of nos. Created on 12.6.2k3. */
...
Forum: C++ Sep 2nd, 2004
Replies: 3
Views: 5,968
Posted By iamboredguy
Chainsaw's code is correct except for one thing, you add j to the sum, not i;

#include <iostream.h>
#include <conio.h>

void main()
{
int n;
cin>>n;
int i, j;
Forum: C++ Sep 1st, 2004
Replies: 2
Views: 11,561
Posted By iamboredguy
I didn't know I had to close all variables connected to the file to be deleted. It worked after I did that. Thanks a ton Dave. :)
Forum: C++ Aug 31st, 2004
Replies: 2
Views: 11,561
Posted By iamboredguy
I'm trying to use sequential binary file editing in C++. I use a temporary file. I have to make the changes in the file by storing the modified data in the temp file. Then I delete the original file...
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC