General C++ Programming - December 2015 (Page 10)

by Oponn
Altering an array in a class
 
Hey everyone! For some reason I am having trouble altering the values of an array in a class. I wrot...
[no replies]
getline function
 
this is my code so far #include <iostream> #include <string> #include <vector> using namespace std;...
[3 replies] Last: Here! Try this! string holdLetters; // Initially = to "" char v; ... (by keanedawg)
by Gyiove
fread & fopen with multithreading
 
Hello everyone! One thread is only writing the file and other one is only reading that writen fil...
[1 reply] : The readers are not guaranteed to get uncorrupted data while the write... (by JayhawkZombie)
Why am I getting huge integers as the output for my code?
 
So I'm supposed to do the following: bigger, a, and b are parallel arrays. function's job is to set...
[1 reply] : If a < bignuma and b < bignumb then bigger won't get set to anythin... (by dhayden)
need a little assist with small bump in the code!
 
I am trying to set up a statement that will let me show that the user has run out of attempts for th...
[3 replies] Last: Change the while loop to a for loop. It will make the code clearer. A... (by dhayden)
How do games manage this?
 
First off I'm going to state that I am a noob at c++. Anyways I was wondering how games manage to ha...
[1 reply] : They run different threads of execution. It's like running multiple pr... (by dhayden)
by moGo
Square formula.
 
Greetings, i am here in the search of help, i hope i find some. So my problem is that i need to make...
[1 reply] : It looks like there are two parts to this question. The first is a fai... (by Chervil)
by V07
Searching for a file in the computer[closed]
 
Hi everyone, I have a program which generates a string for the file entered. (The...
[5 replies] Last: Hi everyone, First of all thank you for your replies.I hope... (by V07)
How to create application/game with online capabilities?
 
I don't even know where to get started. There's got to be a term for this concept. Networking? What ...
[1 reply] : http://gafferongames.com/networking-for-game-programmers/ Note that h... (by Moschops)
by mzulf
sequence for arduino
 
int Relay1=2; // actuator 1 on int Relay2=1; // actuator 1 off int Relay3=3; // actuator 2 on ...
[7 replies] Last: The comment in the code states: // put your main code here, to run re... (by Chervil)
by AcarX
Server design patterns
 
I'm working on an emulator project and I was wondering if someone could give me few tips on design p...
[no replies]
using of static cast and dynamic cast
 
can someone explain to me how to use this?
[4 replies] Last: why u keep ask me google? Because you're basically asking us to re-... (by MikeyBoy)
by PacR
How to allocate space for 3D plane?
 
Hello, do i have to allocate space for all pixels i want to use ?
[1 reply] : I think you should read this first. http://www.cplusplus.com/forum/beg... (by Thomas1965)
Reading 2 arrays and output from big to small
 
// bigger, a, and b are parallel arrays. // function's job is to set each element of big to larger ...
[1 reply] : for each position pos in [ 0, els ) set bigger <- larger_of( a ... (by JLBorges)
by AcarX
Inserting byte array using operators
 
I was wondering if something like this is possible using class operators: ByteClass bc; bc += {0...
[1 reply] : #include <algorithm> #include <initializer_list> #include <iostream> ... (by cire)
change mixture of upper and lowecase
 
i'm supposed to compare the input of any mixture of upper and lowercase characters to a txt file. as...
[1 reply] : Read the file into a string (or a vector of strings) and convert the s... (by kbw)
by leel00
problem reading from a binary file
 
I am trying to write students to a binary file then read from the file and fill the mystudentVector....
[1 reply] : This is just part of my code I suspect there are a number of errors,... (by Chervil)
Undefined behaviour?
 
If I run this code in clang and input two character strings which contain a number followed by a gen...
[7 replies] Last: This has to do with the defect in the standard where the set of charac... (by Cubbi)
Need help with simple IO of a text file
 
Hello all, I have written this code from a tutorial video and I can't get it to compile. ...
[6 replies] Last: That made it work. Thanks! (by closed account 9yq5oG1T)
constant keyword question
 
I was recently reading about manipulating strings, and it was highly recommended to use the constant...
[1 reply] : > use the constant keyword with c-style strings Use the constant key... (by JLBorges)
December 2015 Pages: 1... 89101112... 22
  Archived months: [nov2015] [jan2016]

This is an archived page. To post a new message, go to the current page.