General C++ Programming (Page 9)

Encrypting A File Into An Output File
 
I an a beginner, and I need to make a C++ program that will go through the first step of encrypting ...
[3 replies] Last: you can do it in about 10-15 lines... read file stuff <random> -- seed... (by jonnin)
Number of Primes in Range (1,2)
 
Write a program that asks the user for two non-negative integers and then displays a message indicat...
[25 replies] Last: I think gcc is closer to the actual compiler. You can use any of g++, ... (by lastchance)
constructors and assignment operators
 
Could someone check if the constructors and assignment operators are in a right manner? #include ...
[2 replies] Last: X& operator=(X&& other) { cout << "move assignment\n"; data = ot... (by seeplus)
by thmm
Generating make files
 
How would you create a makefile for a project that has only a bunch of .c and .h files? Are there a...
[5 replies] Last: I don't know anybody who likes to set up Makefiles. If you find a too... (by doug4)
Iterative Loops And Small Problems #1-3 (1,2,3)
 
PROBLEM #1 Bob & Patrick’s Seashell Emporium uses mailing labels for shipping boxes. Write a p...
[44 replies] Last: If you look back at the original assignment in the first post, there w... (by doug4)
Simple charade game
 
Hello! I was thinking of making a charades game. Just a simple one wherein when you run the code it ...
[no replies]
by mnm71
How to access function that use another class?
 
I use a class in another class like this : a.hpp Class A { public: void foo(); }; a.c...
[8 replies] Last: @keskiverto thank you my problem resolve with your solution And than... (by mnm71)
Ground symbol (code by Charles Petzold)
 
Hi guys, currently reading code by Charles Petzold, on chapter 5, he mentions words such as co...
[7 replies] Last: When you find a common part of a circuit, you can remove the wires an... (by mbozzi)
by mnm71
How use JSON template in string ?
 
I want to send {state:success,value:i} // i is a float, take values from some function like t...
[2 replies] Last: @helios thank you for replying to my question (by mnm71)
Where to ask C# questions?
 
Hello. I am trying to learn C# and I have some questions. Does anyone know where I can ask these? W...
[6 replies] Last: Thanks for answering. :D (by Alexander123)
Swapping array elements using pointer addressing
 
Hi, I have created a 1d array of 25 elements that I'd like to manipulate using pointers. So far I ha...
[3 replies] Last: I ended up using two constant variables, one to let the for loop know ... (by oceanSpray)
by alexas
random generator in the constructor
 
Hello, I want to use the random generator which initializes every time when constructor is called: ...
[19 replies] Last: To sump up, after learning about more about the topic, it seems that m... (by alexas)
by lambam
Stuck on Office Project
 
A business needs to calculate the bonus points for sales representatives. The bonus points are based...
[7 replies] Last: 1. Don't put semi-colons after your if statement. 2. ((salesamounts >... (by Ganado)
Why const reference string
 
Hi everyone, I just wrote this piece of code to test something, but it didn't go through the GCC-com...
[4 replies] Last: The const reference is special. The compiler is free to generate a tem... (by coder777)
C++ - incrementing integer variable does not work
 
So I'm creating a program that implements several classes representing a school, and its students an...
[1 reply] : Also posted here http://www.cplusplus.com/forum/beginner/273440/ (by seeplus)
How to clear console without system("cls") (1,2)
 
Hello. I have been told that system() is "bad" to use... So, how do I clear the console screen safe...
[26 replies] Last: See my previous post. VT100 code support was introduced into Windows 1... (by seeplus)
How do I modify my code to organize objects and write them to a file.
 
Ok... i'm stuck here... I have a class called Items that creates an object with three attributes (Me...
[5 replies] Last: Simply, the spec for operator<< (and operator>>) requires the stream t... (by seeplus)
C++ keyword definition request (1,2)
 
Hello. I did not know it, but, the C++ book I read was pretty outdated. And I would like to know wha...
[26 replies] Last: Lol I like how I can always guess who reported my reply. @dutch Hahah... (by Alexander123)
by jax16
Print all
 
https://www.cplusplus.com/forum/beginner/273399/
[3 replies] Last: What are you trying to do? Something like this? // Not tested. #in... (by Alexander123)
Context Switch
 
I need help with this code. Complete the code so that the output is: Main1 says Hello Main2 says ...
[8 replies] Last: Thank you. I got it working. (by willie99)
Pages: 1... 789101112
  Archived months: [sep2020]

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