General C++ Programming - May 2019 (Page 2)

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...
[5 replies] Last: Your terminal control code wasn't working for me under cygwin so I cut... (by dhayden)
Streaming data. NTFS v ext4
 
I have data files that I use to stream data into vectors for analysis. When using Windows(NTFS), it ...
[16 replies] Last: Maybe so, but the elephant in the room is the god-awful slowness of pa... (by salem c)
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...
[8 replies] Last: I've tried changing the row and column sizes from constants to variab... (by Furry Guy)
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 ...
[14 replies] Last: In theory, better compile times. (by helios)
A project you might find useful
 
I recently open sourced a very large project of mine, called CIDLib, on GitHub. I just wanted to mak...
[11 replies] Last: No worries. Good thing I gave your last reply a third read before I hi... (by helios)
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)
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)
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)
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)
May 2019 Pages: 1234... 7
  Archived months: [apr2019] [jun2019]

This is an archived page. To post a new message, go to the current page.