General C++ Programming (Page 3)

by helios
Simplifying template code
 
I have the following function: template <bool V> struct conditional_assignment{}; template <> str...
[3 replies] Last: Maybe conditional: http://www.cplusplus.com/reference/type_traits/con... (by coder777)
by masol
how to embed opencv library inside visual c++ 2010 using lib
 
Hi. i want to embed opencv library inside visual c++ 2010 using lib. i do this work but my exe file ...
[1 reply] : Did you read this http://docs.opencv.org/2.4/doc/tutorials/introducti... (by coder777)
Level of Nested for loop in c+
 
I have written a c program with 256 nested for loop. But, I have heard that it is not possible to r...
[2 replies] Last: > I have written a c program with 256 nested for loop. This is fundam... (by JLBorges)
How to fix this in Linear Search?
 
This is my program code for my linear search program. The condition of my professor was to generate ...
[7 replies] Last: Yes, thanks Peter87 , you are right. (by Chervil)
the code terminates before i even initialize the inputs
 
#include<map> #include<iostream> #include<vector> int N=0; struct Node{ int index; ...
[6 replies] Last: Netbeans is a piece of junk , im downloading VS2015 <3 Thank you Ne55... (by zeroblank)
Deleting items from map while iterating problem
 
So in my code: //triggerEvent is called in engine update every frame. void EventManager::trigger...
[6 replies] Last: This works perfectly! Thank you very much helios :)! (by Putarda)
Need help with Portable program missing dll
 
Hello every one. I am using visual Studio 2017 RC to write a portable calculator (run in Ms-dos env...
[3 replies] Last: You have to use the XP toolset if you want to run on XP. There's no ot... (by helios)
Unable to display two objects through a class of link list with a union method
 
I am having trouble displaying my method for link list. I either display obj1 or obj2 but I can't fi...
[no replies]
Pointer won't point at beginning address in array
 
This code is designed to count the words in a string, but that's not my concern right now. It's not ...
[1 reply] : Lines 32 increments string3. After each increment, string3 refers to... (by dhayden)
How to declare and define class member functions separately using template.
 
Hi, I am trying to write a template class, in which member functions are declared with class definit...
[2 replies] Last: Thanks @ne555 for pointing that out :) Wat a silly mistake :( (by kapil2905)
Unable to exit program properly
 
Hello I am wondering how I could have the user enter "exit" in the update read and have it end. I th...
[2 replies] Last: #include<iomanip> #include<iostream> #include<string> #include<algori... (by JLBorges)
Error message leaves me hanging
 
I am taking a long shot here, but I wonder if the error msg I am getting when trying to compile my p...
[1 reply] : Is this message specific to something or is it some generic statement... (by cire)
stack and queue commenting
 
I am having difficulty in adding well explained comments to this code. does anyone have any help ple...
[2 replies] Last: IMO, a lot of your code doesn't really need comments. If one chooses m... (by TheIdeasMan)
Code compiling in Visual Studio but not g++
 
I have the following program that seems to compile and run fine in Visual Studio, but I can't compil...
[6 replies] Last: Also consider updating your compiler. g++4.9 is pretty old now. g++6.3... (by TheIdeasMan)
Trouble Bubble Sort of book titles
 
I need to make s c++ code of sorting of book titles. 1. display the Inputted book titles. 2. display...
[8 replies] Last: Strike-throughs show code I deleted. Underlines show code I added or m... (by dhayden)
structs array sorting
 
i have a question about sorting the array member function with arrays and structs im trying to make ...
[9 replies] Last: i got it nevermind i figure it out (by ghost1111)
Recommendation for books about Parallel programming C++
 
Can anyone recommend me good books about Parallel programming in C++? Better with examples. Thank...
[5 replies] Last: Regarding the point about parallel programming vs threading - yes, poi... (by dangrr888)
Why ifstream unable to read csv data ?
 
#include<iostream> #include<fstream> #include<string> int main(){ int id; string name;char comm...
[4 replies] Last: Just ignore what I said earlier. I wrongly assumed, based on the name,... (by Peter87)
Rate my Program
 
This program counts the amount of words in a string: #include <iostream> int word_counter(char *)...
[5 replies] Last: [code firstline=28] if(i != 0) { spaces++; } What is this suppos... (by doug4)
VS2015 error on PPP2 binary IO code
 
I'm trying to copy some code from the book that demonstrates binary I/O from files, but currently I ...
[1 reply] : Also #include<string> to make the code portable, it seems your compile... (by gunnerfunner)
Pages: 12345... 28
  Archived months: [dec2016]

Cannot post in this page. To post a new message, go to the first page.