General C++ Programming (Page 2)

by Sid123
Code compiles and starts running, then stops? no errors found though?
The code is too long to paste here but does anyone know what could cause "project.exe is not working...
[7 replies] Last: The debugger is the most helpful tool in all cases, both when you are ... (by LB)
by JDev
Seeking a Mentor
I have been dabbling with C++ for a few months now having read a few books and finding resources ove...
[6 replies] Last: Run /server and then /join in hexchat (by fabtasticwill)
Big O Notation
Question: Algorithm of: for ( j = 0; j < n; j++ ) { for ( k = j; k < n; k++ ) { <so...
[3 replies] Last: Yes. See (by helios)
Verification of code
hi can someone advise me on why my programme code cannot run properly. The program supposed to promp...
[3 replies] Last: #include <iostream> int main() { bool has_1_2_or_3 = false ; // ... (by JLBorges)
Is it possible to do this?
Is it possible to make a program create file with certain data points, and then load the file and re...
[5 replies] Last: No, it doesn't handle graphs, but I'm actually working on a generator ... (by helios)
by leourb
Custom Iterator for list<class>
Good morning. I have a problem regarding iterators and custom classes. I confess that I am not so co...
[2 replies] Last: Okay.. It is actually working.. Thank you Peter87. (by leourb)
function to cal avg, put in performance formula and compare
Hi all, need to do a function to cal avg, put in performance formula and compare Performance = (...
[1 reply] : We can see that each element in the 2D array is a MachineType struct. ... (by keskiverto)
how to find the no of digits after decimal point exactly
//c++ code int nocheck1(float e) { float q; int count1=0; q=e; while(q!=(int(q))) { count1++; q=q*1...
[6 replies] Last: I'll just leave this here: (by helios)
if statements on parts of a string
Hi, can someone help, I want to write "if statements" on parts of a string and I am not having any s...
[3 replies] Last: Perfect, thanks FurryGuy. Sorry about the lack of code tags (by GerardG)
What to do after cplusplus tutorials?
I've followed the tutorials on this site up until pointers and am now following lazyfoo's tutorials ...
[3 replies] Last: Yeah, now I'm on and just trying ... (by rakim87)
Templates and lambdas, "incomplete type is not allowed" and
Right, it's been a while since I've done anything in C++ so if it's something really stupid gimme a ...
[5 replies] Last: Okay I'll apologise for that as I moved the templates above and it's f... (by SatsumaBenji)
Getting this error here: warning: incompatible integer to pointer conversion passing 'int' t...
[7 replies] Last: Your original code was recursive; this too is recursive (it uses your ... (by JLBorges)
Taylor Series Lab
Having some trouble starting this in c++ language Consider the problem of approximating ln(1....
[1 reply] : 1. In series (A) use -0.9 . In series (B) use 0.9/2.9 . (by skaa)
by AcarX
How to read from a file with hex address
I need to read an entry from a packed file by it's hex address but i'm not sure how to approach this...
[4 replies] Last: Thanks for help. (by AcarX)
by nbt
Initialization via constructor
Hi! I am learning about classes right now and I am getting used to initializing data members like th...
[2 replies] Last: Perfect, got it. Many thanks. (by nbt)
by leourb
Sorting half of vector - Syntax
Hi everyone. I have read on my book that to sort an half of a vector I can write sort(v.begin(),...
[2 replies] Last: I missed the parenthesis, sorry! Anyway in page 676 of C++ Programmi... (by leourb)
q: abt static-cast function
Below code - simply experimenting with it to learn more abt static cast functions. THe purpose of th...
[6 replies] Last: > error redeclaration Don't redeclare; reuse the same variable. int... (by JLBorges)
by LASims
Type cast issue
unsigned long mSecDay = 0; double secondsOfYear = 0.0; mSecDay = 52575812; secondsOfYear = (dou...
[5 replies] Last: Another alternative is to use rationals instead of floats. The only pr... (by helios)
Reading from file input problem !!
i face a problem when i read input from a file, so what is the solution of this problem ? the input ...
[5 replies] Last: thank you LB (by mahmoud2592)
closed (1,2)
[30 replies] Last: thanks , may i check how do i print out the array after this as size i... (by techishawn)
Pages: 1234... 31
  Archived months: [jun2015]

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