Search Results

Showing results 1 to 30 of 30
Search took 0.00 seconds.
Search: Posts Made By: Run.[it] ; Forum: C++ and child forums
Forum: C++ Sep 18th, 2008
Replies: 2
Views: 510
Posted By Run.[it]
Thanks vmanes, really appreciate it.
Forum: C++ Sep 17th, 2008
Replies: 2
Views: 510
Posted By Run.[it]
Hi, just a query about versions of Microsoft Visual Studio.

I last year created my C++ programs using Visual Studio .Net 2003 and have noticed that my new uni course uses 2005. Will I be unable to...
Forum: C++ May 29th, 2008
Replies: 3
Views: 462
Posted By Run.[it]
Cheers guys - Duoas and Sky Diploma.

Ill attempt both suggestions!
Forum: C++ May 28th, 2008
Replies: 3
Views: 462
Posted By Run.[it]
Basically this Menu works however, when I enter in a string the default does catch it but then the Menu repeats the error so in essence isnt full proof. Would the way around this be to check the 1st...
Forum: C++ May 23rd, 2008
Replies: 4
Views: 1,012
Posted By Run.[it]
Interesting Duoas, I'll give that a shot, thanks again!
Forum: C++ May 23rd, 2008
Replies: 4
Views: 1,012
Posted By Run.[it]
Yep you are spot on, cheers.

I was close to figuring it as I had placed cin.clear(); after the ignore and it started to work, wasnt sure why though and youve cleared (no pun intended) that up.
...
Forum: C++ May 23rd, 2008
Replies: 4
Views: 1,012
Posted By Run.[it]
Im trying to carry out input validation on a piece of code and have come across an issue.

Basically for the 1st input I used getline for the string and then for the 2nd input I use cin for the...
Forum: C++ May 19th, 2008
Replies: 3
Views: 405
Posted By Run.[it]
Thanks kindly Ancient Dragon thats exactly what I wanted!
Forum: C++ May 19th, 2008
Replies: 3
Views: 405
Posted By Run.[it]
My appologies if this has been answered before but I couldnt find a specific answer/response.

Basically Im wondering how I would assure each random number is one that hasnt been produced already....
Forum: C++ May 7th, 2008
Replies: 2
Views: 471
Posted By Run.[it]
Cheers Radical Edward, that helps a lot mate!
Forum: C++ May 6th, 2008
Replies: 2
Views: 471
Posted By Run.[it]
Im trying to figure out how to utilise a program that uses Aggregation of Classes, Im having trouble calling the operations of the Classes in my main. Could anyone assist where Im going wrong?!
...
Forum: C++ Apr 22nd, 2008
Replies: 2
Views: 1,481
Posted By Run.[it]
Thanks Narue, thats exactly what I meant and the push I needed.
Forum: C++ Apr 22nd, 2008
Replies: 2
Views: 1,481
Posted By Run.[it]
..for manipulation in the main part of the program.

Basically Im trying to create a Class function that asks the user to enter in 3 different teams and their nationalities and then redisplay them...
Forum: C++ Mar 24th, 2008
Replies: 2
Views: 1,505
Posted By Run.[it]
Thanks mate for clearing that up, I suspected as much and yes it is the whole program.
Forum: C++ Mar 24th, 2008
Replies: 2
Views: 1,505
Posted By Run.[it]
Weve been given this example to work with and Im not sure about the line 9 char cont = 'n'; - is there even a need for it? The rest of the program I understand.


#include <iostream>
#include...
Forum: C++ Mar 17th, 2008
Replies: 2
Views: 705
Posted By Run.[it]
Thanks for that mate, appreciated.
Forum: C++ Mar 17th, 2008
Replies: 2
Views: 705
Posted By Run.[it]
Is the only way to stores strings as a variable in C++ is by having an array of type char?
Forum: C++ Feb 29th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
Can you write text to a binary file, Yes or No.

Then let this thread die.
Forum: C++ Feb 28th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
FILE *txtfile;
char line[1024];
Forum: C++ Feb 28th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
#include <iostream>
#include <stdio.h>
using namespace std;

int main()
{
int no = 1;
FILE *nofile = NULL;
char cont = 'n';
Forum: C++ Feb 28th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
I probably have, the jist of what my lecturer was hinting at was that with a textfile it is more hassel to check inputs and outputs whereas (presumably according to him) with a binary file to process...
Forum: C++ Feb 28th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
Im trying to get a binary file to store 5 names, so I can then use said 5 names to be re-read and display in another program.

We were advised to use binary files instead of text because of error...
Forum: C++ Feb 28th, 2008
Replies: 8
Views: 2,284
Posted By Run.[it]
In class weve been shown how to read from a binary file and read from a text file but Im unsure how to write text to a binary file?

Heres my attempt so far,

Can you help?


#include...
Forum: C++ Feb 4th, 2008
Replies: 1
Views: 418
Posted By Run.[it]
I have been given a project to do for college and have the option of doing it in either C++ or Java; both languages Im relatively new to.

The scope of the project is fairly open ended, some are...
Forum: C++ Oct 17th, 2007
Replies: 8
Views: 10,785
Posted By Run.[it]
That makes a lot more sense Vmanes as to the specifics of both.

Is it normal practise to use them to pause programs for inputs and to display results also?
Forum: C++ Oct 16th, 2007
Replies: 8
Views: 10,785
Posted By Run.[it]
Heres a program to add weight to my query....


#include <iostream>;

using namespace std;

int main()
{
int width, length, height;
Forum: C++ Oct 16th, 2007
Replies: 8
Views: 10,785
Posted By Run.[it]
Thanks Garth, I reckon from previous programs that they both pause the program in someway. Someone shoot me down if Im wrong though?!
Forum: C++ Oct 16th, 2007
Replies: 8
Views: 10,785
Posted By Run.[it]
Could someone explain the use for both?

Ive got a rough idea that cin.get() pauses the program and cin.ignore() is to clear the input buffer. But could you give me examples when you'd use them and...
Forum: C++ Jul 10th, 2007
Replies: 9
Views: 1,529
Posted By Run.[it]
Thanks mate.
Forum: C++ Jul 10th, 2007
Replies: 9
Views: 1,529
Posted By Run.[it]
When downloading Microsoft Visual C++ it asks you if you want to also install MSDN 2005, is this needed?
Showing results 1 to 30 of 30

 


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

©2003 - 2009 DaniWeb® LLC