October 23rd, 2013, 04:45 PM
Sorry, I despise forums and only did this one to get help from the community because I thought it would be very useful, so I had no idea about things like this.
October 23rd, 2013, 04:41 PM
So if I want the variable to be something the user enters, how do I initialize it?
October 22nd, 2013, 08:26 PM
As far as I can tell, in a console program, it makes it so enter doesn't close the console.
October 22nd, 2013, 08:25 PM
October 22nd, 2013, 08:24 PM
October 21st, 2013, 08:56 PM
// Practice.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
// Asking for a number
October 21st, 2013, 07:04 PM
Thanks but now it only displays "That is a small number.". What am I doing wrong?
October 21st, 2013, 07:02 PM
OK thanks, but now it only displays "That is a small number."
October 21st, 2013, 06:06 PM
Hi, I am new to coding and have a question with my if else statement. This is a VERY simple program that I have made something like in Javascript before, but when I do it in C++ it does not work...