• 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]
How to edit original object through object* temp that points to original object?
 
So if I have an Object called Friend with a member called name. I do Friend* f1; Friend* te...
[2 replies] Last: here is a sample code: http://cpp.sh/5top3 if you scroll all the way t... (by gigabye)
by bfhad
C++ inheritance and UML files// I keep an error saying no matching function for call Passenger:Passenger
 
//Person.h #include "Person.h" #include <iostream> #include <string> using namespace std; Per...
[1 reply] : if you don't understand the error message, then post it verbatim || f... (by ne555)
Accessing template parameter pack
 
Suppose I have this function: template<typename...T> void doSomething() { } and I call it...
[2 replies] Last: "doSomething()" is just a method in which I want to access the Ts that... (by hassanAman)
by ajiten
srand48() : Unable to compile due to scope issues on Windows in Dev-C++.
 
Dev-C++ version 5.5.2 (Windows 7) gives compilation error that occurs in the last line in main(): ...
[14 replies] Last: Sorry, for the last query as could not understand the significance of ... (by ajiten)
how to sort inside a text file?
 
I have a phone book program that takes in contact information, sorts it (using bubble sort in an arr...
[3 replies] Last: I am not sure I understood your description of a problem properly, but... (by lowarago)
Why Mix Columns step is skipped in last round of AES encryption ?
 
Hi, I was reading about AES encryption algorithm and noticed that "Mix Columns" step is skipped i...
[no replies]
Why garbage collector could not be implemented in c++ ?
 
Hi, I just came across a statement that says Garbage collector can not be implemented in c++ ...
[3 replies] Last: C++11 added something related to garbage collection but I've never spe... (by Peter87)
by Dummy
How to embed Pike script into C++
 
Been recently looking into pike because of it's similar syntax to C, and because I have heard you ca...
[1 reply] : What does this tell you? https://www.google.com/search?q=How+to+embed+... (by salem c)
Baseball program question
 
What is an easy way to display the score after each inning? Instead of adding it all up at the end I...
[2 replies] Last: thanks Ganado! Makes sense! (by PistolPete10)
type name not allowed
 
i'm creating a line trace in ue4 and i'm trying to put damage on my line trace but i keep getting th...
[1 reply] : Use f'ing code tags when posting code! If AAI_Character is a type nam... (by dutch)
Is there any way by which a process P2 can access the local variable of another process P1?
 
Suppose there are two processes P1, P2(which is a virus) in linux. Can P2 access a local varable (s...
[2 replies] Last: Linux: http://man7.org/linux/man-pages/man2/process_vm_readv.2.html Wi... (by dutch)
by plexus
Using strings in switch statement
 
Hi, I recently had this idea of how to use strings directly in a switch statement without too muc...
[6 replies] Last: it is not unusual at all to have a constant set of data, and learning ... (by jonnin)
Area & Volume
 
I need help writing a program to find the area and volume of a cube or cone for a given choice of in...
[15 replies] Last: Please in future put these posts in the beginners section. such a task... (by Rascake)
delete from 2d vector and reset position
 
I have a csv file containing data: add, 100, 101, 102, 103, 104, 105, 106 add, 200, 201, 202, 203...
[4 replies] Last: i'm doing this for an assignment. I need a add function and a delete f... (by poopcupine)
C++ exercises
 
Hey, I've been trying to find a good website or E-Book that would give me a good chunk of exercises....
[4 replies] Last: ... no boring exercises but by writing real, challenging programs ..... (by MikeStgt)
how to update value in 2d vector
 
Problem: i iterated through my 2d int vector and wants to update the element in the vector if it is ...
[2 replies] Last: Using find, but keskiverto's is way neater :) #include <iostream> #i... (by salem c)
by PacR
Find char sequence inside char array.
 
Hello i am trying to make a program witch will find a sequence of chars inside char array, but my pr...
[10 replies] Last: you do need to DIY Really? IMO no, not at all. It is for the first t... (by MikeStgt)
Why does AES has exactly 10 rounds for 128 bit key, 12 for 192 and 14 for 256 bit key size
 
I was reading AES algorithm to be used in one of our projects and found that there are exact number ...
[2 replies] Last: Got it Duthomhas, seems to be a statistical result which provides secu... (by kapil2905)
cannot append to vector of vectors from another vector
 
Hi, I have a csv file that I have read into a string vector. I also have another integer vector of v...
[1 reply] : for (int y = 0; y < diskBlocks; y++) { for (int x = 0; x < m... (by ne555)
Pages: 123... 18
  Archived months: [jan2019]