General C++ Programming - September 2016 (Page 6)

need help
 
I apologize for for this format I will post my program in a new forum Thanks all for the advice
[2 replies] Last: Upload both exe and cpp files Lets assume that we all (except you) h... (by keskiverto)
Help with reading from socket.
 
Hello. Im doing a simple TCP server using poll. I'm trying to recieve and print messages send from client, but i can not do it properly. I can not manage multip...
[no replies]
Read audio wav samples
 
Hello everyone! What is the easiest and most efficient way to read a wav file in C ++ and have the float samples of the audio track? I'd like to have somethin...
[2 replies] Last: Don't do it yourself; use a library. Here's a decent one: http://sound... (by Duthomhas)
Little help with an object that accepts an array
 
#include <iostream> using namespace std; class Manager1 { Manager1(string M ); void setEmployeeInfo(string ); string getEmployeeInfo() cons...
[2 replies] Last: string a = {"j","j","j","j","j"}; Manager1 Manager(a ); So a ... (by mbozzi)
by bozmin
vectors
 
Can anybody show me how to create a simple vector containing a list of people with their first names, last names, and phone number, with a constructor?? the o...
[3 replies] Last: Is it considered as an array? http://www.cplusplus.com/reference/vec... (by SakurasouBusters)
Horizontal Bar Chart Program Help!
 
Write a program that reads 5 numbers (each between 1 and 25). For each number that’s read, your program should print a line containing that number of adjace...
[1 reply] : Send me a private message. (by SakurasouBusters)
2 .cpp files not correspoding
 
So, I'm trying to make a cmd for a little project. It's really just a fun thing I'm doing. Anyways, I'm trying to call the function run(); in my main.cpp fi...
[6 replies] Last: @SakurasouBusters sorry for the late response, and.... god damnit I'm ... (by Scoot445)
build error
 
this is my header file #ifndef STATS_H // Prevent duplicate definition #define STATS_H #include <iostream> namespace main_stats { class statistici...
[4 replies] Last: Click on my profile page, and click 'Send PM'. (by SakurasouBusters)
Search and Cout
 
Ok, so please before you get anywhere else do note I am very new to c++. Anyways, just for the hell of it I'm trying to make a kind of command line. All I want ...
[17 replies] Last: http://www.cplusplus.com/forum/general/198184/#msg949679 (by SakurasouBusters)
Programming a simple 2D game
 
Hi everyone, How long would it take for someone who has never programmed before to program a simple 2D game (platformer etc...) entirely in C++. 5 years? 1 ...
[3 replies] Last: What I meant is that one needs at least 3 years so that the person can... (by SakurasouBusters)
Having trouble linking curses library with CodeBlocks.
 
I'm not sure why this is giving me so much trouble. I originally worked on a project that linked the curses library, reformatted my computer and I cannot get it...
[2 replies] Last: Actually I tried it straight through a compiler instead of codeblocks ... (by Silversonic)
overloading question
 
Trying to make this overloaded function work -- only successful by adding another return field to 2 in the return statement. from Fraction operator*(Fr...
[2 replies] Last: @OP: In case it's not already clear, in each of those code snippets, y... (by MikeyBoy)
Hint please!!
 
I can't figure out what am I doing wrong with this program in which just by typing row and column user gets the color of chess block. #include <iostream> #i...
[10 replies] Last: @Taha001 One error is you're not getting a new row and column after r... (by whitenite1)
Sleep() function into a for loop
 
Hi everyone, i'm learning to program in C++ and i'm making a program right now, but i found a problem with the Sleep() function using the <windows.h> library. H...
[5 replies] Last: The way I understand it is, Sleep() guarantees a minimum amount of tim... (by doug4)
Write class to bin
 
How do you actually write the whole class object into a binary file? The way I do it is, create seperate local varibles to hold the variables inside the clas...
[18 replies] Last: @twilightSpectre - I take back what I said about lines 16 and 20 being... (by AbstractionAnon)
C Bit Manipulation Help
 
Hey everyone. I'm having trouble with this homework assignment and I would really appreciate some help/hints to get me started. I've basically been given a temp...
[4 replies] Last: https://en.wikipedia.org/wiki/Endianness (by Duthomhas)
Don't understand if (number % 2 == 0)
 
Just started my first programming class, so I'm a complete newbie. I have a question about something in one of my programs. It executes fine, but I was wonderi...
[7 replies] Last: keskiverto, I was trying to input the code correctly, but I couldn't g... (by LullaBelle)
Using Stack to Reverse Name
 
Hey there guys so my C++ class has me creating a program that lets the user enter a character one letter at a time for ex. Enter name: A N ...
[1 reply] : It helps a lot to get out some paper and a pencil and draw what is hap... (by Duthomhas)
Add '\n' to 10th position in char array
 
kay there's a big back story but to cut to the chase, for one part of my program I have to allow the user to type whatever they want (up to 60 characters, I com...
[3 replies] Last: @duroncoles Well, the best way would be, is to NOT let d equal the ne... (by whitenite1)
Rounding to nearest hundred
 
How would i round a number with data type of double to the nearest hundred. the code is for int data types. Is their a way of using this method for doubles....
[2 replies] Last: Don't you hate it when they do that ? (by SamuelAdams)
September 2016 Pages: 1... 45678... 19
  Archived months: [aug2016] [oct2016]

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