Thanks, I actually rewrote the program deleted a couple of the variable and got it to work. Here is the code if anyone is interested. I didn't need to include strings in this version.
#include...
Type: Posts; User: papagym177
Thanks, I actually rewrote the program deleted a couple of the variable and got it to work. Here is the code if anyone is interested. I didn't need to include strings in this version.
#include...
I'm working on a quiz from Jumping into C++ and I can't seem to get the program to compile completely. It all compiles up to the line where I want to know if Bob and Phil are both 100 years old or...
No Thank You. Visual Studio any version requires to much drive space and the learning cure is pretty heavy. I prefer Code::Blocks over it any way. QtCreator ??? I've been using CB too long to...
My understanding is the old help files from http://onnerby.se/~daniel/chm/d now longer work for Code::Blocks users who us Windows 7 and above.
Does anyone know where to find Help or CHM files...
Don't you also have a error here where you use n instead of num? if (n % i == 0)
Hello kme and jimblumberg,
I use codeblocks and another Norton Product and I occasionally have a program that is reports a SAPE-Heur virus too.
My antivirus is supplied by my ISP so I can't get...
Thanks I'll see if moving these functions to the last output works.
NO! I'm trying to run the program using the program (name.exe) file that is generated after compiling it. I want to be able to...
I've compiles and ran this simple program using code:blocks and it works fine. But if I run the dot exe version the console window closes immediately and I want to fix it to stay open so a user can...
Thanks Jim
That's exactly what I needed to know. Could the comma also be used as a reference something like this char comma = &, (ampersand comma)? So it can be used (,) as a substitute for the...
Thanks Jim, Senor moment. Ok cin>>x1; cin>>y1 works. So the space-bar works, but is there a way to do multiple inputs using a comma in C++?
I'm trying to enter an 'x' and 'y' coordinate on only one line separated by a comma. But I keep getting a syntax error. Here are the lines of code I'm using. This has to be simple. What am I doing...
Thanks rcgldr, I just read the same thing on Learn C++, The numbers are first push onto the call stack then popped of to unwind it. It would have been nice if the author would have said this in the...
Thanks rcgldr and Elysia,
Both of your explanations are very good and easy to understand, but I'm still missing something here! What keeps track of the number of time that (height - 1) was...
In the real world you don't have a wall of any height and then continually subtract 1 from it until the height <=0. Then addBrickLayer to it. The author could have simply said this is not normally...
Kevin Konopka, This is not a big deal, but are you aware of the fact that your array only shows 36 element, rather then 48 you called out? Therefore your going to have 12 elements with a value of 0...
I don't understand this simple function that come directly out of the book: Jumping into C++. It is supposed to be a recursive function.
First this function starts out with an unknown (int...
Thanks Elysia, great job of explaining this.
I made the big mistake of thinking he was discussing two different arrays (array [3][2] and array [4][4]) he was not. Thank you for telling me to post...
Thank You all for the input. It is understandable that anArray [-1] is not part of the array. I should have caught it myself!
I was just playing around with some code when I ran into this.
The output for this code was 7, 1, 2686728, 9, 7, 5, 3, 1
(if you run this your third number may be different)
In the code I get...
Okay, I've pasted part of the page I can't make sense of below. In the book each set of (four)[][][][] are colored with the colors I marked next to them. In the linear layout the each set (four)...
You brought up some interesting points here Grumpy. I'll certainly disable the automatic updates. Even Adobe and Google will add a lot of unwanted menu items if your not careful.
clue 1: cin>> the (c in) function with the input operators, are used to have an operator input a variable.
clue 2: you have cin>> in the area of int main where variables a usually declared.
clue 3:...
Hurray! My Windows 7 PC is clean again. What ever you want to call them (bugs, worms, virus, malware) are no fun!!
I have no idea how my PC got infected but copying even parts of programs is a...
I've only been using Code::Blocks with the mingw compiler since February of this year. I'm just a beginner and have only written a few simple programs in C++. A couple of weeks ago I uploaded a...
Here we go again! On the bottom of Pg 154, Jumping into C++ it gets into pointers and 2D arrays. I understand that a pointer is set to the beginning address of every array, and that 2D arrays are...