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:
Type: Posts; User: rickyoswaldiow
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:
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?
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...
How accurate are the results of this app?
#include <iostream>
#include <conio>
using namespace std;
void _In_Out()
{
Ah, how do I delete it?
quite :p
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...
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?
Many thanks :)
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...
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::
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.
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...
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...
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>'?
I understand.
Anon: The code checks the length of a regular int against the user inputed long int.
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,...
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...
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...