General C++ Programming (Page 40)

Range based for loops
Can anybody explain Range based for loops ?
[7 replies] Last: It's a bit inconsistent compared to the rest of the tutorial code. (by Peter87)
by bw119
Problem with functions in classes
Hi, this is my code #include <iostream> #include <vector> #include <cstring> using namespace st...
[2 replies] Last: Thank you so much. You are a life saver! (by bw119)
Struggling with Vertex Shaders
I am learning to render objects with vertex shaders after just getting the hang of rendering objects...
[1 reply] : I figured out how to translate the rendered objects with a shader thro... (by jheard901)
please help
I cant figure out why my program goes into an infinite loop when i exit my entries. // LinkedL...
[1 reply] : for(NameDataSet *pIter = pHead; pIter; pIter -> pNext) Did you mean p... (by helios)
How to output console display to a txt.file?
Hello people! i am currently doing a complex number calculator ,and i wish to output my data to a tx...
[6 replies] Last: JLBorges redefines what std::cout does. Other code does not need chang... (by keskiverto)
generic linkedlist in c
I am currently learning the C programming language, and I decided to implement several data structur...
[1 reply] : I found the correct solution to the problem. Upon creation of the lin... (by haglerchristopher)
Function matching and Argument-dependent lookup
#include <iostream> #include <string> std::ostream& operator<<(std::ostream& os, const std::str...
[3 replies] Last: The declaration shown in the link you provided is a simplification. Y... (by cire)
Why is the exception?
Hello. All I know in that I get an exception. I don't know the reason.Here is my code snippet: ...
[1 reply] : If you run this from a debugger and reproduce the exception, the debug... (by Disch)
Input does not enter buffer when sleeping
When the program is processing/sleeping, those char input at that time would not goes into the buffe...
[3 replies] Last: C++ streams do not have time stamps. What are time stamps? Does othe... (by Nikko YL)
by piotr5
when is no constructor being called in new standards?
I made a simple experiment using: struct B : Moveable<B>{//has verbose copy and move constructor ...
[4 replies] Last: c3br returns copy_elision somehow, in addition to one copying. Whic... (by Cubbi)
by Serker
Help a Beginner!
Hey I use C++ in "Microsoft Visual Studio 2013". I enter two numbers. I wanna sum and multiply thi...
[3 replies] Last: I am also a beginner and i got an assignment to create a program that ... (by ramotnarg)
destructor is at war with cascading of stream insertion operator
I have this code: #include <iostream> #include <string.h> #include <iomanip> using namespace std;...
[2 replies] Last: Oh Wolf how thankful I am to you!!! thankyou very much. (by danicpp)
make dependency and Makefile
Hello. Please explain to me what is dependency in Makefile. secondly I have made Makefile but cann...
[4 replies] Last: Yes (by kbw)
Return to menu in main program
my assignment is to enter employee id and their respective hours and pay rate, i have to keep asking...
[no replies]
Calling a method in a method of another class
Hey guys :D Situation: I have created a "CSprite"-class in a separate header-file. It contain...
[18 replies] Last: main generates CPlayer CPlayer generates CSprite so main would have t... (by Disch)
changing header C++ 6.0
hi everyone can i use header VC++ 2008,2010,2013 with C++ 6.0 ?
[4 replies] Last: is clear and new method for me i can understand this. Re... (by int man)
How to edit text file?
May I know how to change a certain part of a text file? I want to +1 to a text file every time the u...
[3 replies] Last: Modifying a file in-place (such as with a File Mapping) assumes that t... (by Duoas)
header folder lookup
Hello. I do not know when and how to use this $ CC -I/usr/local/include main.cpp Do I use thi...
[7 replies] Last: It tells the compiler where to find its standard include files (like ... (by Duoas)
Problem with getline
I have a problem with my code. I was writing a code to encrypt N number of sentences and when i ente...
[2 replies] Last: It worked, thank you (by ahmadk3)
initialize char matrix
Hello to everybody! I have a global variable initialized like that: char matrix = {{'1', '2', '3...
[2 replies] Last: Using std::array<> to wrap the c-style array: #include <iostream> ... (by JLBorges)
Pages: 1... 3839404142... 46
  Archived months: [jul2014]

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