
please wait
by vampirenelf
Pseudo-code to C for While loop
|
Hello everyone, I have some problems with getting this program to work. I can't get the loop right and it won't run as i wanted it to. I can write the basic s... |
Sep 25, 2014 at 1:30pm
[1 reply] : This is a good start: http://www.cplusplus.com/doc/tutorial/control/ ... (by closed account 48T7M4Gy)
|
by abriella1
STACK-C
|
Write a program that imlements the ADT stack. 1.Push the elements -3.0,-8.0,6.0 2.Implement a POP operation that deletes the first two elements 3.Ensure... |
Sep 25, 2014 at 11:10am
[7 replies] Last: I'm not sure what you want. If you want to understand it, then the fo... (by kbw)
|
by ichabodgrant
Triangle task (hints please)
|
Write your question here. Hi. I now face difficulties in a programming problem. I am required to write the codes of a programme which can display a triangle... |
Sep 25, 2014 at 10:33am
[5 replies] Last: try using a for loop? Maybe include a cout << '*' How would you do **... (by closed account 48T7M4Gy)
|
Strings and paramaters |
I need the following program to run the functions I wrote.I struggle to remember how to let the printPay() get the variable fullname(struggle with strings). ... |
Sep 25, 2014 at 9:46am
[1 reply] : [code firstline=63]main(){ std::string fullname; float totalhours; ... (by MiiNiPaa)
|
by jenny129
Returning address of local variable Warning
|
Hi everyone~ Just wondering if someone can help me get rid of this compiler warning? On the "return a" line I've got warning C4172: returning address of loca... |
Sep 25, 2014 at 9:16am
[1 reply] : int a = { 0 }; This is a local variable. That meant, it will be des... (by MiiNiPaa)
|
by novellof
When to use typdef and define
|
Can someone list the thought process one goes through when deciding on wether to use typdef and define...pro's and con's of each A snippet of code for examples... |
Sep 25, 2014 at 8:27am
[2 replies] Last: You should always prefer typedef or using over #define . There ar... (by TwilightSpectre)
|
by abdalimran
Is there any good tutorial about handling BigInteger in C++?
|
I am a beginner. When I was solving problem I realized that I don't know the concept of Bigint and how to do operations with Bigint. Is there any good tutorial... |
Sep 25, 2014 at 7:44am
[3 replies] Last: Using it is easy, it's a drop in replacement for int. Implementing it... (by kbw)
|
by Archimonday
Help with Objects, and Assignment
|
I reached the end of another chapter in a book I've been learning out of, and it gives me a step by step drill to test out. I thought I was doing good until the... |
Sep 25, 2014 at 6:23am
[14 replies] Last: Yes, I believe it should be part of the std::cout and you should just ... (by greenfox)
|
by ssandha
second largest factor
|
need to find the second largest factor but my function keeps returning 1 all the time. #include <iostream> using namespace std; int second_largest_f... |
Sep 25, 2014 at 6:11am
[4 replies] Last: i got it now man. anyways thanks for the help; appreciate it. this wa... (by ssandha)
|
by DeathLeap
location of (i, j, k) that has the maximum difference.
|
Hello cplusplus! I am trying to write a function that finds the maximum difference in a 3D array. So, I have a 3D array, I want to go through all of its eleme... |
Sep 25, 2014 at 5:48am
[5 replies] Last: Edit: nvm, your idea worked. Thank you very much! (by DeathLeap)
|
by Observer
Student and Crash
|
Hello! I receive the crash when the main returns: #include <string.h> #include <iostream> class Student { public: Student() : defaultSize( 30 ... |
Sep 25, 2014 at 4:52am
[2 replies] Last: I thought that will be called "normal constructor" for ivan2 and then ... (by Observer)
|
by o13ey1216
color code
|
how to make statement..have different color... #include<iostream> using namespace std; main() { system("color 8a"); cout<<"hellow world"; cout<<"he... |
Sep 25, 2014 at 4:42am
[no replies]
|
by Raigeki
program code help
|
What I'm most confused by is where I put the "while" and "int" statements. I think I have them in the wrong places. Secondly, I don't know how to make the pro... |
Sep 25, 2014 at 2:54am
[3 replies] Last: considering you used that method at the bottom of your code? I know i... (by hyperfine)
|
by clock
Requesting Help with Functions C++
|
Hello, thank you for taking a moment to review my first thread. It is nice to meet you all. I apologize if this is below any of you, but I would like to receive... |
Sep 25, 2014 at 12:16am
[2 replies] Last: Very helpful. Thank you for this. (by clock)
|
by bgmnk
Build Problem
|
Whenever I attempt to compile my program, an error message comes up: ||=== Build: Debug in filename (compiler: GNU GCC Compiler) ===| ld.exe||cannot open o... |
Sep 25, 2014 at 12:07am
[8 replies] Last: jlb, all I added to it was the do while statements. I had the rest alr... (by bgmnk)
|
by ssandha
arrays
|
how to shift negative integers first in array. i can do it with nested loop but the condition is that i cant use it. i have no idea how to do it without neste... |
Sep 25, 2014 at 12:05am
[no replies]
|
by d1ff1cul1010
if you could help me with this function!!
|
Hey, pretty new here, would post more but don't have a huge amount to offer at the moment but I'm cracking the books so I can be a bigger part of the coding com... |
Sep 24, 2014 at 11:52pm
[1 reply] : You could have an averageArray function(arrayName, arraySize) that fir... (by wildblue)
|
by Jhub
Using loops and rand function
|
Hello I am trying to create a program that will ask the user for how many rolls of a dice he would like to roll and then ask at what value he wants to hold at. ... |
Sep 24, 2014 at 11:36pm
[8 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using std::... (by Jhub)
|
by ftothemizzo
Not getting a value returned
|
I need this program to output the value of the bmr function. once i input height wieght and age nothing is happening. thanks in advance! #include <iostre... |
Sep 24, 2014 at 11:29pm
[1 reply] : You need to tell the program to output the value. One way would be lik... (by admkrk)
|
by Mroonie
Please help me simplify my code!
|
Hi. I am doing this assignment for my computer science class, and my professor said my answer was "too complicated", so I need to find a simpler solution to it.... |
Sep 24, 2014 at 11:16pm
[2 replies] Last: That's only there because I ran it through http://www.compileonline.co... (by Mroonie)
|