
please wait
by Drake5006
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. But the lowest comes out as zero. Updated #includ... |
Mar 17, 2018 at 10:02pm
[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 walkthroughs in explaining on how to do this will be nice. ... |
Mar 17, 2018 at 8:14pm
[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 23 Red Bill 80 25 Blue Greg 91 10 Red Kyle 50 30 Yellow ... |
Mar 17, 2018 at 6:56pm
[6 replies] Last: Thank you to everyone who helped! I appreciate it very much. (by typi8)
|
by tracyvo105
Help with this :)
|
If you get a ticket for speeding, your fine is based on how much your speed exceeded the speed limit by. Suppose the fine is based on the following schedule: ... |
Mar 17, 2018 at 1:35am
[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++ will let you do almost anything provided the syntax is right... |
Mar 17, 2018 at 12:12am
[8 replies] Last: writing to ram is a relic from a very long time ago. Nothing lets you... (by jonnin)
|
by adam2016
std::allocator
|
hey guys I had a thread that uses the same code not so long ago,this code is a strong example of what I'm trying to ask so I'll re-use it. I have done some r... |
Mar 16, 2018 at 10:02pm
[5 replies] Last: and apart from writing containers,when would you need to allocate memo... (by adam2016)
|
by aaelmeli
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 code to be faster. i am trying to convert the existing line... |
Mar 16, 2018 at 10:00pm
[no replies]
|
by tracyvo105
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 cup contains 130 mg of caffeine, compute and output the amou... |
Mar 16, 2018 at 9:40pm
[3 replies] Last: I've figured it out :) /* Write a program to prompt the user and inp... (by tracyvo105)
|
by buhlakey
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 should go about converting the code to translate a whole senten... |
Mar 16, 2018 at 9:28pm
[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: Average, median, and standard deviation of the grade population, d... |
Mar 16, 2018 at 9:12pm
[2 replies] Last: the main function, the child process uses separate threads to compute ... (by Jmac21)
|
by adam2016
std::vector push_back
|
Hey guys I am quite confused as to why this is happening so I looked up the arguments for std::vector.push_back() and it accepts a const reference of any ... |
Mar 16, 2018 at 7:17pm
[8 replies] Last: val is passed by reference for the same reason that the argument to pu... (by Peter87)
|
by adam2016
the Kernel
|
Hey guys I'm not sure if this belongs in the Windows or Linux sub forums but since I'm talking about both OS's and many more I guess general is the best place f... |
Mar 16, 2018 at 3:13pm
[4 replies] Last: you need to directly access the instuction pointer to point to the ke... (by dhayden)
|
by MattC98
Fast file reading in C++
|
Hello,in my country there is a pretty popular file reading algorithm in the olympiad, that im going to present here,but I dont really understand it,i would be r... |
Mar 16, 2018 at 2:56pm
[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 so, i'm stuck on this: "Why when i try making something graph... |
Mar 16, 2018 at 2:35pm
[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 GetXValue() { return m_X; } }; template<class T> class ... |
Mar 16, 2018 at 2:26pm
[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 class (or anywhere for that matter) unique_ptr ? as long as the ... |
Mar 16, 2018 at 12:25pm
[7 replies] Last: Good for them. I like to avoid the situation of needing to pass around... (by Repeater)
|
by adam2016
void pointers
|
Hey guys believe it or not I am now only coming to grips with function pointers,anyway I wrote a simple program that uses the sqort function that obviously so... |
Mar 16, 2018 at 11:45am
[4 replies] Last: thanks Ganado that makes sense :) (by adam2016)
|
by chrisben
question on r value reference
|
Hi, Could someone explain? For the following statement, why void foo(X const &) can be called on both r and l value, but void foo(X&) cannot. I faintly reme... |
Mar 15, 2018 at 9:50pm
[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 increase in each part of my project and with increasing the num... |
Mar 15, 2018 at 8:31pm
[10 replies] Last: Call map<int,int> M = setMap( parityBits ); to set up a mapping f... (by lastchance)
|
by azizguliyev
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 *char element(word) leaving the last letter as it is, say, "1... |
Mar 15, 2018 at 7:10pm
[6 replies] Last: Alright, let me get this straight, i haven been given this project to ... (by azizguliyev)
|