Beginners - February 2014 (Page 59)

Global variable error
 
Why does it not work when i try to make the array global variable it works ok when it's a local variable of main here's an example char floor ; int mai...
[10 replies] Last: > I wasn't aware of such function in the std library. Well, the stand... (by JLBorges)
by alsade
whats wrong with my distructor??
 
can someone plz tell me whats wrong with my destructor? #include <iostream> #include <string> using namespace std; enum bank {HBSC,Citigroup,Barclays};...
[8 replies] Last: Oh. =x. I misread what he typed. Now I feel like an ass. Haw. Sor... (by Disch)
How to create my own library and solve everything?
 
I got another post about dealing with big numbers. So why not just create my own "huge num"? Can anyone teach me? huge num have 256bits or better just as many b...
[no replies]
Help with AI enemies
 
I need help with moving my enemies for a top "snake" view type of game. The objective is to get points and avoid enemies but I can't seem to figure out a way to...
[2 replies] Last: Why a console game o.O Also the easiest way would be to make command... (by Cubenox)
by andrix
strange error
 
hi i can't understand the nature of this error in my matrix class: error: stray '\357' in program error: stray '\273' in program error: stray '\277' in...
[2 replies] Last: Use code tags please. (by IWishIKnew)
by nature
need help
 
What is the answer for this problem? Can someone post it for me thanks Input year level and age: 1 16 Input another? Y/N: Y Input year level and age: 5 22 ...
[2 replies] Last: you have already posted this problem with another account, try to chec... (by closed account ivDwAqkS)
Function Parameter Error
 
Hi, this program is supposed to output a table, which it does do. however, the values in the last column are incorrect. I think it has something to do with my f...
[3 replies] Last: Thanks, that does help. (by ldelsignore)
Ambigous
 
I have Ambigous error in my code both variables are global and one is a two dimensional array and the other is enum , what is wrong , i could post the whole c...
[6 replies] Last: Yes it does make some difference and yes i have reduced the following ... (by Sharan123)
by alsade
enum qustion
 
if i defined enum like this day{sun,mon,tue,wed} , how can i create a variable from type day and make the user intialize it?
[1 reply] : There is no built-in enum/string conversion. If you want the user to t... (by Peter87)
Beginner Tic Tac Toe help
 
Hey people, I've just started messing around with c++. I made this Tic Tac Toe game but I felt there was too much if else going on. Can anyone point out how i...
[7 replies] Last: Heres a professional Tic Tac Toe : http://pastebin.com/SgqL1SRA (by SorinAlex)
Is this what linker does?
 
I think I finally got what a linker is. But I just want to make sure I got it right The only job that linker does is: it takes included library in code and i...
[1 reply] : Oh am confused again. Will A linker take a compiled file (object code... (by Garvanov)
Need Help... Writing on to, Scanning, and Returning Data from .txt File?
 
Question: So I want to send and store: words, their definition, synonyms, and part of speech, in a .txt file and later be able to recall and use the words acco...
[6 replies] Last: > It's my assuption that I need to write something like: > #include ... (by JLBorges)
by qmzh85
Does new and delete have to match?
 
Dear all: I know as a general rule, the occurrence of new and delete should match. If we new once and delete twice, it will lead to disaster. But ...
[10 replies] Last: Thanks all, appreciate all your explanations. (by qmzh85)
by qmzh85
A book to compare C and C++
 
Dear all: I am curious if there any books that compares the similarity/difference of C and C++? For example, when comes to const , I would like to see a boo...
[4 replies] Last: JLBorges, thanks for your information, those references really helps. (by qmzh85)
C++ Beginner - Please Help
 
Ok, here goes... I have recently started a c++ programming course and thought i was doing ok, then looked at the assignment for week 1...stuck to say the lea...
[2 replies] Last: Don't forget to append a semicolon to the end of your class. (by Avilius)
by andrix
class template
 
hello, I am writing a class template matrix: template<class T> class matrix{ private: unsigned rows; unsigned cols; T **m; void allocate(T ***...
[no replies]
by alsade
initializing an integer array with a constructor
 
if my constructor looks like this: employee::employee(int idnum ,const char* ename) { for(int i=0;i<9;i++) id =idnum ; strcpy_s(name,30,ename); } how ca...
[2 replies] Last: great thanks! (by alsade)
"getline" trouble
 
After reading about how to use getline I thought I was using it correctly, but apparently I am not. When I run this program it does not give me the opportunit...
[3 replies] Last: Another thing to mention is that std::cin >> leaves a new line in th... (by giblit)
Implment something in command line.
 
Write your question here. #include <stdio.h> int add1(int a){ return a + 1; } int main(int argc, char *argv ){ ??????????...
[6 replies] Last: I'm not 100% positive how scanf works but can't you just read in a str... (by giblit)
Structure problem.. stachdump
 
hi everyone, please help: I doing a structure problem, it compiles fine, it looks fine to me as well, gives me stackdumpfile error. Any suggestions folks.. plea...
[4 replies] Last: Thanks Yanson got is sorted out: Below is my working code: /* * str... (by austin7)
February 2014 Pages: 1... 57585960
  Archived months: [jan2014] [mar2014]

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