General C++ Programming - December 2013

Enum class problems
 
I'm having some issues getting an enum class working in my program. I declare it in a header file, a...
[2 replies] Last: I guess that shows me for assuming enabled by default means that it co... (by vockleya)
2D side scrolling platformer: Facing problems with background/flat floor surface.
 
Hey guys, I am working on a 2D side scroller game. Where a ball is moving continuously towards ri...
[3 replies] Last: In this simple case, you could simply draw the surface in the same rel... (by Zhuge)
pointer arithmetic
 
In the below example, the getline function returns the size of a line made of characters and stored ...
[no replies]
C++ program to calculate Mean,Variance& Standard Deviation by Short-Cut method
 
/* Program in C++ to calculate mean,variance & standard deviation using short-cut method. ...
[no replies]
by Life24
Socket Programming in C++
 
Hi, I want write a chat program with socket programming.(Simple) Please help me and give me exampl...
[3 replies] Last: You can use WinSock or whatever socket lib that comes with *nix system... (by Fredbill 30)
External Dependencies: d3dcompiler.h file is missing?
 
Okay so, first of all its the only external dependencies file im "missing" i need it to use the D3DC...
[no replies]
Invalid use of template name 'ND' without argument list
 
#ifndef BSTCLASS_H_ #define BSTCLASS_H_ #include <string> using namespace std; template <ty...
[4 replies] Last: Use a generic parameter template <class T> class BSTClass{ void Ba... (by ne555)
Appending Binary file....
 
I was trying to append two binary file specially EXE so I coded this #include<iostream> #include...
[5 replies] Last: It won't matter what you do to it -- it won't work. (You'll just wind ... (by Duoas)
by jaded7
Variadic friend classes?
 
Is this possible? I'm pretty inexperienced with templates, variadic templates especially. I get a sy...
[5 replies] Last: Thanks for the help. I don't have a specific use for it in mind, I jus... (by jaded7)
function definition
 
Hi. Is the following function defined correctly? Thanks in advance int ReadFile(file, size, gr...
[5 replies] Last: @Rockyy: Did you read @Cubbi's post? (by LB)
Operator overloading & output suppression
 
Hey guys! I have two questions: 1st Question: I have three different classes A , B , and C...
[5 replies] Last: > explain what the colon in these lines/constructs do (I'm still learn... (by JLBorges)
by muhsid
decimal to binary
 
This code gives result as binary of the array values written eg: {15,127,7} the output was 111111111...
[3 replies] Last: thank you LB & giblit (by muhsid)
How to compare a vector to a map
 
Okay so I have an `inventory` class that accesses a static vector from my base class `MainShop`. I a...
[no replies]
pointers and arrays
 
The book states the following two are equivalent: char s ; char *s; Since the name of an ar...
[1 reply] : Since foo is the same as *foo , then *foo is the same as **fo... (by Duoas)
Learn DirectX 9 or DirectX 11 First
 
I have two books, one is over the basics of direct3d 9 and the other direct3d 11. The direct3d 9 boo...
[4 replies] Last: I fully understand what you mean by the XP thing. I'm saying that you... (by Fredbill 30)
How can I access a specific protected inherited member depending on the class?
 
Okay so I have `MainShop`(base class) then `SwordShop` and `BowShop`(derived classes) and another de...
[3 replies] Last: @JLBorges, thank you! That fixed my problem. and @Zereo, my inventory ... (by damian519)
How to make my program read a txt file off a ftp server?
 
I am having trouble making my program read a txt file and performing an action.Heres my code.I have ...
[no replies]
Do I need to memorize all the DirectX 11 Functions and syntax
 
I'm starting to do Direct3D and i was getting a bit overwhelmed because there is so many things to t...
[7 replies] Last: Okay, i will stick to DX11. Thank you for your input! (by TrentIsDino)
by Zapeth
Whats the best way to update linked indices that were changed?
 
Hello, so basically I have 2 arrays where elements in array A contain some data including an index n...
[5 replies] Last: I know, I just did that for the sake of the pseudo code to keep the co... (by Zapeth)
Flags in Makefile
 
Hello everyone! I have a problem about Makefile flags. It begins with that I cannot get the exact me...
[6 replies] Last: Yes, I wrote linking and compilation in the same line then. And I thin... (by Fatty527)
December 2013 Pages: 123... 37
  Archived months: [nov2013] [jan2014]

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