• 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]
by King25
I need help about my code please :)
 
Hello I'm working on Connect 4 project i have done everything so far but somehow i couldn't make the...
[2 replies] Last: I start a new reply because of limits, and because of the last point I... (by Niccolo)
Anyone can help me to change it to pseudocode??
 
#include <iostream> #include <cmath> using namespace std; int main() { double x; int n; ...
[10 replies] Last: line 12 in that code how to change to pseucode or even flowchart will... (by MikeStgt)
Making a matrice with a headline.
 
Hey! I've been struggling to get this done, I can make a normal matrice work, but I can't figure o...
[3 replies] Last: you should do it like this. class matrix { int rows, cols; vec... (by jonnin)
by Dee5
finding largest prime number in a file (1,2)
 
hello guys,Anyone having an idea of creating a programm that is able to find largest prime number i...
[31 replies] Last: I know. But I don't have any good way to know whether a given piece o... (by jonnin)
Urgent Help me!!!!
 
#include <iostream> using namespace std; int main (int argc, char *argv ) { int x,n; cout<<"Pleas...
[13 replies] Last: #include <iostream> #include <cmath> using namespace std; int main()... (by lastchance)
by frek
Use of import instead of #include
 
Hello all, Is it now possible to use import instead of #include in C++ programs? If yes, how ...
[12 replies] Last: You can check and install the feature using Visual Studio Installler, ... (by Furry Guy)
How To Solve throw std::bad_alloc{};?
 
Hello Professionals, Good day. I would like to ask if there's any way I can get rid of throw std::...
[10 replies] Last: I also tried to print the max.size of my std vectors, and this is wha... (by coder777)
by jpao
Read/Write .MP4 Files WITHOUT Library
 
Hi everyone, I need to make a personal library that can read, manipulate, and write .MP4 files. A...
[15 replies] Last: Thanks for taking the time to put forward all your suggestions guys! (by jpao)
Streaming data. NTFS v ext4
 
I have data files that I use to stream data into vectors for analysis. When using Windows(NTFS), it ...
[15 replies] Last: @salem c The problem isn't moving data off disk, as shown by the raw... (by Niccolo)
Competitive Programming Problem
 
The problem and my attempted code solution is as follows: Farming is competitive business -- particu...
[6 replies] Last: Thanks soo much! (by afatperson)
Problem!!! Help!!
 
Hi guys! I have a problem that i hope you give me an advice to solve it. I have writing this code an...
[4 replies] Last: Show a complete example that reproduces your issue, else you're just w... (by Ganado)
Trying to finish my unscrambling project
 
Hi, I am doing the project ideas that I found on the forum for people wanting to get better at C++ (...
[8 replies] Last: :D Hahaha yeah I just learned it today *facepalm*. I went on to the n... (by Niccolo)
by kitfox
Does C++ have anything like Java's inner classes?
 
I sometimes come across a situation where I want to create a class manages a list of records. The r...
[5 replies] Last: for what its worth, in my experience, as soon as you block something f... (by jonnin)
by Manga
tons of errors
 
vs2019 gives me lots of errors. Here is my code... #include <iostream> #include <vector> using na...
[8 replies] Last: Thanks Ganado... adding std:: solved my problem. And yes I will add a... (by Manga)
How to pass pointer by reference in C?
 
I have the following code in C (not C++): int main(){ double *ptr=0; double x ={1,...
[10 replies] Last: you are correct, C does not have references. The two languages are f... (by jonnin)
I created a class that acts just like a set but uses OpenMP to run in parallel to make everything faster, your thoughts? (1,2)
 
I created a class that does just about everything a set does in C++, such as insertion, deletion, an...
[24 replies] Last: 1. srandom() and random() are not standard C functions. They're UNIX f... (by helios)
Math Game c++ , division issue.
 
Hello Got a small problem here , I spent 2 days writing this with debugging sessions , alone, her...
[6 replies] Last: Hey guys thank you for your support , I did learn new stuff and yes I ... (by LonlyNerds)
How do call a function in a seperate class?
 
I made a function in, let's say class X like so. In the X.h I typed: void func(); In X.cpp void...
[2 replies] Last: How do I call a function from one class into another? You need to pas... (by coder777)
by frek
Enum class "put to" operator overloading
 
Hi all, Is the class Color defined below a scoped enum class? Is it due to the word class in its ...
[5 replies] Last: > What are the differences between these two, please? They are summar... (by JLBorges)
Pages: 123... 15
  Archived months: [mar2019]