General C++ Programming - November 2013 (Page 25)

Dynamic Char Array for class constructor
 
I'm writing a class that has two constructors. However, I can't get them to work quite right. One constructor has a parameter of an int (with a default value of...
[2 replies] Last: It's for an assignment. The purpose is to create a class that acts a n... (by Umbrosa)
SFML 2.0 Lots of objects (1,2)
 
i have been thinking about making a breakout clone and i don't know how to make all those bricks easily (in other words the way i would do it is i would make a ...
[27 replies] Last: You could do that a number of different ways. First way that comes to... (by Disch)
Dynamic allocation 2d array
 
I need someone knowledgeable enough to confirm that this problem cannot be solved without a pointer. Namely I need to read the rows and columns number from the ...
[6 replies] Last: Compile with -std=c11 #include <stdlib.h> #include <stdio.h> #inclu... (by Duthomhas)
Not a member of?
 
Hi, This is probably a VERY simple problem. Basically I've set a 2D structure: struct IntegerCoordinate { unsigned X; unsigned Y; }; and then m...
[3 replies] Last: Basically, what I'm trying to do is create a vector v filled with Inte... (by ocprodigy)
Learning C++ Raw Touch Events
 
I am new to programming gesture APIs and we are starting one as a student project in C++ (using Visual Studios 2012). Basically I was tasked with getting Raw Da...
[no replies]
by Shumai
map
 
am designing a program that i would like to add a map to it for navigational purposes. am using dec c++. please help with the code
[no replies]
invalid use of member
 
I am getting this error Compiler Output: 0IGzNLUq.c: In constructor 'CheckingAccount::CheckingAccount(int, float, float)': 0IGzNLUq.c:104: error: invalid us...
[8 replies] Last: Not only that, it is returning a double, and is has no definition.... (by LB)
Need Some Help Finding the Problem!!!!
 
Can anyone telling me why my program is returning a negative number at the end...attached is the program I have created any help would be appreciated thank you:...
[2 replies] Last: for (j = n; j >= 0; --j) { if (smallest > float(ARRAY... (by cire)
Help!! Histogram Array
 
I need help with, i would also appreciate a little explanation so i can comprehend whats going on. A histogram showing the number of students who received sc...
[2 replies] Last: Fixed, any one able to help me? (by bodyguard814)
searching and analysis
 
The provided samples files are extracted from a bigger set of benchmark data used for text analysis. For your reference here is the link to the benchmark data:...
[1 reply] : I'm going to post each part I do. I'm asking you for guidness and help... (by gachedid)
by dkaip
Template for a deposit
 
How i can make a prototype for a function for all stuff? I have the code from SneakySnake ... #include <iostream> #include <string> #include <vector> using n...
[no replies]
Debugging a heap corruption
 
I'm in some trouble and I've never debugged issues like this before. My project compiles, but during initialization (which uses a LOT of dynamic memory alloca...
[8 replies] Last: Seeing 0xcdcdcdcd makes me think this problem is less about heap corru... (by Disch)
I am a beginner that needs help!!!
 
Hello, I am planning on creating a commercial fishing iphone game. the object of my game will be to catch tuna and sword fish on a Longline. players will not be...
[2 replies] Last: Um, so, what exactly is you want us to do? Re-type the contents of a ... (by MikeyBoy)
Expected Primary Expression Before Float
 
I am running into errors when I am compiling code in CodeBlocks, and I am not sure what I am doing wrong. I am creating this simple program for a class, but it ...
[8 replies] Last: Well, it looks like it'll work fine, although it no longer calls a fun... (by MikeyBoy)
by Zyl
Class forward declaration ignored?
 
Hello. I have a class "SelectionGroup" which derives from a class "RMFObjectContainer". RMFObjectContainer has member variables of type SelectionGroup, so I...
[4 replies] Last: Yeah, it makes sense it needs the actual definition to take care of al... (by Zyl)
C++ small issue
 
i wrote a classes program in c++ where it gives me an error of "the identifier " start " cannot have a type qualifier" what does it mean ????? start is the...
[4 replies] Last: what do u mean by code tags ? (by safia sohail)
Printing from an open text file
 
I need to create a text file that looks like: first line second line third line forth line fifth line sixth line I want to replace the thir...
[3 replies] Last: @kbw I can now open the file but how do I print its contents out...I h... (by scardoso)
Need your help
 
Hey guys. Recently, I've started programming my little program called vLibrary (program I want to make for the library in my city) and after I m done with conso...
[2 replies] Last: I have finished my project in UML (Visual Paradigm) already and I m ve... (by Aleksandar Grbic)
Typecasting structures...
 
Alright, I am writing some code that will be reading some older files written by a DOS program years ago. The files I will be reading can be considered archives...
[9 replies] Last: I decided to combine both into one struct and use that struct in a vec... (by Sephiroth)
tree program help
 
my following inorder traversal program is: #include<stdio.h> struct node { int info; struct node *left; struct node *right; }; typedef struct node *...
[1 reply] : Use the CODE tag and make sure indentation looks properly. Noone will ... (by Zyl)
November 2013 Pages: 1... 2324252627... 46
  Archived months: [oct2013] [dec2013]

This is an archived page. To post a new message, go to the current page.