[try Beta version]
Not logged in

Beginners - July 2019 (Page 2)

How to organize these code?
 
Hi guys, I am planning use boost or Qt library. Not both in one compilation but both in one reposit...
Jul 27, 2019 at 7:34pm
[8 replies] Last: [quote=Niccolo]Anyone notice that @levithanh425 hasn't participated in... (by Duthomhas)
Word Break
 
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each ...
Jul 27, 2019 at 7:32pm
[10 replies] Last: dhayden + 1 Memoization is important in this kind of problem. Afte... (by Duthomhas)
by lll
How I put in a 2D array data from a file?
 
Greetings. I want to put the data from a file of 10 rows with 5 data each row in an 2D array of the ...
Jul 27, 2019 at 5:44pm
[8 replies] Last: A “segmentation fault” is the OS’s way of informing you that you... (by Duthomhas)
case switch
 
I'm working on an assignment and I was wondering if you can call functions in case switches? Maybe a...
Jul 27, 2019 at 5:27pm
[16 replies] Last: I think you are overthinking this. Yes, post your instructions and we... (by Duthomhas)
{} after initialized variable
 
Write your question here. new to learning and want to understand what is the {} for after billTot...
Jul 27, 2019 at 5:24pm
[4 replies] Last: Admittedly, one of C’s (and especially C++’s) weaknesses is the co... (by Duthomhas)
by dkm04
Reading a config file into 2d array
 
I have a external config.txt file containing the following information. [0, 0]-41 [0, 1]-93 ...
Jul 27, 2019 at 4:23pm
[2 replies] Last: @dutch thank you very much, you save my day! I have been trying to sea... (by dkm04)
C++ Embedded systems learning
 
Hello all, Going to try looking at using Modern C++ with embedded systems and wondered if anyone ...
Jul 27, 2019 at 3:14pm
[5 replies] Last: Thank you gentlemen, RJ, I will go to that site and check it out. My... (by Xanadu4ever)
Displaying Unicode characters on Windows, Mac and Linux?
 
If I use setlocale (see below) in the main function, it works alright taking and storing the user in...
Jul 27, 2019 at 11:27am
[5 replies] Last: When I instead use setlocale(LC_ALL, "utf-8") some characters are st... (by jsmithplus)
How to use Scroll Area in Qt to print a QString array
 
Hi everyone, I am trying to understand how to use "Scroll Area" in "Containers" of Qt when design...
Jul 27, 2019 at 5:19am
[1 reply] : QScrollArea is a "widget", not a "container". I suppose it's kind of a... (by dutch)
String ordering is working, but also not.
 
Hi, I'm working on sorting a string of digits 1 - 5 until it equals 12345, one swap at a time, then...
Jul 27, 2019 at 12:48am
[13 replies] Last: ohhhhhhhhh. Thank you. ** edit ** I touched up my code to let it ru... (by jjordan33)
by libi
Splitting words from string into vector
 
Was just trying to do a simple challenge problem and can't figure out why this doesn't work?? Splitt...
Jul 26, 2019 at 10:12pm
[2 replies] Last: @dutch ohhh yes you are absolutely right. Thank you. (by libi)
How to handle the 'C2678 binary '<' no operator found' error"
 
Hi Everyone, I'm trying to figure out a way to solve the C2678 error in my code. I'm using a map,...
Jul 26, 2019 at 1:46pm
[2 replies] Last: I found out, that I should either define the operator< or overload i... (by Ganado)
Object Class in C++
 
I need help on how to run code with (#include "Rectangle.h") in Dev-C++ IDE. Every time I try to run...
Jul 26, 2019 at 10:17am
[7 replies] Last: 1) Do you know what directory your Rectangle.h file is currently in? ... (by MikeyBoy)
Using namespace std (1,2)
 
We all know how to use it, but how does one stop using it? using namespace std; int main()...
Jul 26, 2019 at 10:15am
[24 replies] Last: I prefer, over namespace, but sometimes std, and definitely typedef. ... (by Shibitto)
by HEAden
Why is the name of the files affecting the structs in C++?
 
Using the below code: //h.cpp #include "main.h" #include "api/core.hpp" extern pros::Motor fr...
Jul 26, 2019 at 9:13am
[17 replies] Last: Here is the solution: Motor_Group& leftDrive() { static Motor_Gro... (by HEAden)
Trouble with lexicographical sorting in doubly-linked-list
 
I'm currently working my way through Programming, Principles and Practice Using C++. I'm in chapter ...
Jul 25, 2019 at 6:06pm
[4 replies] Last: @Niccolo, I think I just made the mistake of not really thinking it th... (by grumblesnake)
Best value in array
 
quick question, how do i get the best score, for example, after inputting 5 scores of 20, 40, 60, 80...
Jul 25, 2019 at 8:19am
[12 replies] Last: Isn't working That is not a sufficient description of a problem. In... (by keskiverto)
Actual real FLTK problem now. (1,2,3)
 
After my recent exploits... with getting FLTK (v 1.1.10) installed successfully... I think I've actu...
Jul 25, 2019 at 3:46am
[43 replies] Last: Niccolo, You are a great help man. A real mentor after the type Stro... (by Xanadu4ever)
C++ Using output file help
 
Okay, so I am asked to output something like this: The 10 random numbers are: 44 61 98 45 45 1...
Jul 24, 2019 at 11:31pm
[14 replies] Last: So it runs now, is this the right way to do this with an array? #in... (by scooter28)
Number Array Class get highest function
 
Hello, I'm attempting to brush up on my C++ and am having issues with this program challenge. Everyt...
Jul 24, 2019 at 11:28pm
[4 replies] Last: Ah! I see what you're saying now. Thanks so much for clarifying that f... (by newbcoding)
July 2019 Pages: 1234... 11
  Archived months: [jun2019] [aug2019]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.