• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Is Java easy to learn after C++?
Hello. Does anyone know if Java (or, whatever the game 'Minecraft' is written in) is easy to learn ...
[1 reply] : In many ways, you can think of Java as simplified C++. It's not exact... (by kitfox)
by its007
Filling 3-d array with random number with conditions
Hello all, First off, I would like to thank you for reading this. I am grateful for any help/hints ...
[5 replies] Last: Thank you jonnin and coder777! I appreciate the help much very much. ... (by its007)
Manipulating an array (creating destructor, shifting elements forward/back and printing the array)
Need help finishing up the yet to be defined functions in this chunk of code. #include <iostream> ...
[1 reply] : moveTowardEnd( index ) { /* s = size WHILE s > index : ... (by nuderobmonkey)
Reading hex offsets/data from ifstream file?
Hello. Can anyone tell me if it is possible to read a hex offset such as 0x00000001 (0x1??) Like in...
[2 replies] Last: Oh, I meant a way to get a file offset using c++? (by Alexander123)
unqualified-id before 'while'; unqualified-id at end of input; and expected '}' at end of input
C:\Users\bue\Documents\ATOM FILES\stock_tracking1_with_simpleMenu_appended_TRY4.cpp:1110:2: error: e...
[15 replies] Last: hello seeplus thank you for your kind reply. I have sent Thomas1965 th... (by ABUE)
Header file release: credits.hpp
Hello. I made this code and randomly put it here because I'm bored. Here's the code: /* Code by :...
[2 replies] Last: Wow, I did not know the code was THAT bad, next time I want to know if... (by Alexander123)
User input after *argv[] input
Hello. I would like to know how to get a file name input into int main(int argc, char *argv ) ...
[8 replies] Last: Thank you. I'll try to remember all this stuff... I should have learn... (by Alexander123)
Certain input value causing crash
Dear Users, The code blow keeps craching for input 15. I thought it was some Windows 7 issue. Then ...
[5 replies] Last: Change to int* p = new int ; p = 2, p = m; works ok on my win... (by seeplus)
C++ code for reading text from file? (help)
Hello. I was wondering if anyone could tell me how to do this. Read the text after the inputted l...
[4 replies] Last: just do getlines and discard the ones you do not want to skip a line o... (by jonnin)
Does destructor of a polymorphic base class that is protected need to be virtual?
If I have a base class for an inheritance tree, and the destructor is declared protected, do I still...
[3 replies] Last: thanks!! (by JUANDENT)
Program: Patriot Parties (1,2)
Program: Patriot Parties Billing System The Patriot Parties Events and Catering Service has asked ...
[23 replies] Last: no just reposted it in a cleaner way... (by naveenmmenon)
How do I use a boolean vector with if-else?
Let me explain exactly what I mean. I've got a recursive function that works with roughly the follo...
[1 reply] : .at is notably slower than notation because it checks i to be valid.... (by jonnin)
#ifndef include guard help!
Hello. I am new to using #ifndef, #ifdef, #endif and such. I put the following at the top of my head...
[12 replies] Last: OK. I've looked at the definition of inline https://en.cppreference.co... (by seeplus)
by jerryd
wofstream problem
cplusplus forum, Windows 7, MS VS 2017, C++ I have a wstring that contains a unicode charact...
[7 replies] Last: cplusplus forum, I was able to find a way to create a windows file na... (by jerryd)
What does ^= mean and how do I use it?
I've seen this operator in c++ codes and I don't know what it means. Thanks for answers in...
[4 replies] Last: Ah, thanks for explaining this. I'll try using this in my code. (by Alexander123)
Encryption code not working
Hello. Can anyone here tell me why this code won't work (you can run it to see what I mean) #incl...
[2 replies] Last: I figured out what was wrong, I should have done: data = encrypt(dat... (by Alexander123)
How to combine hash values using std::hash
I have a type with 2 int data members. I want to calculate a GOOD hash value and since std::hash exi...
[12 replies] Last: perfect hashing is usually reserved for a static set of known data suc... (by jonnin)
my compiler says expected primary expression before '<<'
#include <string> #include <fstream> using namespace std; struct TempScale { double fahrenh...
[2 replies] Last: You're also attempting to use the name of a class as if it were an obj... (by Ganado)
by AmirRN
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...
[1 reply] : is not why you need a const reference, but why do you need a non-const... (by ne555)
Pages: 123... 7
  Archived months: [jul2020]