Beginners (Page 69)

by krad23
Where to extract functions for cleanup
I have a number of functions in my cpp file and I would like to do a bit of cleanup, move some funct...
[3 replies] Last: Templates go in header files. Templates are a special case because te... (by AbstractionAnon)
How would I fix these errors?
When I try to run it, it will go so far as the distance then stop. But it will not tell me a legitim...
[15 replies] Last: How would I fix the uninitialized variables? Don't use the variabl... (by AbstractionAnon)
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 ...
[1 reply] : This is a good start: ... (by kemort)
Write a program that imlements the ADT stack. 1.Push the elements -3.0,-8.0,6.0 2.Implement a ...
[7 replies] Last: I'm not sure what you want. If you want to understand it, then the fo... (by kbw)
Triangle task (hints please)
Write your question here. Hi. I now face difficulties in a programming problem. I am required to...
[5 replies] Last: try using a for loop? Maybe include a cout << '*' How would you do **... (by kemort)
Strings and paramaters
I need the following program to run the functions I wrote.I struggle to remember how to let the prin...
[1 reply] : [code firstline=63]main(){ std::string fullname; float totalhours; ... (by MiiNiPaa)
Returning address of local variable Warning
Hi everyone~ Just wondering if someone can help me get rid of this compiler warning? On the "retu...
[1 reply] : int a = { 0 }; This is a local variable. That meant, it will be des... (by MiiNiPaa)
When to use typdef and define
Can someone list the thought process one goes through when deciding on wether to use typdef and defi...
[2 replies] Last: You should always prefer typedef or using over #define . There ar... (by NT3)
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 h...
[3 replies] Last: Using it is easy, it's a drop in replacement for int. Implementing it... (by kbw)
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 ...
[14 replies] Last: Yes, I believe it should be part of the std::cout and you should just ... (by JRHolmes)
second largest factor
need to find the second largest factor but my function keeps returning 1 all the time. #incl...
[4 replies] Last: i got it now man. anyways thanks for the help; appreciate it. this wa... (by ssandha)
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. ...
[5 replies] Last: Edit: nvm, your idea worked. Thank you very much! (by DeathLeap)
Student and Crash
Hello! I receive the crash when the main returns: #include <string.h> #include <iostream> clas...
[2 replies] Last: I thought that will be called "normal constructor" for ivan2 and then ... (by Observer)
color code
how to make statement..have different color... #include<iostream> using namespace std; main...
[no replies]
program code help
What I'm most confused by is where I put the "while" and "int" statements. I think I have them in th...
[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 apolog...
[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 filen...
[8 replies] Last: jlb, all I added to it was the do while statements. I had the rest alr... (by bgmnk)
how to shift negative integers first in array. i can do it with nested loop but the condition is th...
[no replies]
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 cr...
[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 l...
[8 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using std::... (by Jhub)
Pages: 1... 6768697071... 108
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.