General C++ Programming (Page 9)

member initialization
 
I would appreciate any help I have a point class as such: class Point { int x, y; pu...
[2 replies] Last: Thank you for your reply. I think I'm supposed to use this inside the ... (by Leo78963)
by ne555
Visual Studio 2017: How to use traditional multi-translation-unit builds for debug mode
 
I thought the whole point of unity build was to reduce build time. perhaps //in main.cpp #ifndef D...
[3 replies] Last: Spam links added in an edit. (by Furry Guy)
C++ PROBLEM (HELP)
 
Ok So i have a university project . i must write a program that allows the user to select if he want...
[3 replies] Last: The code doesn't even compile with the right compiler settings like -W... (by Thomas Huxhorn)
Create a static class function that takes an infinite number of arguments
 
Hello! Using a template I've created a function that accepts an arbitary number of arguments. It's c...
[5 replies] Last: I am also a beginner . So, i just want to know about the given topic w... (by archanasinghr)
Question about 2D Array
 
Hey guys, I have a question. Please reference this YouTube video. Skip to 2:46 minute. https://y...
[2 replies] Last: In an expression like cout << "Hello\n" , the type of the string lite... (by mbozzi)
Pointers and Arrays.
 
cpp.sh/6eukj link above is my code i'm not sure what i did wrong but the personality.out i...
[4 replies] Last: You need to add "9" as the first line of personality.txt. When I do t... (by dhayden)
How to add Error Checking
 
I've written a program to create two random arrays, splice the first up to a point the user chooses,...
[11 replies] Last: std::cin >> firstArraySize; // Assings inputed size to first array. ... (by Repeater)
Reverse 2d array (HELP!)
 
Hello again guys, i have this following assignment: Marks obtained by all students are stored in a ...
[3 replies] Last: Dice que necessitas una lista de las sumas de todos los grados para ca... (by Duthomhas)
callback function without brackets??
 
Hi Guys, I met a little problem when I looking into the library of ESP32 library: https://github.com...
[4 replies] Last: You are misreading it. (Sorry.) I think you are using the term “bra... (by Duthomhas)
C++ OOP - Brainstorming what class and what we need
 
Hey guys, I am practicing and learning. I tried to make a simple game which was Rock, Paper, Scissor...
[10 replies] Last: careful with the operator. R beats S but R<S in that enum. you can... (by jonnin)
My word count adds other files word count together...
 
Hi, I was wondering if anyone could help me fix my word count accumulating other files word counts a...
[6 replies] Last: Wouldn't you think it would be a bunch simpler to copy the entire fil... (by dhayden)
SQLite::Exception: no such table: login
 
Hi friends, I'm creating what is, effectively for the sake of this explanation, a server that rec...
[2 replies] Last: Hi Jonnin, Thanks for your reply. I don't think I'm being clear enoug... (by Aaron Vienneau)
How is one of these operator overloads different than the other?
 
n my textbook, Data Structures and Algorithm Analysis in C++ (Fourth Edition) by Mark Allen Weiss, i...
[3 replies] Last: but I couldn't have both functions be identical in terms of what para... (by doug4)
by vroll
Storing Strings Read From a File
 
I am trying to store an nfl schedule from a .txt file, but I am having trouble in how to sift throug...
[1 reply] : Have you given an attempt to figure out out? We learn better when we t... (by Ganado)
Alphabet Chain in Binary Tree
 
Hi, I'm working on a project : Given an alphabet binary tree, find the length of the longest vowel...
[7 replies] Last: Thanks for the description. Oddly, this is the second question in 2 d... (by dhayden)
Why does increasing denominator allow you to find out whether a function is an element of some big-Oh set?
 
In my textbook, Data Structures and Algorithm Analysis in C++ (Fourth Edition) by Mark Allen Weiss, ...
[12 replies] Last: Thank you both! @doug4- I finally get it now. So if we can establish ... (by vaderboi)
Calling a void function with user input (morse code)
 
I am confused on how to call the void function & make it prompt the user to input a string/output re...
[1 reply] : void functions just do not return a value. that is all void means. so... (by jonnin)
Getting inputs into two different arrays
 
Hey Everyone, I'm linking my existing code below but im having a hard time figuring out how to put t...
[2 replies] Last: This is what I ended up with and it works perfectly, Thank you for hel... (by NateTheGr8)
Calculating sorting time for arrays
 
Hello, I am trying to fix the current program to calculate how long it takes to sort each of the fiv...
[18 replies] Last: pointers are strongly typed. you cannot send a float* to an int* the... (by jonnin)
Morse Code Project
 
If we are not allowed to use arrays in this project, I am confused on how to make "a morse code get/...
[3 replies] Last: what do yo u know, what can you use? Surely if you know arrays but ca... (by jonnin)
Pages: 1... 7891011... 14
  Archived months: [sep2019]

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