Folks,
I've created 2 classes, called TEST1 and TEST2. In TEST1, I've declared a STL vector of the TEST2 class. Each time my program is run, there is a random number generated which specifies the...
Type: Posts; User: starkhorn
Folks,
I've created 2 classes, called TEST1 and TEST2. In TEST1, I've declared a STL vector of the TEST2 class. Each time my program is run, there is a random number generated which specifies the...
hmm. think I got it. Both my constructors had the exact same first 6 parameters which I think made it impossible for the compiler to know which constructor to call.
I changed my 2nd constructor...
Folks,
I'm having a strange problem where I can't seem to get my program recognise my overloaded constructors. I've declared 2 constructors, one with 6 parameters and then another with 8...
See this thread. In it, adrianxw posts a link for his tutorial which covers colour....unfortunately windows.h would is needed so you should definitely try to download it.
...
Thanks Dave. Adding an additional \" to the front my my string and to the end seemed to do the trick.
I don't quite understand why though but if it works then I'm not touching it. :)
Thanks for...
Hi Folks,
Yes me again with another silly question although this time I hope its not as silly as before.
The below is fairly simple, I've written a small program (at the end of the thread),...
oh dear oh dear.....how silly do I feel now. :(
Yes quotes worked and the ~1 worked as well. Talk about a silly starfish moment.
Thanks for the swift replies and sorry for asking such a naive...
Hi Folks,
A question which I hope isn't too silly or naive but one that is pulling my hair out.
I'm passing arguments to main, no big deal. The first argument that I'm passing is a directory...
Folks,
I'm trying to figure out the correct prototype syntax for the below constructor of my sub-class DEAD_CHARS and I was hoping someone would know how ?
The below implementation compiles...
Sorry, here's the code surrounding my CHARACTER class.
Here is the character.h
#ifndef CHARACTER_H
#define CHARACTER_H
CHARACTER is a class that I've created.
Folks,
I'm in a scenario whereby I will often be inputing 10 elements but sometimes it might be more that 10 elements.
So i decided to use vectors, so that if I needed to read in more than 10...
Folks,
I'm reading in input from an external file and I want to know in advance the number of pages that the external file contains....as I want to break-up the input page by page.
Is there a...
Thanks guys. I had no idea about the c_str command which did exactly what I wanted....instead I went off and tried to write an inefficient function to do it.....my bad.
Thanks a mill for your...
Folks,
Wondering if you could help out with the below segment of code. Basically I've written a little function that takes a string and converts it into a char array so that it can be used with...
ahhh ok, thank you pianorain...it's so obvious when someone else tells you the answer. :)
Seriously thank you....I was totally being confused by the conflicting error messages.
Cheers
Starkhorn
ok thanks. I'll check out the project settings.....it seems VC++6.0 seems to make things 50 times harder than it needs to be but......:)
Just curious now, which parts are "old style" ? I hadn't...
Here you go. Sorry if it's too long and thanks for taking the time to help.
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
having a program with just that 1 line obviously worked fine. But when I changed my own program to match that, I got the exact same warning and error.
I've double-checked to ensure that I've not...
Folks,
So I was on the FAQ page (yes sometimes newbie's actually read it!!) :D to learn more about the main declarations...specifically the below thread.
...
Folks,
I was just wondering if it was possible to read in data from a non-text file using ifstreams (or indeed any other method) ?
Basically I've gotten a pdf file and I wish to extract certain...