Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K
~10.0K People Reached
Favorite Forums
Favorite Tags
c++ x 103
c x 11
Member Avatar for hkhk106

I have a son who's in grade 8 and he is show a great deal of interest in computer programming. What is a good book for him that is easy to read, understand and detailed? Money is not an issue. Thanks

Member Avatar for sumtaru
0
239
Member Avatar for zoner7

I have a vector class that is defined using a template. VS 2010 is underlining every instance of these templates, claiming that the identifier Scalar is undefined. Peculiarly, these errors only occur in the definition of the class I will list first but not the one that inherits it. Here …

Member Avatar for thelamb
0
101
Member Avatar for zoner7

So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am …

Member Avatar for thriek
0
263
Member Avatar for muzhe

hi, I am wondering if you can give me some ideas about below: I've a program which uses 3 dimention cartesian co-ordinate system, I've written a program which generate input files for that program based on the 3D co-ordinates. However one thing that I dont get hold of is how …

Member Avatar for muzhe
0
148
Member Avatar for jeezcak3++

My goal is to "master" C++. I barely learned up to classes... destructors within a month from watching videos on youtube. My question is how much more do I have to learn to be like you? It seems like long way to go... I feel discouraged already after reading 7 …

Member Avatar for thelamb
0
137
Member Avatar for tomtetlaw

