Beginners - January 2015 (Page 38)

by tr1944
Abstract classes
 
Greetings. I have an abstract class, call it C, with two subclasses C1 and C2. In classes C, C1, and C2, there is a virtual method, HasProp1. What I would li...
[3 replies] Last: He means something like: struct C { virtual bool HasProp1(p1_t p1... (by MiiNiPaa)
help?? graphical part of program
 
Hi there, Now, I learned the language, i want to start making windows forms and command buttons, like I used to do in VB6. I installed visual studio 20...
[4 replies] Last: Have a look at "C++ GUI Programming with Qt 4" by Jasmin Blanchette a... (by benbalach)
[Linker Error] Undefined reference to..
 
Hello Guys! I just want to ask about this error that i've been encountering on my program. Can someone help me to eliminate this error? Thanks in Advance. PS: ...
[10 replies] Last: @AsbstractionAnon Thanks! Its a big help! Godbless! (by Ishan23)
Voids, structs, and main
 
Hello I'm trying to make a general variable which I can use in all functions using Structs. But one void also does hold variables which should be used mul...
[3 replies] Last: Thanks! :) It's fixed now. (by Nielyboyken)
Linking files together with headers
 
Hello I've got problems linking my files together. Take, I've got two files. A main-file and a sub-file. The sub-file contains a void function which nee...
[9 replies] Last: Okay thanks! :) Everything is fine now. Thanks a lot for all your hel... (by Nielyboyken)
by Matas
Program runtime is too long
 
Hello. I need to make a program which must be executed during 1 second, no more. But my program is being timed out if it need to output a lot of data. I think p...
[5 replies] Last: @ tcs No, no, just wondering how much data you used that's all? :+) ... (by TheIdeasMan)
<< setw help needed, table not printing right
 
I have a program that prints a table of exponents. It works completely except the columns of numbers aren't lined up right. For example, with input 5 and 4 the ...
[6 replies] Last: This program prints a table of exponential powers. Enter the number o... (by tcs)
Need help with program that prints a triangle of @ symbols
 
I'm making a program that prints a triangle of @ signs given rows (but not columns). For example, the output with rows = 4 would be: @@@@ @@@ @@ @ an...
[3 replies] Last: @keltonfan2 To me, it's fine if you copy 'n paste, AS LONG AS YOU STU... (by whitenite1)
Getter Function Problem
 
While debugging my code, I noticed that my getter functions are not working. And by not working, I mean they are not updating the new value of the member variab...
[3 replies] Last: The agent.getPosition() and agent.getVelocity() both work in the main... (by Moonraker101)
Compilation
 
Getting error when trying to compile #include<iostream> void sizes(char ch, int i, int* p) { std::cout<< "the size of char is " <<sizeof(ch...
[4 replies] Last: Looks normal for a 64-bit compiler, yes. (by Peter87)
by Tzomby
Tic-Tac-Toe checkers game
 
Hello there, I'm trying to make a game that is a combination of tic-tac-toe and checkers, looks like this: (BTW it's not homework, is just a project). 1__2___3...
[5 replies] Last: @Tzomby -What does '\x31' does/means? That's hex for one, '1'. So... (by whitenite1)
by Tobruk
How does echoing works?
 
Hi guys. I'm really curious about the echoing process in C++ because from my C++ Primer Plus book I can't really deduce how does it work. Author gives me thi...
[3 replies] Last: When reading from a tty (a so called console on MS-Windows) echoing ... (by tcs)
C Dynamic Memory Allocation
 
Hi, I'm trying to figure out dynamic memory allocation in C, but I'm pretty sure my code is incorrect. I'm trying to set aside a contiguous block of memory of s...
[8 replies] Last: Thanks. That's clearer now. (by Bogeyman)
Impossible-To-Win Tic Tac Toe
 
Hi, I am a beginner in c++ (been studying it for 2 and a half months) and I wrote this tic tac toe game. Even though it is unbeatable (at least I believe so), ...
[8 replies] Last: Nice job. The code is well organized. I especially want to congratulat... (by dhayden)
C++ Dynamic array of pointers?
 
For various reasons I need to have my next semester of C++ class learn myself so I ask friends who had taken the class for their projects to help me and I'm stu...
[4 replies] Last: I think you misunderstood me. I meant the code int **k= new int* ... (by RexZShadow)
pointers functions
 
unsigned short int multiplication ( unsigned short int*x, unsigned short int*y ) { return *x * *y; // how to write this line properly? it is printing garbage ...
[9 replies] Last: thanks (by xenovia12)
Tic Tac Toe Board Correctly
 
I already posted about this and I think my explanation of my question was too confusing. If you would allow me to explain it one more time in a more clear manne...
[2 replies] Last: I've seena lot of tic-tac-toe posts on this forum and this is one of t... (by AbstractionAnon)
by GaryDT
OpenGL SDK & Premake 4
 
I'm beginning working through the following tutorial: http://www.arcsynthesis.org/gltut/index.html and I'm on the following page: http://www.arcsynthesis.org...
[6 replies] Last: I'm very pleased. I've managed to build the SDK files and my first tu... (by GaryDT)
How To insert an element into an array
 
Hello; I am pretty new to c++, and I'm having a problem with arrays. I want to know how to insert an element into an array; suppose I have an array x with numbe...
[3 replies] Last: wow, it worked. Thanks (by Al Salil)
how to change position of sphere in opengl
 
Hi experts, i am new in opengl c++. i am making a sphere using glusphere function and the problem is that opengl making sphere using center at origin but i wan...
[no replies]
January 2015 Pages: 1... 36373839
  Archived months: [dec2014] [feb2015]

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