General C++ Programming (Page 46)

How can shorten this code
 
How can shorten this code I need to save 8739 blocks. as shorten ofstream and classes. as is a repea...
[1 reply] : You can remove line 1 and 3 and save 300k bytes in the exe. (by SamuelAdams)
Program takes longer in Parallel
 
hi, i made my mandlebrot parallel with OpenMP i used QT here's .pro to make it work: #------------...
[10 replies] Last: im sorry if am annoying you by not understanding :( i actually think ... (by kam hagh)
C++11 Lambda capture ref vs value
 
I am fairly certain I know the answer to this question, but I seem to have 2 different compilers giv...
[6 replies] Last: Thank you (by digitalsynapses)
Leap Motion C++ Virtual Piano
 
Hi, I currently have a project that requires me to build a leap motion Virtual Piano. I am using...
[1 reply] : Are you going to use some sort of GUI to visualize the keyboard and wh... (by giblit)
by Emkor
Help stuck
 
Can't seem to get this program working, any ideas? #include <iostream> #include <iomanip> using na...
[3 replies] Last: Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
cout and char*
 
i am really confused and do not understand why it was working yesterday and i woke up today and it i...
[3 replies] Last: no this is the code i am running and it is generating that output. ... (by Disch)
Hello Guyz I need help
 
It is pretty simple I have device called Logitech g27 the same driver for it is from here http://...
[2 replies] Last: well the driver for g27 it has API's ,. but to be sure i have no idea ... (by yahya1asfari)
Program with fixed notation help
 
This is the program I am working on: Write a program that will input the amount of chairs sold for ...
[1 reply] : have you tried: http://www.cplusplus.com/reference/iomanip/setprecisio... (by mutexe)
World Class
 
I have been making a game but my mind has drawn a blank and i can't remember what to put in the worl...
[13 replies] Last: Thank you for all your responses. I have figured out what i am going t... (by Cronnoc)
by sebz92
store text to array until text is over.
 
hello all, this is part of my code. what i wanna know is if there is a way to fill this array unti...
[1 reply] : Yes! What you are describing is called a vector. Just #include <vecto... (by Yay295)
by sbas10
Reading from file one int a time..
 
I want to read this file to read each temperature and have it tell me if one of the substances liste...
[2 replies] Last: Makes plenty of sense. Thank You! (by sbas10)
by sebz92
input value get index
 
hello all, im trying to get the index of a value by inputting the value: for example if i have ...
[3 replies] Last: If you refuse to use existing algorithms and insist on reinventing the... (by LB)
Converting a 4 digit number into a BCD number?
 
Hi I'm having trouble converting a 4 digit number into a BCD number, in the program I did below I wa...
[2 replies] Last: I'm sorry that I did not use the code tags when in my previous post it... (by puffybear123)
Insert one program into another
 
Hello, Newbie C++ programer with an question. I have a dice roller program that I want to use in...
[2 replies] Last: When writing code, make it as modular, independant and as reusable as ... (by Krisando)
IntelliSense: expession must have integral or unscoped enum type
 
So far I have the following code: // Purpose: To write a program that displays the number of milli...
[16 replies] Last: With some help from another source I was able to solve it with the fol... (by ProgrammingIsNotMyThing)
Exit two-threaded program with user input?
 
Hello, // clang++ -g -std=c++11 main.cpp -pthread #include <iostream> #include <thread> #include...
[2 replies] Last: -- thank you JLBorges! (by vincegata)
streams (1,2)
 
Can someone explain to me what exactly is the difference between buffers and streams?
[20 replies] Last: They have nothing in common. A stream is an object that abstracts away... (by helios)
Regarding reading .txt into struct array
 
My code is outlined below. I am trying to read in heart two 2 heart three 3 etc to an array of card...
[3 replies] Last: Are you running the program from the same directory where the executab... (by dhayden)
Code::Blocks doesn't recognize C++11 !!!
 
I'm trying to use c++11 std::thread, including <thread> header, but it says this: error: 'thread' ...
[2 replies] Last: The default codeblocks compiler doesn't support std::thread (by Yanson)
by DevTK
Virtual & Template method
 
I have the same implementation for 2 methods, they both insert argument to a text file. void...
[5 replies] Last: One can do the other way too: class base { virtual void write_impl(... (by keskiverto)
Pages: 1... 4445464748... 54
  Archived months: [aug2014]

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