Search:

Type: Posts; User: Cathalo

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    8,844

    Thanks.Wrapped the string with _T.Still didnt...

    Thanks.Wrapped the string with _T.Still didnt work.Came across some code that had SetConsoleTitle in it.

    It seemed to use a precompiled headers that u can setup when your creating the project in...
  2. Replies
    3
    Views
    8,844

    SetConsoleTitle()

    Hi having problems changing title of console.I have included windows.h and have called the function in main but keep getting


    error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from...
  3. Replies
    9
    Views
    2,397

    Got ye.I think i was trying the impossible:)

    Got ye.I think i was trying the impossible:)
  4. Replies
    9
    Views
    2,397

    So what can go in the .cpp file then? Will...

    So what can go in the .cpp file then?

    Will just keep using one cpp file and the headers.Not worth the head ache.And its not as If im programming Microsoft Office suite 2009 or half life 3:)
    ...
  5. Replies
    9
    Views
    2,397

    i Have for example int x=10 in playerClass.cpp.If...

    i Have for example int x=10 in playerClass.cpp.If i cout<<x; in main I get the error undeclared var.Main isnt picking up playerClass.cpp at all.

    Will keep at it.Doesnt help that Im off cigarettes...
  6. Replies
    9
    Views
    2,397

    Yeah sorry didnt make myself clear. At the...

    Yeah sorry didnt make myself clear.

    At the moment I have

    main.cpp
    main.h(function prototype's)
    playerClass.h(my structs and class's)

    and I want to include a playerClass.cpp with the...
  7. Replies
    9
    Views
    2,397

    Including extra .cpp files visual2008

    Hi how do you go about including two or more .cpp files in visual express 2008?Have no problem including headers but cant seem to fathom including extra .cpp files.Tried to find it on msdn but just...
  8. Replies
    1
    Views
    1,204

    Lazy Foo' Productions...

    Lazy Foo' Productions
  9. Replies
    5
    Views
    1,966

    Dont I know!think my first ever question was'how...

    Dont I know!think my first ever question was'how do you keep the console window open':)

    Will check in the options menu.Tried googling but firewall in work wont let me go to the sites:(

    Thanks
  10. Replies
    5
    Views
    1,966

    Close console without hitting enter

    Hi,
    is it possible to close the console window without getting the user hit enter at the end of the programme?Im using MS visual express2008,

    regards
    Cathalo
  11. Replies
    5
    Views
    881

    I get you Anon.So once the compiler sees that any...

    I get you Anon.So once the compiler sees that any of the variables can change and as a result the someArray could be of any size it throws up the errors.

    Normally I always knew what size the array...
  12. Replies
    5
    Views
    881

    Thanks Laserlight. Strangely enough bought...

    Thanks Laserlight.

    Strangely enough bought accelerated C++ and was going to make a start on it this evening and one of the first subjects is the vectors

    Regards Cathalo
  13. Replies
    5
    Views
    881

    Stupid Q regarding array

    Hi,tried to define the size of an array by doing this:


    int x=2;
    int y=3;
    int z=x*y;
    int someArray[z];

    and I keep getting these errors:
  14. Replies
    4
    Views
    1,257

    Sun Forums (http://forums.sun.com/index.jspa)...

    Sun Forums
    could be a good place to start
  15. Replies
    4
    Views
    1,257

    google is your friend

    google is your friend
  16. Replies
    5
    Views
    1,010

    Thanks.

    Thanks.
  17. Replies
    5
    Views
    1,010

    Ok I understand you both.I see where I was goin...

    Ok I understand you both.I see where I was goin wrong.

    I know that there is always going to be a 1 value in the array(well there should be!)
    I take it that its a bad practice to to leave that if...
  18. Replies
    5
    Views
    1,010

    Calling a function within a function

    Hi,

    Im trying to call a function within a function but the 2nd function isnt returning anything.
    The code compiles fine.



    void playerMove(char playerInput,int playerRow,int playerCol,int...
  19. Replies
    8
    Views
    2,174

    hi, Im in same boat as your self.Just started...

    hi,
    Im in same boat as your self.Just started learning c++ as a hobby.like a poster said above start off with basic console games like tic tac toe,hang man and as you go along a learn new parts of...
  20. Replies
    2
    Views
    890

    Thanks mats..I understand what your getting...

    Thanks mats..I understand what your getting at.Will change to code too.the first case statement was been overwritten by the 2nd.Must of read the code 20 times and dint notice the missing break!
  21. Replies
    2
    Views
    890

    2D array-moving a varible about problem

    Hi,
    have iniatlised all elements in a array to zero except for [1][1],where its value is 1.I then try to move it up,down left and right.It seems to work for down,left and right but when you press up...
  22. What they mean by indentation is that your code...

    What they mean by indentation is that your code is broken up nicely so that it is easier to read.Like below its easier to see when varibles are being initialised and so on




    #include<iostream>...
  23. Replies
    2
    Views
    1,519

    thanks,I get you,its working now

    thanks,I get you,its working now
  24. Replies
    2
    Views
    1,519

    cin.get() being ignored

    Hi
    Im using a switch case for menu options.In case 1 im just printing the values of a couple varibles.I put in the getline() but it seems to be by passed all together.

    the varible flashs up on...
  25. thanks@dwks that got it to compile fine ...

    thanks@dwks that got it to compile fine

    @laserlight im not sure i follow you..should the return type for the function be sShip?should structure elements not change?

    thanks
Results 1 to 25 of 39
Page 1 of 2 1 2