Search:

Type: Posts; User: JayCee++

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Old articles

    by JayCee++
    Replies
    9
    Views
    535

    I will download Qt and see if I can get on with...

    I will download Qt and see if I can get on with it, thanks for the tip.
  2. Thread: Old articles

    by JayCee++
    Replies
    9
    Views
    535

    Thanks a lot, the old articles are all there!!!

    Thanks a lot, the old articles are all there!!!
  3. Thread: Old articles

    by JayCee++
    Replies
    9
    Views
    535

    Old articles

    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
  4. Replies
    5
    Views
    520

    Thanks Iceboxes and Grumpy, I remember now!! ...

    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...
  5. Replies
    5
    Views
    520

    Simple - but not for me!!

    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++
    ...
  6. Replies
    28
    Views
    4,826

    The latest mingw is 4.7 as far as I can make out...

    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...
  7. Replies
    28
    Views
    4,826

    That is what I did with the snippet I posted...

    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...
  8. Replies
    28
    Views
    4,826

    Hi Elysia, do you mean the full 550 program or...

    Hi Elysia, do you mean the full 550 program or just the function?
  9. Replies
    28
    Views
    4,826

    getline(jcin, ask, '#'); //rg = stoi(ask); ...

    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...
  10. Replies
    28
    Views
    4,826

    in the help files it says 4.5/6

    in the help files it says 4.5/6
  11. Replies
    28
    Views
    4,826

    Yes sorry I looked across a line, it does say...

    Yes sorry I looked across a line, it does say c++0x and not 98.
  12. Replies
    28
    Views
    4,826

    The compiler is set to 'Have g++ follow the...

    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.
  13. Replies
    28
    Views
    4,826

    I tried rg = stoi(ask); where 'rg' is an int and...

    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...
  14. Replies
    28
    Views
    4,826

    laserlight you really are a gem. That is...

    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'.
  15. Replies
    28
    Views
    4,826

    Convert a string to a char?

    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...
  16. Replies
    5
    Views
    847

    Thanks laserlight. As usual you have come up...

    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?!
  17. Replies
    5
    Views
    847

    I know it is needed, I just don't know why. ...

    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...
  18. Replies
    5
    Views
    847

    Very strange file action

    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...
  19. Replies
    2
    Views
    931

    trouble writing a text file

    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...
  20. Replies
    1
    Views
    643

    While loop not working as expected

    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...
  21. Replies
    6
    Views
    665

    Thanks for that Elysia but unfortunately that...

    Thanks for that Elysia but unfortunately that appears to do nothing.
  22. Replies
    6
    Views
    665

    Thanks very much for that suggestion, I have...

    Thanks very much for that suggestion, I have changed it to :


    if ((!cin) || (choice<1 || choice>6))
    {
    cin.clear();
    ...
  23. Replies
    6
    Views
    665

    problem with input

    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,...
  24. Replies
    13
    Views
    907

    Hi Jim, it isn't just the system call to clear...

    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...
  25. Replies
    11
    Views
    836

    I thougt that antred was implying that I should...

    I thougt that antred was implying that I should give the lengths of them all.
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4