How do I call a function that gets passed as a paramater? like this: and how do i store it as a variable? [code=c++] void a_func(void(*func)(void)) { //how do i call func? //this gives me an error: func(); //is this hwo to store the function as a var?-> void* this_func …

Member Avatar for mrnutty
0
106
Member Avatar for forever23

Hello I need some tips regarding line striping i.e, number of lines joining with the indices and vertices in GUI using c++.

Member Avatar for zoner7
0
73
Member Avatar for zoner7

This program is frustrating me. I cannot for the life of me figure out what is causing this error message. It's the sort of thing where I fix one issue only to cause 10 more. The compiler is giving me like 8 identical pairs of errors, one for each Ball.itsPosition.getX/Y …

Member Avatar for Sky Diploma
0
116
Member Avatar for sparcheta3

Hi guys, I'm new and self teaching myself C++. A problem from the book says to create the CandyBar Struct and the create a dynamic array that hold 3 structures, initialize the structures and output each of them. The code works BUT I'm wondering if there is an easier way …

Member Avatar for jencas
0
139
Member Avatar for pt_solar

Hi I'm a beginner and I need some help with designing this program. It basically asks to make a class named Employee that has these variables: Name, Id Number, Department and Position. The class should have these constructors: 1- A constructor that accepts the arguments: Employee Name, Id Number, Department …

Member Avatar for pt_solar
0
267
Member Avatar for zoner7

I'm trying to write my first game, and in order to do so, I need to design a recursive algorithm with backtracking capabilities. In the game, there is a grid of tiles. Some of these tiles back be moved to; however, a few of them are impassable. The goal of …

Member Avatar for zoner7
0
82
Member Avatar for trung_a10

Here is my code.... #include "stdafx.h" #include <iostream> using namespace std; #include <iomanip> int _tmain(int argc, _TCHAR* argv[]) { int a,b,c,d; cout << "Previous odometer reading: "; cin >> a; cout << "New odometer reading: "; cin >> b; cout << "Gallons added to the tank to fill: "; cin …

Member Avatar for Nick Evan
0
78
Member Avatar for zoner7

There is clearly something wrong with the else statements in this code. This program essentially mirrors the attack/defense rules in the game risk. The attacker roles 3 times. The defender 2. The best two roles of the attacker are taken and compared to the defender's two roles. The defender wins …

Member Avatar for zoner7
0
89
Member Avatar for zoner7

If you look at the end, i try to store some values in a few arrays. When i try to print these out, I receive complete junk. any thoughts? [CODE=C++] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define MAX 122 #define MIN 48 char GetRand(); void RC4(char *realpw, char …

Member Avatar for Aia
0
97
Member Avatar for zoner7

If you run this code, you will see that the first two lists values do not show up. I'm pretty sure this is because I am trying to print chars as numbers. I'm just wondering how to do this. Thank you. [CODE=C++] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> …

Member Avatar for Ancient Dragon
0
137
Member Avatar for zoner7

So I've got a program that takes an encrypted file and essentially decrypts it. I am now trying to modify this file. During the encrypting process, the words were scrambled by position. The location of each word is marked with a position value. I decrypted the original text, so now …

Member Avatar for nucleon
0
103
Member Avatar for zoner7

Alright. This is a pretty simple program. The program simply reads a simulated DRM (basically an encrypted plain text file) file that was encrypted using RC4. It then reads a plain text file that contains the exact same plain text that the DRM file would decrypt too. (This is assuming, …

Member Avatar for jephthah
0
168
Member Avatar for zoner7

I'm currently taking a computer security class. The thing is, I haven't even taken an intro computer programming course. I taught myself a good deal of C++ back this summer, but I hardly know as much as the other students in the class. we were asked to manipulate the following …

Member Avatar for zoner7
0
788
Member Avatar for zoner7

So I am using Dev C++ to compile this program; however, whenever I attempt to compile, I recieve a linker error that states, "[Linker error] undefined reference to '_cpu_features_init' ld returned 1 exit status" I googled the question, and people suggested that it may have something to do with the …

Member Avatar for dougy83
0
83
Member Avatar for salman213

Hi, I am a beginner in C++, I was just wondering what is it good for. This is probably a dumb question but I was searching on yahoo and google (What is C++ good for), and I did not find any real answers. What do people use it for? Is …

Member Avatar for Narue
0
561
Member Avatar for zoner7

I am currently reading the learn C++ in 21 days tutorial. In a chapter on references, when the author summarizes some of the main points inside a respective section, he explicitly states, "DON'T return a reference to a local object. " I am simply curious what this means. I have …

Member Avatar for ff4930
0
86
Member Avatar for zoner7

I've always used the Dev C++ compiler; however, I keep hearing how the software has little support. Additionally, I have heard people praise the debugger of Visual C++. So, end result, I'm deciding to switch from one to the other. My only problem now is that I can't make the …

Member Avatar for zoner7
0
103
Member Avatar for zoner7

I've got something like 400 lines of code at this point, and I realize that not too many people will be inclined to look at it. Thankfully, the majority of it works swell, and I only need part of it examined. I realize that my use of vectors is not …

Member Avatar for zoner7
0
90
Member Avatar for zoner7

As I write my code, I am realizing there are numerous places where a type int could easily be substituted with a type char. Because type char uses less memory than its int counterpart, I am curious why people don't prefer the former more often. for example, it's not uncommon …

Member Avatar for Radical Edward
0
525
Member Avatar for zoner7

I have a function inside another function that is called by main(). Inside the innermost function a vector is created, which I would like to return to the first function, which I would further like to return to main(). I suppose that I could create the vector in main and …

Member Avatar for zoner7
0
114
Member Avatar for zoner7

I am having a compiling issue because of some syntax errors while trying to return an array. You can probably ignore most of the code below; I am only concerned with the call and return of the CreateBoard[][] array. As I understand a pointer might be necessary to do this. …

Member Avatar for Ancient Dragon
0
107
Member Avatar for chickenlord500

I am working on this code and everything is working but for some reason when i go and do case 3 for remove it removes the code but continually asks for me to remmove and no matter what i type it will not go back to default options for me …

Member Avatar for zoner7
0
187
Member Avatar for zoner7

I'm trying to skip part of my loops by using continue; however, I am unsure where how much code each continue statement skips. My suspicion is that, in the below code, the continue statements effectively do nothing and put my code right before the return false statements. I have marked …

Member Avatar for bugmenot
0
1K
Member Avatar for zoner7

I've got a pretty simple question. I'm trying to ask the player for to choose a difficulty. I want the case to be to not affect his choice, so I am using the toupper() function. Unfortunately, when I try to return the value of the difficulty, no matter what difficulty …

Member Avatar for Cybulski
0
226
Member Avatar for zoner7

I currently have a program that writes Sudoku boards to files; however, I would like the program to be able to read the board already in the file, copy it and then add another board to the file. It follows, then, that if there were two boards in the file, …

Member Avatar for zoner7
0
97