General C++ Programming (Page 15)

Help with test function and output
 
So whenever I have the test function in my program it won't output. And then when the input is...
[1 reply] : Perhaps your function test is firing those assert s and the program... (by Repeater)
by Raj12
Need help for my template class example
 
/*In the following code I made 'myArray' as class template. So how can I handle the friend function ...
[2 replies] Last: Thankyou very much Cubbi, The second link is very much useful for me. (by Raj12)
HELP
 
have gotten this far, but somehow i keep getting an invalid error , please help. i am supposed to di...
[3 replies] Last: Thank you (by girl101)
Bank Teller Program
 
I Have to Make a Code for School about A Bank Teller Program and it is not working everytime that I ...
[1 reply] : if (n = 4) will always be true. All cin statements will be executed ... (by Nwb)
by Nwb
Why is _getch() reading a whitespace character?
 
Notice the following: char foo; while (true) { foo = _getch(); cout << foo; } ...
[13 replies] Last: @Nwb Have you considered using PDCurses/NCurses? It's what I use for t... (by sergix)
by DellXT
Help needed. Converter
 
Hello. I need to create converter from CP437 encoding to UTF-8. Firstly, program reads file in one b...
[1 reply] : wchar_t convert(int d) { wchar_t c = static_cast<wchar_t>(d); ret... (by Repeater)
Help me in optimizin this code
 
#include <iostream> using namespace std; int main() { int t; cin>>t; while(t--){ int flag=0;...
[1 reply] : Duplicate thread; http://www.cplusplus.com/forum/beginner/245384/ (by Repeater)
by Nwb
Is it possible to flush input stream without '\n'?
 
I have been searching for like the past half an hour.. am I just being stupid? But I really couldn't...
[2 replies] Last: fflush(stdin) is undefined behaviour. https://faq.cprogramming.com/cgi... (by Thomas1965)
funcction
 
Write a function to with an input file and output file as arguments to edit the input file and repla...
[8 replies] Last: Sorry I misunderstood. (by Thomas1965)
by jbap
convert back from days to date (C++)?
 
I have a C++ code that turns the date back to day (considering leap years). I get a date from the us...
[2 replies] Last: the problem is you so truly put it is I do change that number; the num... (by jbap)
Vector of strings to bitset
 
vector<string> alphabet; alphabet.push_back("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); vector<bits...
[1 reply] : A vector of strings that you push one string into has a size of 1. I t... (by tpb)
Need help with dynamic array of objects with user defined functions.
 
Suppose how had a text file that looks like this, Lemon 1 Apple 2 Orange 3 How would you create ...
[14 replies] Last: [quote=Repeater]Was assembly used when the concept being taught was "h... (by CodeMonkey)
sales receipt help
 
#include <iostream> #include <iomanip> using namespace std; int numb; int word=1+0; int cost; ...
[1 reply] : Please use coding tags (http://www.cplusplus.com/articles/jEywvCM9/), ... (by Nwb)
I need to use a loop to calculate average rather than the Array.Average() method
 
I need to use a loop to calculate average rather than the Array.Average() method and I'm very new wi...
[3 replies] Last: The code doesn't even compile. The name 'iceCounter' does not exist i... (by Thomas1965)
I need help
 
------Input Enter in the number of sales items Enter in the name of the sales item Enter in t...
[1 reply] : Welcome. If you have a specific question, we'd love to help, but we ar... (by Ganado)
Need help on loops
 
Please help me on having the following requirements If the user uses an incorrect format, an erro...
[4 replies] Last: > Also, for the changeColor it is a function that my teacher provided ... (by ne555)
Simple C++ 2D game engine with Drag and drop
 
Anybody know a simple yet popular 2D C++ game engine with a drag-and-drop feature? I'd use Cocos ...
[1 reply] : Perhaps this? -> https://godotengine.org/ (by toad)
The output is not right
 
Hello, I am working on a small program for the school. I have done everything, but the output is no...
[4 replies] Last: int main(){ const int n = 15; std::string name ; double hourly_wag... (by ne555)
assigning values from text files.
 
Hello, I need to have a project where the console looks like this. (https://gyazo.com/5bce349994b0d7...
[2 replies] Last: Oh my. Thanks a lot for all of this. I will give this a try tonight. I... (by noshkren)
Comparing values from array
 
Hello everyone, Let's say I have an array with these values: int foo = { 1, 2, 3, 4, 5 }; I ...
[4 replies] Last: You did miss the point of the shuffle: int v { 1, 2, 3, 4, 5 }; ... (by keskiverto)
Pages: 1... 13141516
  Archived months: [oct2018]

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