General C++ Programming - January 2014 (Page 18)

by moreme
several objects
 
Hi Guys; I want to write an Bank account management console program with C++. i created one class f...
[2 replies] Last: Yeah you'll need some dynamic container such as those in the STL. Ace... (by Aceix)
QT creator, Same pushbutton with different labels
 
Hey guys, Im doing a cardgame in QT c++. And i would like to use the same pushbutton but with differ...
[3 replies] Last: Works flawless. Thank you guys! (by It3rat0r)
Double linked list
 
I'm trying to set up a simple implementation of a double linked list... But I seem to some mistakes....
[11 replies] Last: If you're deleting the head, then what is the value of vertex->prev ... (by MikeyBoy)
Dynamic binding
 
Hi All, Lets say I have follwing code class Base { public: virtual void display() { ...
[3 replies] Last: @JLBorges @iHutch105 I understood the difference now .Thanks a l... (by venkatacplpl)
Is There a Better Way to do This?
 
I've been writing a class that allocates large amounts of memory blocks to avoid calling 'new' and '...
[6 replies] Last: > Memory pools are good for when you will be doing rapid and frequent ... (by JLBorges)
conversion from const char* to char*
 
#include<iostream> using namespace std; #include<string.h> int main() { char*a="Venkat"...
[3 replies] Last: @Peter87 Thanks for the clarification. @MikeBoy I was writing an... (by venkatacplpl)
by mr5
OpenGL: VBO and a broken GC
 
I have recently tried the use of VBO . I just copy pasted the code from this http://antongerdelan.n...
[3 replies] Last: Ah, I thought it was a non-destructive thing. I hope you wasn't using ... (by S G H)
Properly accessing elements of std::vector::<std::reference_wrapper<Type>>
 
std::vector<std::reference_wrapper<Type>> vec; //Some stuff... for(int i = 0; i < vec.size(); i++)...
[3 replies] Last: you could also cast if you like, static_cast<Type&>(vec ).someMethod(... (by Cubbi)
by S G H
OpenGL - Does the Vertex Array Object store enabled attributes?
 
Does the VAO (glGenVertexArrays/glBindVertexArray/glDeleteVertexArrays) store the enabled/disabled...
[1 reply] : I would expect the vertex attributes enabled states to be stored separ... (by closed account 3hM2Nwbp)
Installing Application
 
Hi all, I have written a C++ application i want to make it run on startup (Application modifies the...
[3 replies] Last: Maybe the C:\\Program Files is secured by permission because it's a... (by Yueeng)
C++ IDE
 
What's the best free C++ IDE? I've heard NetBeans should be good, otherwise I've been working in Co...
[10 replies] Last: Yes, I'm also using Code::Blocks, but then I found a more sufficient w... (by Yueeng)
LNK1104 Error
 
I'm getting the LNK1104 error for the d3dx11.lib file. It's driving me nuts that I can't get it to g...
[5 replies] Last: In the include section under vc++ directories heading: $(DXSDK_DIR)In... (by Paul Christopher)
by eran
strching the image
 
Write a function that takes a picture and two integer values ​​and stretching the image by dimen...
[8 replies] Last: It's a common CS-200-type homework. If OP had a class in image proces... (by Duthomhas)
Caculate avarage from array values
 
i wrote following code to calculate average of the values entered to the array.After displaying the ...
[5 replies] Last: I commented various things throughout the code. And I would highly su... (by kevinkjt2000)
Deleting pointer and re-initializing
 
So I'm dealing with a doubt. I have a struct: struct Card{ Card(std::string tFile, int _damage...
[13 replies] Last: Ok. Thank you very much for explaining me. After I finish this project... (by lockandstrike)
vector::erase Questions
 
Hello, It appears that the vector::erase method isn't working for me. I have a main play() functi...
[3 replies] Last: std::random_shuffle( colony.begin(), colony.end() ) ; colony.resize... (by Aaron Vienneau)
Mutex syntax
 
Hi All, #include <iostream> #include <map> #include <string> #include <chrono> #include <thread...
[3 replies] Last: yes, that example (the OP code was from http://en.cppreference.com/w/c... (by Cubbi)
passing array to function
 
i am learning arrays i want to whats the following effect of cods while passing array to the followi...
[3 replies] Last: If you're talking about a C-style array, then, yes, you will need to p... (by MikeyBoy)
function call missing argument
 
I have same type of errors in my program please help me out.... I am just a Beginner in C++.... #...
[3 replies] Last: PTCL *obj2; This doesn't actually instantiate an object -- it just d... (by long double main)
maintaining C++ knowledge
 
so I just finished my second semester of C++ in college (majoring in software engineering) and I won...
[3 replies] Last: Making games is a great way to learn stuff. I learned programming with... (by pivottt)
January 2014 Pages: 1... 1617181920... 25
  Archived months: [dec2013] [feb2014]

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