General C++ Programming - November 2011

Clarification on a Tutorial..
 
So in this section about String functions: http://www.cplusplus.com/reference/string/string/repla...
[2 replies] Last: Ah yes you're right, I was thinking about it differently. Thanks! (by arsenic)
include file
 
I have a function in header file, because I want to change input matrix size when running. When I i...
[4 replies] Last: You could pass a simple unsigned char pointer and the sizes (x, y and ... (by bbgst)
C++ Road Trip Planner
 
Hello all! I am an applied mathematician that has always used C++ for purely computational purpos...
[1 reply] : Sounds like a massive project. Really C++ would only be used for the ... (by mik2718)
wired input character,can't read by input stream function
 
Problem: Today,when i am trying to read a file with c++ file stream, but always failed. the functi...
[2 replies] Last: thanks a lot. with your help,i solve the problem. But, i still have a ... (by youtubezou)
by Meziee
Dinosaur classes.
 
I am supposed to create a class program of dinosaurs. I have to create special attributes for each ...
[5 replies] Last: SetBehavior - you have called it SetBehav in the base class. Using th... (by mik2718)
char in if statments
 
Im not sure how to right it to so that if i input c for car then it will use the carcharges an so on...
[6 replies] Last: I don't see how getdata works. You are passing in pointers to ints an... (by mik2718)
Include an external library in my .lib file
 
I'm using MS Visual 2010 and I've created a static library (.lib). Now, my library uses #include <...
[4 replies] Last: You should be aware that doing that has legal implications when it com... (by Duthomhas)
105 errors on build but none of them point to a spot in the file T.T
 
Hey, I am working on a project and when I build the project it gives me 105 errors and when I go to...
[6 replies] Last: nvm i know whats wrong (by ozarka30)
While loop help
 
This code is meant to do a combat simulation for an RPG but the while loop does not end. Please can...
[3 replies] Last: Yes, that while loop said: while Hero is alive OR while Monster is al... (by LB)
I need to know this, plz help
 
Someone recommended this in order to learn c++: ISO 14882:1998 (the original language definition) ...
[1 reply] : btw: Is ISO 14882 the same as ISO/IEC 14882? (by malvado)
Question
 
I've just downloaded this book tittled: The C++ Standard Library Extensions - A Tutorial and Referen...
[3 replies] Last: "ISO/IEC TR 19768:2005 C++ Library Extensions" is not a book. It's an ... (by Moschops)
How to catch newlind on Win in getline
 
Hi, all How to distinguish difference between stdin and string supplied with “<”. I care only...
[2 replies] Last: Hi, Duoas !!!!! That's really helpes and saves my project !!! THanks... (by mario17)
unresolved external symbol
 
Im writing a code to calculate the cost for parking in a parking lot based on time and vehicle type....
[6 replies] Last: Or if a switch statement would work better i can use that too (by Sspangler)
Task: Write a C++ program !
 
Dear everybody I got the task to write a C++ program, but unfortunately as a newcomer, I have abs...
[no replies]
Lottery program using class need help!
 
First of all, line 43 doesn't work for some reason i have to get it fixed so that numbers need to be...
[1 reply] : Try this function void TexasLottery::MatchNum() { match = 0; for(cou... (by junior7667)
by Johnb5
A little assitance..
 
Im trying to get this program to work, but instead ive gotten at least 14 errors after i complied it...
[10 replies] Last: ive gotten my loop to stop, but i need it to continue after everytime ... (by Johnb5)
Help with programming a bot
 
Hey guys, need some help reprogramming the source code of a bot. The bot works by using various modu...
[no replies]
by SeanR
Problem: successful build but program displays nonsense in output (programmed in C not C++)
 
This is my first semester doing any kind of programming whatsoever and I have a series of functions ...
[11 replies] Last: Thanks, Duoas. That was brilliant code but I didn't fully understand c... (by SeanR)
2 questions
 
first one do you guys like my game idea it's a multiplayer cardgame like yugioh but different rules ...
[3 replies] Last: You sound young and I applaud your enthusiasm BUT... Can you implemen... (by cnoeval)
help me understand linked list
 
How do you implement this example code? The comments say what to do, but I'm having problems with th...
[no replies]
November 2011 Pages: 123... 47
  Archived months: [oct2011] [dec2011]

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