General C++ Programming - November 2021

initializing const char array
 
Hi all - This isn't purely a C++ problem, but it could arise in a C++ program. I'm working on ...
[8 replies] Last: You're really not providing enough information to get any meaningful a... (by jlb)
Server Certificate Invalid or not present error
 
Using Borland C++, I need to create a small app that gets some info from a PHP file on a remote site...
[no replies]
Difficulty renewing my Visual C++ compiler
 
I have had use of the Visual C++ compiler for very many years. Today for the first time after some y...
[7 replies] Last: Thanks. Revising my program for the 22 compiler has proved to be a lon... (by Anthony Appleyard)
invitation to hunt_the_wumpus refactoring
 
I have re-coded the console based game Hunt_the_wumpus, just for fun. There I had several considerat...
[13 replies] Last: Attempted this myself, obviously it's heavily based on @nuderobmonkey'... (by mbozzi)
sorting and display char array
 
I had compile my code, it shows no error, but I cant see the correct output. I think there is someth...
[8 replies] Last: Thank you, everyone! I had solved it! (by saltyyyyy)
Compiler incompatibility
 
I wrote a Visual C++ program which in an .h file had the lines char*charnames ={"00", "lbutton", "r...
[6 replies] Last: The compiler settings are set to use wide-char as default (hence the W... (by seeplus)
How to find the places of a certain character in a text?
 
I want to locate 0 characters in a text. For example our text is "03250150", I want it to type 0, 4 ...
[1 reply] : Use a for loop; if str == '0', print i. Tutorial on control structur... (by Ganado)
C++ vector programming help
 
Thanks for the help everyone, got a 100
[15 replies] Last: Please do NOT delete your question once you've gotten an answer. It m... (by MikeyBoy)
by volang
Compute a signature with private key in Server Key Exchange
 
On https://tls.ulfheim.net/ there is an example showing how to compute a signature in the section of...
[4 replies] Last: text files are a subset of binary files that only allow printable char... (by jonnin)
c++ array problem input and sub menus, assignment is due really soon (1,2,3)
 
I am a beginner of C++ and I still have no idea how to make the output like this especially question...
[41 replies] Last: @kbw Tried to follow your advice but still cant figure out how even wh... (by s021623)
Class pointer weird ass error
 
Entity* entity; C2238 unexpected token(s) preceeding ';' C2413 syntax error : missing ';' before...
[5 replies] Last: Ohh i actually thought of that before but i didn't even try. Thanks (by Nitetesi)
DES with CBC
 
Hi! Does anybody know DES with CBC about? I have some code but it is very big. It Is some part of DE...
[5 replies] Last: Off hand, DES is so insecure that triple DES (running it 3 times) is ... (by mbozzi)
C++ 20 Pointer Declaration
 
GCC Still generating error messages despite the synate is correct for the pointer declaration: #i...
[19 replies] Last: The definitive answer is in the language grammar: https://eel.is/c++dr... (by mbozzi)
Ray sphere intersection
 
I would need to create a ray sphere intersection in C++. Kindly help me with creating a sphere first...
[1 reply] : Sruthi04 (1) I would need to create a ray sphere intersection in C++.... (by jonnin)
pointers
 
I need help with the last part of my code: this is the output I need but im not sure where to start ...
[4 replies] Last: thank you for those links I figured it out now (by ocKiNOsIi)
tax calculation float functions c ++
 
m a beginner programmer and I was to ask a program which calculates income tax based on a salary. Th...
[1 reply] : > create below functions however I have no idea how to create them her... (by ne555)
Ascending Order
 
I have created this program that creates a random array of 20 numbers and then shuffles them. The ne...
[4 replies] Last: Possibly: #include <iostream> #include <algorithm> #include <random... (by seeplus)
by SSyvOO
Fahrenheit To Celsius
 
You are to write a program that converts a Fahrenheit temperature to Celsius. The design of this pro...
[3 replies] Last: Please use code tags when posting code. See http://www.cplusplus.com/a... (by keskiverto)
A grade calculator. Everything works fine EXCEPT it does NOT display all the courses and grades average is off.
 
#include <iostream> #include<iomanip> using namespace std; int numStudents2; int main() { ...
[3 replies] Last: You need 2d arrays to store the subject names/scores for all the stude... (by seeplus)
How else-if and else executing at same time
 
Here is the program Our teacher discussed in Class. #include <stdio.h> #include <unistd.h> #includ...
[3 replies] Last: ok. I suspected as much, but as I said, fork() is a distant memory t... (by jonnin)
November 2021 Pages: 123... 6
  Archived months: [oct2021] [dec2021]

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