• 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]
Taking inputs from csv file
Hello I have a csv file which consists of numbers separated by commas, like the following: 0.6667,0...
[1 reply] : #include <iostream> #include <iomanip> #include <fstream> #include <s... (by lastchance)
by ir8o8
Hi all, I need some help on what is going on with my code. So, I have a file, called data, and it co...
[1 reply] : #include <iostream> #include <string> #include <fstream> #include <ss... (by JLBorges)
by typi8
Help With Functions
Hello I am a newbie at c++ and I am struggling on this. I have a text file as so below: Janet 90 ...
[5 replies] Last: This makes multiple passes through the file, one for each colour: #i... (by JLBorges)
by asder
Create a clever Specker game player
I am creating a game called Specker in c++. The rules are simple: > There are p players (0 to p - 1...
[4 replies] Last: Ok so i contacted the prof. and he agreed to give the players count (by asder)
Help with this :)
If you get a ticket for speeding, your fine is based on how much your speed exceeded the speed limit...
[1 reply] : what is the question ? (by SamuelAdams)
Metaprogram stops reporting at the first error
Hi, I copied Erwin Unruh's first metaprogram to print primes using Visual Studio 2017 latest vers...
[1 reply] : Hi Juan, I have that same book :+) I compiled with clang++ and turne... (by TheIdeasMan)
by jbohol
C++ Compilers
Hello Masters, Greetings! I'm reading the comparison between c++ and c#, and i found that c++ ...
[8 replies] Last: writing to ram is a relic from a very long time ago. Nothing lets you... (by jonnin)
hey guys I had a thread that uses the same code not so long ago,this code is a strong example of wha...
[5 replies] Last: and apart from writing containers,when would you need to allocate memo... (by adam2016)
FEM sparse matrix assembly c++
HI I have C++ FEM code wrote long time ago with its own functions. Now, i am trying to upgrade this...
[no replies]
Please help with this. How do I write the code for outputting the mg caffeine column?
Write a program to prompt the user and input the number of cups of coffee consumed. Given that each ...
[3 replies] Last: I've figured it out :) /* Write a program to prompt the user and inp... (by tracyvo105)
translate a phrase to Pig Latin
I've already completed translating a word into pig latin, but now I need suggestions as to how I sho...
[1 reply] : Please edit your post and put [co de] and [/c ode] around your c... (by Ganado)
by Jmac21
Use Fork() to create Child process that use separate threads
Hey guys, How can I create a fork()/Child thread process for each computation in my program: Averag...
[2 replies] Last: the main function, the child process uses separate threads to compute ... (by Jmac21)
std::vector push_back
Hey guys I am quite confused as to why this is happening so I looked up the arguments for std:...
[8 replies] Last: val is passed by reference for the same reason that the argument to pu... (by Peter87)
by Mk87
create matrix with 2D vector and transpose it
How I can implement the following matrix by 2D vector in C++? 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 ...
[6 replies] Last: Just change your checkMatrix routine to matrix checkMatrix(int N) { ... (by lastchance)
the Kernel
Hey guys I'm not sure if this belongs in the Windows or Linux sub forums but since I'm talking about...
[4 replies] Last: you need to directly access the instuction pointer to point to the ke... (by dhayden)
Fast file reading in C++
Hello,in my country there is a pretty popular file reading algorithm in the olympiad, that im going ...
[11 replies] Last: fread() itself is buffered so you're actually making two copies. You m... (by dhayden)
C++ Graphics for easy understanding
Okay, so in my programming adventure, changing different languages, trying some new game makers or s...
[5 replies] Last: Is that Visual Studio? If so are you reading this? https://www.sfml-de... (by Ganado)
by DiaZie
C2679 error
template<class T> class XVar { private: T m_X; public: XVar(T x) { m_X = x; } T GetXV...
[6 replies] Last: m_ppXPoints[m_Pos++][m_Pos++] = *pInput; Wouldn't post-incrementing... (by doug4)
by stav
why not make everything unique_ptr ?
Hi, i just learned about smart pointers and i was wondering: Is it bad to make all members of a clas...
[7 replies] Last: Good for them. I like to avoid the situation of needing to pass around... (by Repeater)
Pages: 123... 19
  Archived months: [jan2018]