ooh, alright I understand now
works perfectly, thanks :D
Type: Posts; User: FH|RogueHunter
ooh, alright I understand now
works perfectly, thanks :D
I need to make a dynamically-allocated two-dimensional array.
so what i did was:
int **arrayPtr;
then i get my width and my height.
then:
arrayPtr = new int[width][height];
I have to use square root in a program, but im not allowed to use the cmath library.
is there an alternative way to calculate square root?
thanks, worked perfectly :)
I have this program where the user can enter commands, followed by either a string, or int, depends on which command asks for.
so i store the input all into one string, then cut it into two...
nevermind i figured it out, im new to programing, i decided not to use getline() and my while statement now works with detecting a new line
Im writing a program where i want it to keep getting input untill a blank line is entered... im using getline(), im not sure on how to check if a blank line has been entered
if anyone knows i would...