General C++ Programming (Page 4)

file input output
program need to read from text file and "rotate" the data and output it into a new text file.
[2 replies] Last: OP: well there's a std::rotate() but from your cryptic post there's no... (by gunnerfunner)
passing variables between classes
I am new to object oriented programming and am having a difficult time trying to figure out how to p...
[1 reply] : assuming public variables in both classes, here are some suggestions a... (by gunnerfunner)
Using extraction operator on a stream for a function argument
I am working on the beginning of some code and I am having problems with this snippet: while (ge...
[6 replies] Last: indeed, that's what friends are for after all. thanks edit: OP: cire i... (by gunnerfunner)
appinit_dlls dont work
i was trying to load a dll written in c++ and didnt work for me.
[2 replies] Last: Repeat the injection all the time when i open a process.. so if i open... (by omarespanol)
Boolean Functions
#include <iostream> using namespace std; int main() { int n, count; float sum, avg; ...
[1 reply] : bool keepgoing() { return pressedno(); //whatever press no means t... (by jonnin)
by MojoJo
Flagging specific number in postfix calculator
Hi Everyone, I'm having a problem with displaying an error for my postfix calculator. If an input w...
[3 replies] Last: I am not sure how your program works. One way would be to read thow wh... (by Thomas1965)
Why can't we specialize a template class inside another namespace?
Hi, I know the question seems silly - it's actually what I would expect. Yet, I would appreciate ...
[4 replies] Last: Got it! Thanks!! (by JUAN DENT)
Windows : Can you make a program run on CPU 8 ?
This is a personal project, please provide an example if you can. Thx
[2 replies] Last: Thx (by SamuelAdams)
i need to replace victim.erase( -> victim.deleteNode( #include <algorithm> #include <iomanip...
[1 reply] : your question is very vague with a lot of info in the header files not... (by gunnerfunner)
Process a data set of random numeric information
It should start by creating an array that can hold a maximum of 100 double or float elements. There ...
[2 replies] Last: And I discovered the double-post only after spending time doing this .... (by gunnerfunner)
What category of project to choose on Code::Block
Hi all! I found a Chessboard program (1700 lines)that compiles well with my Code::Block. I choosed t...
[3 replies] Last: Here's what the author wrote in response to a question asking how to u... (by helios)
Parallel arrays
I need help desperately with an array! please someone, help?
[15 replies] Last: Ooooooh I see now! (by whilenotequaltofalse)
problem with mortgage calculater
#include <cmath> #include<iostream> #include<iomanip> using namespace std; void inputFunction();...
[3 replies] Last: @winonav You can get the values from the user in main(), then pass th... (by whitenite1)
by Yany
Sleep function problem in a Thread, unexpected behavior.
Please, some expert who has faced this issue: I'm creating own Timer handler with special feature...
[3 replies] Last: In this thread we discuss various methods to get high frequency timing... (by helios)
Passing input file into function
I have posted the code I am working on below. Right now everything is working except for the printin...
[1 reply] : use the variable Tsize to manage the loop: #include <iostream> #incl... (by gunnerfunner)
by saleha
source code
Hi I need Lamport bakery white black algorithm code in C/C++. Please sere if any one have source ...
[3 replies] Last:'s_bakery_algorithm#Code_Examples (by mbozzi)
Matrix printing
Hi all, so i'm trying to use a function to print 2 matrices, i expect it to print in the 2x2 form bu...
[2 replies] Last: oh, thank you. (by apollocreed)
by SCB3
Why this is happening?
So I'm trying to implement reading in a file of a board game. Now, I know the error is something to...
[6 replies] Last: (by cire)
by blippy
Using _Decimal64 from g++
I am mixing and matching C/C++ in a single project. Whilst gcc recognises _Decimal64 as a built-in t...
[4 replies] Last: Nice, I didn't catch that these were OS specific defines, sorry. (by jonnin)
Integer Array that can be sorted in different kinds
Our professor haven't taught us about these parts yet the only clue we got is that it uses array. A...
[1 reply] : c++ has built in sorting, but usually these problems are to re-invent ... (by jonnin)
Pages: 123456... 33
  Archived months: [jan2017]

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