General C++ Programming (Page 2)

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 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: (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)
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...
[2 replies] Last: For code that is supposed to be C++ it sure looks suspiciously like a... (by Furry Guy)
Ascending Order
I have created this program that creates a random array of 20 numbers and then shuffles them. The ne...
[5 replies] Last: If'n we are going to use a C++ random engine and C++ functions why not... (by Furry Guy)
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 (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)
C++ Ide for Helicopter Game
Your choice of IDE is entirely a matter of personal choice, and has no bearing on the outcome of the...
[5 replies] Last: OP is a copy/paste spambot pushing some "interview" website. Original ... (by salem c)
28 1 expected unqualified-id before '{' token May I ask what is wrong? if I remove the ; more e...
[1 reply] : Line 27 should not have a semicolon. Line 32 should be: for (int a... (by AbstractionAnon)
I am getting an exception when I run this code. It built successfully.
I am getting an exception when I run this code. It built successfully. I think the exception is oc...
[3 replies] Last: At 10 posts the following advice shouldn't be something new: PLEASE ... (by Furry Guy)
ld returned 1 exit status .cpp:(.text+0x21): undefined reference to `fill_array(int*, int, int&)'...
[3 replies] Last: thank you so much for the reply! (by beginnerzzzzz)
find cycle in array
if i have an array of 8 integers every element in any index point to the next index like if we have ...
[3 replies] Last: From a starting position, follow the chain until you either come back ... (by seeplus)
Sort an array in pairs????
Hey yall, So for class, I got a new assignment and cannot figure it out for the life of me. The a...
[6 replies] Last: ah, OK. I realised that part, that it was a hack & only usable on a f... (by jonnin)
Pages: 1234... 6
  Archived months: [oct2021]

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