Beginners - May 2020 (Page 10)

Repeating Sequence of 0, 1, 2
 
Hi, I'm currently doing remote learning due to COVID-19, so everything I get teaching-wise from my p...
[2 replies] Last: Thanks! Always forget about the modulus operator. (by dakotad8218)
Calculator in while loop
 
Hello There, im trying to create a calculator in while for an assignment but im stuck on something, ...
[14 replies] Last: i agree with what you said, like everything, i'm trying to improve my ... (by RaiN3772)
Program not working as intended when trying to enter another piece of data
 
I'm trying to get this program done for one of my classes this semester but when I compile and run i...
[1 reply] : after line 29 add... cin.ignore(); (by Manga)
passing arguments to methods
 
Write your question here. class Menu { public: void welcome() { std::cout <<...
[5 replies] Last: #include <iostream> #include <string> class Menu { public: voi... (by Manga)
Error at runtime
 
I'm getting this error when I press a key or even when I press the Up key which I assigned to the ma...
[3 replies] Last: OK, thank for every one, problem solved I was doing some really bad th... (by ronenp88)
Defined type mismatches with an argument
 
Hi, I found a super-basic text ODBC driver (http://www.prowaretech.com/Computer/Windows/Odbc) which ...
[5 replies] Last: SQLWCHAR is not defined by C++. It is probably defined by the third-... (by keskiverto)
Flag Control while loop
 
hello there, im taking c++ course, and the professor asked us for an assignment but im not sure im f...
[5 replies] Last: i guess that is really helpful for a beginner, thanks alot mate (by RaiN3772)
Output boolean expressions - but my code only passes a few test cases and not all
 
I've been working on some hacker rank tutorials for practice, and I feel so stupid for being stuck o...
[2 replies] Last: Yes, the last test is in fact off. Rethink your math. Something to co... (by highwayman)
Dice probability simulator wackyness!
 
I made this code to run *puts pinky to lower lip* ONE MILLION iterations of a opposed dice pool roll...
[11 replies] Last: [quote=Ganado]I wonder if there's any way to put an upper bound on the... (by Duthomhas)
Use of ostringstream inside a function.
 
I am trying to use a function to display (write or log or display) data for debugging my programs. T...
[6 replies] Last: Sorry for the delay¡ keskiverto: --------------------------------- ... (by BlakGerry)
Help in create ball movement
 
Hello guys, i need a help in creating ball movement. like Pong or BreakOut ball if he hits an object...
[5 replies] Last: https://youtu.be/RWyY3n9nTf8 dude... i've been trying to think of a ... (by markyrocks)
Question on template writing
 
Learning the basics of C++ and have attempted to answer the following two questions. 1- *Define a...
[4 replies] Last: Can I not assign a default constructor that takes no parameters with ... (by jlb)
by DJL
checking characters
 
not sure what is wrong with my program. if I enter a password that is to short then I get back the...
[6 replies] Last: @Handy Andy, your solution is more sophisticated and I like it better ... (by thmm)
Expected a statement after "else" condition
 
Hello! Need a small help here! The compiler is asking to give a statement after else statement. What...
[7 replies] Last: Thanks and sorry! The deadline was very near so was in a hurry! Sorry ... (by lost110)
not working as intended
 
The program does nothing when the user inputs "h" "l" and "y" while creating this program these c...
[6 replies] Last: #include <iostream> using namespace std; int main() { cout << ... (by Manga)
else if issue
 
logical error in my else if statement, not sure what's causing it thanks for the assist #inclu...
[16 replies] Last: This is what you are trying to do... #include <iostream> using std... (by Manga)
professional programmers
 
... This is the beginner’s section. You’ll probably have more luck in the jobs section -> htt...
[5 replies] Last: Oh I’m sorry you just sound alike. .... Wait did I just say that... (by highwayman)
‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits<char>]’ is protected
 
error: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::c...
[11 replies] Last: You initialize data members using an initializer list: https://en.cpp... (by MikeyBoy)
Erasing element from vector of pointers messes up pointers
 
Hello! Before anything else, I am aware of smart pointers. I am simply trying to understand the u...
[3 replies] Last: You are right, the erase should not affect the _item. A pointer to el... (by keskiverto)
by Dalski
Visual Studio 19 - Test Individual Projects
 
I'm following C++ tutorials whilst making notes in Visual Studio 2019. Handy to have my archive for ...
[4 replies] Last: Thanks for your rapid response. Trying to upload a pic but doesn't see... (by Dalski)
May 2020 Pages: 1... 89101112... 17
  Archived months: [apr2020] [jun2020]

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