General C++ Programming (Page 16)

Help reading the file
 
This is the text I have: Princeton University NJ Princeton 41820 8014 0.0740 0.98 0.97 Harvard Univ...
[3 replies] Last: After you read "temp", you still have the \n remaining in the buffer. ... (by doug4)
Mandlebrot set zoomer...
 
Text mode nostalgia. What should I do with it next? #define LOOPS 1000 #define ESC 27 #d...
[1 reply] : @zaphraud Very nice program. I couldn't run it the way it was, as pr... (by whitenite1)
NIM Game
 
sorry I removed the code because the instructor of the class I am in wanted me too.
[4 replies] Last: OMG!!!!!!!!! it was one semicolon!!!!!!!!! Thank you very much! I r... (by daveconn66)
Comparing lists of strings
 
I need to count the number of strings that occur in the first list, but not the second list. Thi...
[6 replies] Last: From file. Disallowing (or assuming no) repeats. #include <iostream> ... (by lastchance)
by noel3
Crazy IDE Pointer programs problem
 
When I create a program with pointers...then close and create a second program...then compile and ru...
[5 replies] Last: A good and free Windows IDE is Visual Studio 2017 Community. A good c... (by FurryGuy)
boost date-time conversion error
 
date dt{2018, 5, 14}; string str = to_simple_string(dt); cout << str << endl; error : undefin...
[1 reply] : "Undefined reference" means that when the linker went looking for the ... (by Repeater)
How can I take an input from a 2D array into a vector
 
Hi, I have an an array of integers lets say: 1 2 3 4 5 6 I want to take the input from this...
[3 replies] Last: Exactly the same way you have the 1D row vector. Three numbers is thre... (by keskiverto)
How can I find if a type is an instantiation of a certain template, like say set?
 
Hi, Now that we have constexpr if, can we find if a type is the specialization of a certain templ...
[2 replies] Last: Thanks!! Juan (by JUAN DENT)
Can anyone explain this BUG and how to fix it?!
 
So,if you were to run the program, after entering the file name again after the file had been create...
[5 replies] Last: Sorry, yeah that was comment... just ignore that haha (by ggrules)
returning the stored value of greatest difference from ite neighbors
 
im having trouble implementing this http://www.cplusplus.com/reference/numeric/adjacent_difference/ ...
[7 replies] Last: You are getting closer, but is a sum (s) same as minimum (m)? v p n ... (by keskiverto)
My float variable gets erased when defined in constructor.
 
What the program does: My programs prints out a/multiple rectangle(s)/squar(s) defined by the user's...
[2 replies] Last: @lastchance Thank you so much! (by laquishabonquiquithe3rd)
How to set a date format in c++?
 
Hi all, I am doing a school c++ project. I don't know how to solve one requirement which is the da...
[2 replies] Last: Thanks. (by KenrickG)
Trouble connecting main.cpp, BoxClass.h, BoxClass.cpp
 
I created a basic consol program that creates a box of the users desired height and width. I wanted ...
[3 replies] Last: @ne555 @whitenite1 Thank you both so much that fixed everything. (by laquishabonquiquithe3rd)
RIFFA linux driver c coding question
 
Regarding https://github.com/KastnerRG/riffa/issues/30#issuecomment-373602633 , how do I rewrite thi...
[1 reply] : For data loopback as in https://github.com/KastnerRG/riffa/blob/master... (by user123random)
by Mk87
binary digit matrix implementation by using 2D vector
 
How I can implement the following matrix by using just 2D vector (not matrix,...) in C++? 0 0 0 1...
[5 replies] Last: Pehaps this isn't my business, but that wasn't aggressive. Try readin... (by mbozzi)
Need to get my program to print multiple names
 
I can get the program to print out one name but I need it to be able to print out duplicates. Any he...
[7 replies] Last: Now are you going to answer my question? Which question? How to pri... (by keskiverto)
ARRAY PRACTICE
 
I am supposed to write a program that uses two parallel arrays, one of which is an array that contai...
[3 replies] Last: Or if you don't want to swap around a bunch of strings, you can have a... (by zaphraud)
Standard Library set_difference
 
Hello, I am having difficulty with std::set_difference; struct data { int element1; int ele...
[7 replies] Last: Hello, I wish to find the set_difference between two vector containe... (by James65)
Template Problems
 
I got 3 classes: Game Loader RawModel in the loader class, I've got a function declaration: ...
[5 replies] Last: yes, sir you are right, it should be i/3. I was stupid, i guess, becau... (by hassanAman)
I need some help on an array lab.
 
I have a c++ program lab that needs to be done. It is to prompt the user for the month they were bor...
[5 replies] Last: 1. do loops suck. use while alone. Use whichever loop makes sense. I... (by dhayden)
Pages: 1... 1415161718... 27
  Archived months: [feb2018]

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