I will download Qt and see if I can get on with it, thanks for the tip.
Type: Posts; User: JayCee++
I will download Qt and see if I can get on with it, thanks for the tip.
Thanks a lot, the old articles are all there!!!
There used to be a series of articles at:
adrianxw.dk Win32 Tutorials Home
However that link no longer works.
Is the series still available and if so can you provide a new link.
Thanks
Thanks Iceboxes and Grumpy, I remember now!!
Grumpy yes those missing characters were copy and paste problems.
May I also ask why you deprecate the use of using namespace; I recall when I...
I am just starting to re-learn c++ having learnt the extreme basics some years ago and seem to be stumbling at the first hurdle.
I am using Code Blocks and the Ray Lischner book Exploring C++
...
The latest mingw is 4.7 as far as I can make out and I appreciate this is probably not the right place to ask but can anyone tell me where to download an installable copy for windows and how to...
That is what I did with the snippet I posted above, it works as it should using 'istringstream' but not if you use 'stoi'
Probably not worth going further with this, I think Jim may well be right...
Hi Elysia, do you mean the full 550 program or just the function?
getline(jcin, ask, '#');
//rg = stoi(ask);
istringstream (ask)>>rg;
cout<<endl<<endl<<"Players rapid play grade : "<<rg;
This is where I am trying it, 'ask' is being read from...
in the help files it says 4.5/6
Yes sorry I looked across a line, it does say c++0x and not 98.
The compiler is set to 'Have g++ follow the coming C++0x ISO C++ language standard [-std=c++98]' - I thought that meant it was using the latest version.
I tried rg = stoi(ask); where 'rg' is an int and 'ask' is a string but got an error saying 'stoi' was not declared in this scope?
I thought my compiler was C++11 compliant - mingw with...
laserlight you really are a gem.
That is exactly what I need!
I googled and googled for 'c++ string to integer' but all that ever comes up is 'atoi'.
Is it possible to convert a string to a char?
I ask as I am inputting strings from a text file, some of which are numbers so come in as "4" = a string.
atoi will only convert char to int so I...
Thanks laserlight.
As usual you have come up with the right answer, it works with that statement in there - is there any way I can get a brain transplant from you?!
I know it is needed, I just don't know why.
The only way I found out it was needed was originally I used istream and ostream and opened each seperately, when I changed it to fstream so that I...
This snippet opens a file and inputs the number of records stored at the start; but then after that you will see I repeat the fstream allocation (without closing the original) and everything works...
I am writing a text file which has the number of records in it at the start and then each record is stored at a 400 boundary - or rather should be!
In the following snippet the number of records...
In the following loop I use a menu to select a choice from 1 to 6; 1 to 5 work as expected, ie call their appropriate functions and then go back to the menu, but when I enter 6 to end the probram I...
Thanks for that Elysia but unfortunately that appears to do nothing.
Thanks very much for that suggestion, I have changed it to :
if ((!cin) || (choice<1 || choice>6))
{
cin.clear();
...
In the code below I want to only accept input of 1, 2, 3, 4, 5 or 6.
This works in that it will accept only one of those numbers and return it to my main.
If I enter a number such as '22' say,...
Hi Jim,
it isn't just the system call to clear the screen but also I sometimes want to change the text colour which is why I use this, I have looked at the method you suggest and it is quite...
I thougt that antred was implying that I should give the lengths of them all.