General C++ Programming (Page 40)

cin >> nuances
I'm looking at a program written in a professionally published book: #include <iostream> using ...
[3 replies] Last: Both of your answers are very unique but congruent with the same idea ... (by Aaron Vienneau)
Strange compiler behaviour
Today I experienced a very strange compiler issue. I started the compilation and it outputted that a...
[3 replies] Last: You are totally right! Making CInGameManager a pointer has solved the ... (by alastairl)
Why doesn't my overloading operator activate??
#include<iostream> using namespace std; class Try{ public: Try(int); Try(const Try &p...
[4 replies] Last: Thank you SO VERY MUCH!!!! :))) (by stefoka)
Sudoku Solver (Brutish way)
Hi guys! I wrote a program in C++ to solve Sodoku. I just cant figure whats wrong with it....... ...
[2 replies] Last: I think you need to set count1=0 before line 284. Otherwise each time... (by dhayden)
Error in a vector
Hi!I am writing a c++ program which uses a vector which contains rows and columns of a table.Unfortu...
[1 reply] : void setCell(const CCellDescr& cell_Data) { m_Data.push_back( cel... (by AbstractionAnon)
Can someone explain this code
#include<iostream> using namespace std; class String { public: int num; String(); ...
[4 replies] Last: The class has bugs. The constructor at line 38 doesn't initialize arr... (by dhayden)
by naz
HEllo may I know how to compile programs in GEDIT
[4 replies] Last: gedit in Windows 8.1? Strange. If you want to use gedit as your text... (by Stewbond)
Need Help.
Hey.I just want to know the code of the program: Write code to accept matrix as aurgument and displ...
[1 reply] : A simple drought will be : int* multiplyMatrix(int *rows, int *cols, ... (by Ahmad1797)
Errors in dev c++
c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\bin\ld.exe cannot open output file test.e...
[2 replies] Last: yeah that's one of the reasons, you may create a new project , copy-pa... (by Ahmad1797)
Questions about strange C++ ghost
This morning I woke up my computer which had not been turned off manually last night and found sever...
[2 replies] Last: Samuel Adams said the right, there must a log file, you should prepare... (by Ahmad1797)
by BC913
Compile & Build from cmd
Hi, I try to compile & build my projects from command line for MCVS and MinGw compiler. I have th...
[no replies]
by wcdr
c++11 : [] { return m_bState; }
Hi, I am reading c+11 from Stroustrup... and i am in trouble to understand this king of things :...
[2 replies] Last: Thanks ^_^ (by wcdr)
Issues with pointers!!
I am trying to write a function that concatenates a character to a string using the function below...
[6 replies] Last: Could you explain what you mean by this? Consider: class A { publi... (by dhayden)
Not able to understand why I can't read from a file
0 down vote favorite I am trying to read from the file where 3 columns are present; Turn, R1[...
[1 reply] : Ok, I had a quick look at your code, but all of those nested if statem... (by Chervil)
Definition is integral[ f(x)*dx ]=10 range:(0-a) .... integral[ sqrt( 1+f'(x) ) ]=? How can we...
[1 reply] : For integrals in C++ you have to develop your own code or use a librar... (by codewalker)
How many C++ programmers TDD?
I am just curious, but I have a feeling it isn't as popular in this community as in others, but I ha...
[9 replies] Last: I was waiting to see if any of the others replied. I agree with Disch... (by Grey Wolf)
Midpoint Formula
Hey, I'm a beginner and I'm trying to make a C++ program that calculates midpoints. I'm on a mac and...
[8 replies] Last: > What is the difference between cout and std::cout, and cin std::cin?... (by JLBorges)
Why access violation?
Here is a code example class A { public: A() { } virtual void Draw() { int z...
[8 replies] Last: true. I meant in the class body where I declare it. (by dpolyakov)
Mysterious segfault
I am attempting to write a program that adds 50 digit numbers read from a .txt file, outputting the ...
[6 replies] Last: Thank you! Program is still buggy but it has moved past this! Here was... (by PascalOrange)
why return reference doesn't alter the other variable
Suppose i have a function: int & f1(int & p) { return p; } void main() { int a,b; ...
[5 replies] Last: Thanks, Chervil, i understand. (by craftindo)
Pages: 1... 38394041
  Archived months: [may2014]

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