• 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]
Turmeric Forskolin
Turmeric Forskolin The real secret of natural weight loss is to eat the right kinds of foods and t...
[no replies]
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...
[9 replies] Last: int main() { string needle = "hello"; string haystack = "hella... (by jonnin)
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)
C++ exercises
Hey, I've been trying to find a good website or E-Book that would give me a good chunk of exercises....
[2 replies] Last: Have you no own Ideas? At myself, I learned the most stuff not from bo... (by nuderobmonkey)
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)
How to know if a memory address is valid for current process or not ? (1,2)
Hi, This is an interview question where in I was given the following scenario : int main() { i...
[21 replies] Last: > I think we've pretty well determined that there is no standard way t... (by JLBorges)
by Flamee
Recursive function to get a string to int
So i'm trying to recursively create a function that takes a string such as "1234" and return it as a...
[3 replies] Last: You must have changed something for your posted code returns: "20" =... (by keskiverto)
Correct use of class objects (for loops)
Hi, I have one main loop and a sub-loop (if statement within the loop) that tracks N = 1e7 objec...
[1 reply] : Option 3 will of course use a lot more memory than the other two becau... (by Peter87)
hay points
#include <iostream> #include <string> #include <cstdio> #include <vector> using namespace std; int...
[4 replies] Last: while its unclear what he is trying to do, this can't be right. while... (by jonnin)
Using while loop
Can someone help me to make a program that will output all the common factors of two numbers that th...
[2 replies] Last: https://en.cppreference.com/w/cpp/numeric/gcd use the while loop to dr... (by jonnin)
by medosz
Can I have some help please?
I am trying to write a program but it is not working. This is the exercise that I should write. I am...
[1 reply] : > Invoice(std::string partNumber, std::string partDescription, int p... (by salem c)
C++ library with a lot of data structures
Looking for performance efficient library(/ies) specifically right now i am looking for a library...
[8 replies] Last: > I also found this "fixed capacity queue" Fixed capacity queue a la... (by JLBorges)
by gamma
How to use getline() correct
Following code causes me some problems and I really don't know why: #include<iostream> #include<...
[4 replies] Last: Sorry. I thought you meant that a semicolon is not interpreted by the ... (by gamma)
Filling an 8x8 class template array with UNIQUE random numbers from -50 to 50 .
I'm on a mini game project for my first c++ class and there's this thing i've been stuck on for like...
[13 replies] Last: [quote=FurryGuy]I've mentioned the shortcomings of the C library PRNG ... (by Duthomhas)
Stuck on this for a while now (code comes to a point where not showing output)
Hello, I've been working on this mini game project , and there's this thing I've been stuck on for a...
[4 replies] Last: visual has a debugger built in, but it may be a sledgehammer for a fly... (by jonnin)
Need help
i need to make this program be able to accept input on whether you wanna enter Fahrenheit, kelvin, o...
[1 reply] : [quote=rickbagent]Link to pastebin: https://pastebin.com/39pCrdi9 Th... (by chicofeo)
Help with Functions
It keeps telling me im using local unintialized variables in main. When I thought I assigned them a ...
[3 replies] Last: Samhm313, Please, create a new thread with your issue. Thanks ... (by chicofeo)
change list while iterating trough it
hello everybody i'm trying to make changes to a std::list of ints while iterating trough it.i simpl...
[2 replies] Last: geez, i can't believe it. just added else i++ after line 15. thank... (by Stauricus)
Accessing multidimensional array elements
Hi, I have a simple question (might need some math for it, but whatever) about accessing elements of...
[3 replies] Last: thank you so much for the quick reply :) That solved it :) (by hassanAman)
Pages: 123... 18
  Archived months: [jan2019]