General C++ Programming - March 2018 (Page 8)

Need Help with finding the min value in a 2d array
 
Sorry. The issue is when we enter the values into the array, the highest usually comes out right. Bu...
[4 replies] Last: Indeed. This is what you do in printPrices() to visit every element: ... (by keskiverto)
by typi8
help with functions and void?
 
I am a newbie at this and I am confused on how to go on to solve these two questions. Any help and w...
[1 reply] : Start with something simpler. What is the output here? int six_(int i... (by keskiverto)
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 ...
[6 replies] Last: Thank you to everyone who helped! I appreciate it very much. (by typi8)
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)
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)
std::allocator
 
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)
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)
void pointers
 
Hey guys believe it or not I am now only coming to grips with function pointers,anyway I wrote a s...
[4 replies] Last: thanks Ganado that makes sense :) (by adam2016)
question on r value reference
 
Hi, Could someone explain? For the following statement, why void foo(X const &) can be called on...
[4 replies] Last: thanks (by chrisben)
by Mk87
An alternative way for if-else in the following piece of code
 
I have the following piece of code which is a part of my project if the number of syndromes will inc...
[10 replies] Last: Call map<int,int> M = setMap( parityBits ); to set up a mapping f... (by lastchance)
Function of void print and its capacity in this code.
 
Hello, i was given a project to do on c++, i was supposed to write a cpp code that would reverse a *...
[6 replies] Last: Alright, let me get this straight, i haven been given this project to ... (by azizguliyev)
March 2018 Pages: 1... 678910... 15
  Archived months: [feb2018] [apr2018]

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