Search:

Type: Posts; User: rickyoswaldiow

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,131

    I understand. Thanks for all the help but it's...

    I understand. Thanks for all the help but it's just a simple app to display how an array can be used, it doesn't need to be fool proof:rolleyes:
  2. Replies
    12
    Views
    2,131

    I see, this seems to run fine for me every time...

    I see, this seems to run fine for me every time though. What should I replace that with? Can I check against Null instead of 0?
  3. Replies
    12
    Views
    2,131

    Dave : I would do that only I have absolutely no...

    Dave : I would do that only I have absolutely no idea what to 'expect' the result to be :P

    robatino : I think that line is okay, when the array is initialised it has some random value in it, only...
  4. Replies
    12
    Views
    2,131

    Double Accuracy

    How accurate are the results of this app?


    #include <iostream>
    #include <conio>

    using namespace std;

    void _In_Out()
    {
  5. Replies
    3
    Views
    1,157

    Ah, how do I delete it?

    Ah, how do I delete it?
  6. Replies
    3
    Views
    1,157

    quite :p

    quite :p
  7. Replies
    3
    Views
    1,157

    redrawing a symbol on keypress.

    I've got a function here that manipulates some variables depending on what key is pressed: my problem is that this is called from a loop and the loop continues to run with this method if the user...
  8. Replies
    1
    Views
    1,001

    Halting execution

    I've looked through the FAQ and a few sites on google but I cannot find what I need to know:
    What is the command to exit the program at any step in the execution?
  9. Thread: X and Y

    by rickyoswaldiow
    Replies
    4
    Views
    1,299

    Many thanks :)

    Many thanks :)
  10. Thread: X and Y

    by rickyoswaldiow
    Replies
    4
    Views
    1,299

    I thought of using an array myself but that's not...

    I thought of using an array myself but that's not really my problem.

    I can declare some values of where I want the 'x' to be drawn, but that's only relative to our perception of the map. How do I...
  11. Replies
    6
    Views
    4,026

    std:: if you write using namespace std; at the...

    std::

    if you write using namespace std; at the begining of your code (straight after the includes) you will not have to prefix commands with std::
  12. Replies
    8
    Views
    5,054

    char array[3][4] = {'0'}; array[0] = "haai"; ...

    char array[3][4] = {'0'};

    array[0] = "haai";

    Can you hold a string in a char? :P

    Also, your array is multi-dimentional yet you are only pointing to one dimention.
  13. Thread: X and Y

    by rickyoswaldiow
    Replies
    4
    Views
    1,299

    X and Y

    Aloha all. I'm quite new to C++ programming.
    I've been asked to make a demo app - a dungeon RPG with characters for graphics.

    I decided to draw the map in notepad and use fstream in C++ to read...
  14. Replies
    22
    Views
    1,921

    Okay great, I get it. I'll just stick with using...

    Okay great, I get it. I'll just stick with using a long int for the input and checking it against numeric_limits<int>. The program doesn't need to be totally foolproof and I've only been learning...
  15. Replies
    22
    Views
    1,921

    so to declare a long int in Borland C++ 5.5 I use...

    so to declare a long int in Borland C++ 5.5 I use the syntax 'long int <name>'? and is a short 'short int <name>'?
  16. Replies
    22
    Views
    1,921

    I understand. Anon: The code checks the...

    I understand.
    Anon: The code checks the length of a regular int against the user inputed long int.
  17. Replies
    22
    Views
    1,921

    Ah brilliant :) That's exactly what I needed to...

    Ah brilliant :)
    That's exactly what I needed to know, I'll have to go try it out now on the other computer. Unfortunately this is my flatmates laptop, I don't have net access :/
    One question,...
  18. Replies
    22
    Views
    1,921

    jverkoey : The job is actually for a games...

    jverkoey : The job is actually for a games developer, the company use C++. I have a portfolio of apps I've made in other languages and I'm making a game in Dark Basic Pro from scratch to show I can...
  19. Replies
    22
    Views
    1,921

    Stupid syntax error?

    Hey, I'm revising C++ for a new job I'm trying to get. I'm having some trouble with some very basic stuff:


    if((aRegularInt > -2147483647) && (aRegularInt < 2147483646){
    cout << "You...
Results 1 to 19 of 22