Beginners - September 2010 (Page 25)

by Ashley
Expanding arrays
 
I have to write a code that expands the array onces it reaches it's max capacity. I tried java and c++. It has to be able to read in int from a file and fill th...
[6 replies] Last: This just begs for a class. const unsigned int init_mem = 5; cl... (by filipe)
by wasabi
Multiple cpp files
 
I've read through the articles and previous forum questions on the subject, but couldn't find what I wanted, so... I've been creating a program for a while n...
[2 replies] Last: Yeah, that was it. VC++ said it was included in the project, but since... (by wasabi)
C /C++
 
I was wondering if I can put question wrt C also or just C++
[2 replies] Last: Just post-even if out of C/C++, just view our profiles to see our skil... (by Mazd)
I have three inputs but I only get one output?
 
why am I only getting one output is it my for i loop. and it actualy prints out only the second input thats why I think the i++ is making it do that #incl...
[6 replies] Last: Read here for more explained instruction http://cplusplus.com/doc/tuto... (by Mazd)
dynamic matrix and function parameters
 
Hello! I'm writing a function that should reallocate and set a dynamic matrix passed as the parameter of the function self. But when I execute it the matr...
[6 replies] Last: ok, it's clear. I catch it :) thanks a lot (by harmodrew)
error LNK2019: unresolved external symbol
 
Hello, I'm using Microsoft Visual Studio 2003. And Actually i am using the snake game coding from this youtube user. http://www.youtube.com/watch?v=oMaXdnJgWU...
[1 reply] : Have you defined the function items ? The linker is saying it's call... (by kbw)
rand()
 
Hello, i'm writing a program that relies on creating many objects ,each containing a certain amount of random information. For example one of the member varible...
[3 replies] Last: Thanks guys. (by Mike200)
classes
 
hay guys, im having trouble with this code in the toutorial // static members in classes #include <iostream> using namespace std; class CDummy { public...
[2 replies] Last: Remember that constructors are called every time an object is created,... (by Disch)
by khris
fstream and .csv files (1,2)
 
Hello everyone, I am having quite a problem with a program I am coding. I need this program to read through a .csv file and count how many rows there are, and ...
[21 replies] Last: Galik, thank you so much once again. I understand now. Since the mag... (by khris)
Rounding Numbers - Thank You
 
Hi all I'm new to the forum and new to C++. I have a problem that I solved but could not round it to a whole number as required. Can someone please help? I'd re...
[4 replies] Last: I'm not sure how to use the code. I tried a few different options and ... (by wendy001)
User input verification.
 
I was wondering how do i put a system in place to verify user input and block the incorrect input for switch's. For example: Options are 1-5. How do i res...
[7 replies] Last: No, it is not a good example of a goto ; a simple loop would do j... (by Duthomhas)
by C0D3
I don't understand Polymorphism at all?
 
Hi guys Im new to this forum so I don't really know how Im supposed to ask this question, whether to ask for code or whatever. So Im a self taught C++ progra...
[12 replies] Last: I guess the vocabulariy is a little weird. =P Don't worry about wh... (by Disch)
Game Dev
 
I decided a few days ago that i wanted to create a console-based version of that old game Snakes. The one where you're a little snake and you go around and eat ...
[6 replies] Last: @Disch My apologies. After all, i joined this forum to improve my cod... (by Thumper)
bit logical operators
 
Hello! In my program I've to control input.I choose to set a integer variable (8 bit) to 0 and set, with bit OR operator, a specific bit in case the input ar...
[4 replies] Last: thank you both :) (by harmodrew)
Compiler Error.
 
Apparently, I've been on away for too long. I can't even solve a simple compiler error. #include <iostream> #include <string> #include <ctime> using namespa...
[3 replies] Last: Yeah, sorry. It's been a long day. I don't know what's wrong with me. (by Da0omph)
Program is "calling a pure virtual method"...?
 
I am developing a ship simulation, with a base class "Ship". Ship has two direct subclasses, "ContainerShip" and "CruiseLiner". ContainerShip has two further su...
[3 replies] Last: Hi there, Based on what you have posted it looks like you haven't i... (by Philip Lee Bridson)
Changing screens
 
I am almost done my text based game. The other day our teacher showed us a game from a few years ago. In the game if you chose an option and a new .cpp load...
[13 replies] Last: Fair enough. (by chrisname)
by juvan
Dynamic memory allocation
 
Hi all I have a problem where I would like to dynamically allocate memory in the following way: Lets say I have a for loop, and on every loop I want to cr...
[4 replies] Last: Thanks m4ster r0shi Vectors as it would seem after the initial re... (by juvan)
enum command.... again
 
enum again i'm afraid..... I'm still struggling with the enum command and it's scope(i believe it's called..). In which file(of the three below) do i declar...
[7 replies] Last: I think it's a bad idea #defines pollute all namespaces and break l... (by Disch)
heritage and list
 
Good evening, I've problems with lists. I've a B class (Poule) heritage from A class (Volaille). class Volaille { string nom; public : void sais...
[1 reply] : Currently it is private, which means the derived class cannot access i... (by jsmith)
September 2010 Pages: 1... 2324252627... 32
  Archived months: [aug2010] [oct2010]

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