Beginners - August 2012 (Page 19)

error while creating an object
 
I'm trying to write a c++ program to implement queue in ubuntu os using codelite IDE, I still didn't complete the program but I am getting an error when I check...
[3 replies] Last: Thanks for helping I just have to specify if the type of template for ... (by Keshav2050)
Unnamed Namespaces
 
Hi, I have a question about global variables instantiated via unnamed spaces. I implemented the following 3 files: main.cpp #include "testClass.h" ...
[1 reply] : The whole point of putting something in an anonymous namespace means y... (by Disch)
Using RE2
 
Pretty new to using GNU. Always used Visual Studio in the past. I've been struggling with using Google's RE2 project. http://code.google.com/p/re2/wiki/Instal...
[no replies]
Create a while loop
 
Hi All, I have been working on pointer's and arrays lately and need help finishing this. So what would be the way to make this program display the letters ...
[3 replies] Last: Bad design. Use encapsulation. template <typename T> typedef struct ... (by Nexius)
How to declare a variable in a class, and be able to use it w/ every function in that class?
 
For simplicity sake, I am trying to declare char x = 'X' . in a private section of my class. I cannot do this, because I cannot declare a variable in the h...
[16 replies] Last: Ok this is great! Thanks! (by sepetoner)
Question about enumerations.
 
I thought that enumerations were just an easy way to have a list or a color code or something along those lines. I'm following a tutorial (game from scratch..pa...
[2 replies] Last: MenuResult is a member of the class MainMenu. So when a member of a cl... (by vlad from moscow)
by yesh11
Namespace - regarding.
 
Hello there, I am just learning Cpp. I am learning inheritance , I did a simple program. It was basically creating a base class and a derived class. I use...
[11 replies] Last: I use turbo c++ Don't. I will put up the code below and I got the o... (by viliml)
strcopy() why doesn't this work?
 
So I've never been 100% clear on character arrays vs strings but I'm still uncertain why this doesn't work. I'm trying to write a function to get the extension ...
[6 replies] Last: Well, if this is a C++ program, you don't even need to allocate any me... (by modoran)
Help with a basic program
 
I have to convert some psuedocode into a C program. Its a program which asks for an input from the keyboard, and prints whether it is a vowel or a consonant. ...
[9 replies] Last: Left it a bit late have we? Lot's of learning to do in the next 24hrs... (by TheIdeasMan)
Abstract class
 
1>CIS247_Wk6Lab_EugeneYoung.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall Employee::displayEmployee(void)" (?displayEmployee@...
[2 replies] Last: In function displayEmployee() of class Hourly you call function displ... (by vlad from moscow)
multilinkedlist
 
what is multi linkedlist and how to implment it?
[2 replies] Last: You can use the STL <list>, which is a double linked list, (you can fw... (by TheIdeasMan)
PlaySound how to pause
 
I am trying to make a program that plays music and I am not able to make the user pause the music and be able to play where they left off. This is what I h...
[6 replies] Last: According to the MSDN entry for mciSendString, the header is mmsystem.... (by andywestken)
Defining/Declaring and Header Files/Source Files
 
Hi guys, I'm a new programmer that could use some help... I've been reading everywhere that in general: *each source file should have a matching header fi...
[2 replies] Last: Ahh I see. The test=5 outside the code block example makes perfect se... (by theredchaser)
Undefined reference
 
Hello, I´m really a beginner on C++, I just started using it because I'm reading "Programming Game AI by Examples" book, but I have some problem compiling the...
[7 replies] Last: I don't understand why that works. (by kbw)
by gerfy1
Guess my number
 
My guess my number game doesn't allow you to guess multiple times. Please help! [#include <iostream> #include <ctime> #include <cstdlib> using namesp...
[3 replies] Last: You have to remove break statement form all if condition. int main() ... (by HiteshVaghani1)
Couple of questions about objects
 
In a simple SDL 'game', the player picks up 5 coins to win. The coin is 'picked up' when the player touches it and a new coin is spawned in another random locat...
[4 replies] Last: @Peter: Q1: Okay, will keep it as it is. Thanks. Q2: Good point abou... (by georgep)
by vw4x4
meaning of standard output stream?
 
define standard output stream.what is actually standard output stream?
[1 reply] : No need for duplication of questions. http://www.cplusplus.com/forum/... (by webJose)
Displaying the last piece of data twice
 
Hello Everyone, I've been learning how to read and write to files in cpp. For a reason I cannot figure out, my last piece of data in the file is read twice. ...
[2 replies] Last: Thanks, I was inputting data into the file using a loop and I have an ... (by RastaWolf)
Struct
 
When using struct is it only good for creating a database or can it do more? What the differences between struct and class when programming? Are data structur...
[1 reply] : When using struct is it only good for creating a database or can it d... (by Moschops)
My programming is displaying the alpha character rather than what I want?
 
I am trying to get the program to display the dealers hand, and then the players hand. This works. But when I call the hit() function, the dealers hand turns ...
[no replies]
August 2012 Pages: 1... 1718192021... 45
  Archived months: [jul2012] [sep2012]

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