Beginners - September 2010 (Page 15)

by TomRed
Dungeon Crawls Problem
 
Hi, I'm new to these forums and new to C++. I started about a week ago and was looking for practice problems online when I ran into a thread from this forum wit...
[12 replies] Last: Oh right. Yeah, my compiler just didnt like lines 56 and 86. After I... (by AlphaBravo)
class problem?
 
hi friends, i have a problem regarding class my problem is here below (Account Class) Create a class called Account that a bank might use to represent customer...
[4 replies] Last: i think i forget putting brace at default constructor i correct it now... (by sehrish)
Inheritance & Polymorphism: Why dangerous??
 
Hi Everyone! I'm new here and am excited to learn C++ from everyone! This is my first post. I apologise if this question may have been asked before. I have...
[3 replies] Last: 2) Err.... derived classes have nothing to do with it. Whenever an... (by Disch)
by Serady
Is this a timestamp?
 
I'm not sure where to post this, but here goes: I'm trying to understand how a binary file (.DAT) generally works. I'm using a hex editor do this. I understa...
[15 replies] Last: If you want... however, not only is it very inefficient due to the nai... (by Athar)
words from a txt file to a char list/arr
 
Hi everybody! I must make program in c++ that reads unknown number of words from a text file to char arr which after that i will have to sort the words by th...
[3 replies] Last: You can use fscanf this way: Taken from fscanf documentation on thi... (by closed account Lv0f92yv)
Copying objects
 
I have a std::vector with pointers to objects. The objects are instances from either the class Block or one of its subclasses called Target and Box. Also, I've ...
[14 replies] Last: hah. That's fine. ^^ You'll be a little wiser for the next app ;... (by Disch)
error C4430
 
Hello, I am writing this dynamic queue class for an asignment and ran into the error code C4430. I researched this online and examined my code line by line ...
[2 replies] Last: Oh wow Thank You!! I was hoping it was something simple. Sometimes I g... (by malgron)
by pauyon
Filling a 1D Array with a ".txt" file
 
I want to fill two one dimensional arrays from two different .txt files. How would I write a code for that? I tried using the fstream library and the ifstream i...
[3 replies] Last: std::vector is what C++ programmers typically use in place of simple a... (by PanGalactic)
Problem with Snake Game Display
 
Hi all, I am a beginning programmer working on a simple snake game. The program was constructed by my professor, and we have to debug it, however, he left o...
[1 reply] : what are these attron/mvprintw functions? What lib are you using? ... (by Disch)
by raz23
while loop problem
 
I've been trying to get this while loop to loop and this is what I have so far: cout << "\nEnter the number of tests that have been completed: "; cin >> ...
[2 replies] Last: Thank you very much Bazzy! Appreciate greatly (by raz23)
Linker issue
 
I have been trying to break up my program into multiple source files and header files, except I run into a problem. One of my variables has to be included into ...
[5 replies] Last: Aahhh! Ok, I guess I just don't know how to use extern, lol...I didn't... (by lordimmortal)
by pauyon
Array that accepts only characters
 
I have to write a program where a person must input answers "a", "b", "c", or "d" and compare them against the correct answers (comparing answers application ty...
[12 replies] Last: Ooh ok, got it. Well, again, thanks! (by pauyon)
by tommyz
Problem with sorting objects in vector (STL)
 
Hi, I spent a lot of hours, why this code is wrong. This code compiles good, but execution causes errors (during sorting objects). Environment: (MinGW WinX...
[11 replies] Last: The function sortingFunction is not correct defined. Correctly: ... (by tommyz)
Open Source
 
I am looking to get some experience looking at larger projects/open source projects that I may build and run on my own (I'm probably not good enough yet to cont...
[1 reply] : Like you said, there are tons of projects of varying sizes. The best ... (by Athar)
Combining float with string
 
Hi guys, I recently started programming in C++. I don't have much experience with desktop programming but have extensive experience (4 years +) of web languages...
[9 replies] Last: Thank you very much for your help L B. Really appreciated. You saved m... (by thepedestrian)
by yts
switch case
 
If i want to have one extra conditions in which others input besides the character below is in zone4, where should i add in the condition? #include<iostream>...
[9 replies] Last: fun2code:Ya, this is the answer i want, thanks:) (by yts)
by yts
checking of alphabet or digit.
 
#include<iostream> using namespace std; int main() { int a; cin>>a; if (cin.fail()) { cout<<a<<" "<<"is an alphabet"<<endl; } els...
[6 replies] Last: I don't use ASCII codes myself, he just said his tutor used ASCII, if ... (by Fresh Grass)
by yts
Pass by value or reference?
 
Can someone explain to me why the output of this program is 20 3 40?Thanks~ #include<iostream> using namespace std; void fun(int&d, int e, int *f) {...
[2 replies] Last: Thanks for ur explanations, it is very clear:) (by yts)
New to C++, can't fix errors
 
Hello. I have an assignment for my college course. The assignment is to compile a program, view its errors, and fix them. However, I cannot seem to fix one of t...
[5 replies] Last: I did not expect it to work. As I said, the assignment was to fix all ... (by trouty323)
September 2010 Pages: 1... 1314151617... 32
  Archived months: [aug2010] [oct2010]

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