Beginners - October 2014 (Page 45)

Question about 'strcmp'
I'm just wondering if I did the strcmp string correctly, if I didn't then what is the right way? Cause when I manually calculate my math, it's not adding up to ...
Oct 13, 2014 at 1:50am
[1 reply] : You have to allocate space for the string. char colour , frame ; a... (by liuyang)
Having trouble figuring this out
I'm supposed to write a program that reads a series of numbers from the user and output when was the first & last times that the number 12 was entered. I can ...
Oct 13, 2014 at 1:44am
[2 replies] Last: I figured it out. Thanks for the help! (by Mr Raptor)
old version of "programming: principles and practice using c++"
I started learning c++ recently, and I just got the book __, but im pretty sure that it is an old version. anyway I usually have been putting these at the top ...
Oct 13, 2014 at 1:33am
[no replies]
Decomposition an integer into powers of three
I am trying to write an algorithm that decompose an integer that the user inputs into powers of three. example: 1 = 1 2 = 3 – 1 3 = 3 4 = 3 + 1 5 = ...
Oct 13, 2014 at 1:32am
[1 reply] : Anyone would offer some insight? (by DeathLeap)
by cGuru
Let The User Specify Array Size
I am not sure why I am receiving the error message: error C2466: cannot allocate an array of constant size 0 When I run the code: int s; cout<<"E...
Oct 13, 2014 at 1:30am
[7 replies] Last: Thanks Ganado, got it to work. (by cGuru)
Need help..
I'm to write a code that will: 1) List the schools and the tuition of the schools in Cincinnati with tuition below 20000. Also list the number of schools that m...
Oct 13, 2014 at 1:18am
[1 reply] : This is in C++ (by medinal)
Some help for school homework.
One of the homework questions I have is this. 4. Write a function named Exchange that swaps the values of the two double parameters passed and returns the va...
Oct 13, 2014 at 12:52am
[11 replies] Last: Excellent. Add cout << value1 << endl; and cout << value2 << endl; in ... (by closed account 48T7M4Gy)
by Myna
Please help improve this C++ program
I need to improve my program in a following ways; ● When the user enters wrong input for radius, length, width, base, or height, the program will continue t...
Oct 13, 2014 at 12:32am
[no replies]
by Ttran
GPA calculation(need help)
I am new here and having trouble with my program at the moment. What I got so far is not doing the calculation. what i need the program to do is for the use to ...
Oct 13, 2014 at 12:07am
[4 replies] Last: WOW... i made it harder then it needed too. figured it out. thanks guy... (by Ttran)
Help with Homework
Hello all, I am stuck with my homework and not sure what to do. We are to build a program that asks the user for a class title and then a grade for that cla...
Oct 12, 2014 at 11:12pm
[3 replies] Last: So the math still shows an enormous number and I can't figure out why.... (by youtellatale)
Problem controlling user input with if statements and while loops
Hello all, been reading here for a while, first actual post, I'm a little nervous. Here goes. I am trying to write a function, using a two dimensional array...
Oct 12, 2014 at 10:54pm
[4 replies] Last: I'm thinking the check could go in line 72, but this is problematic be... (by VanTate)
by aSzG
Cash Register Program
Hello, I am struggling on this part of my program. It says: You should have a function, let’s call it MakeSale(), that accepts no arguments and returns the to...
Oct 12, 2014 at 10:52pm
[7 replies] Last: In a sense yeah. But you need the loop to keep track of all tax and c... (by crimsonzero2)
(int)& return action
So here is a return line from some function. return ( THEINT)& createGaussianFilter(type, *((Size*)ksize), sigma1, sigma2, borderType); } I under...
Oct 12, 2014 at 10:34pm
[1 reply] : I am going to say createGaussianFilter creates some heap allocated v... (by mobotus)
Can't understand what is wrong
I have got a task to create a program which would take two whole numbers up to 100 digits each and print out their difference in full digits without shortening....
Oct 12, 2014 at 10:28pm
[2 replies] Last: http://www.cplusplus.com/forum/lounge/32041/ (by mobotus)
Vector value comparing
I am writing a game where the player has to guess a random number between 1 - 100. It now tells if the inserted number is higher or lower than the correct rando...
Oct 12, 2014 at 10:10pm
[1 reply] : The way I would approach this is on the first guess I would state that... (by crimsonzero2)
Understanding Looping
Hello I'm new to C++. This is my second time writing a program. I'm supposed to write this code where if i input an even number, a loop based triangle shows u...
Oct 12, 2014 at 9:52pm
[4 replies] Last: Think of the outer loop being the row you are editing. As you get int... (by crimsonzero2)
Simple if statement
I am a real beginner with C++ and I am trying to make an if statement to work. My problem is that the variable age gets the value of 50 if at cin >> age a numbe...
Oct 12, 2014 at 9:03pm
[10 replies] Last: cout << "text" << endl; or cout << "text" << "\n"; wou... (by closed account 1CfG1hU5)
Need help sorting String values (People's Names) from an Input File (Already created Text file) in ascending order (A - Z)
I'm working an optional section in my textbook, and have no idea how to do it. The textbook doesn't really give me much info on how to do this, and I'm complete...
Oct 12, 2014 at 8:42pm
[4 replies] Last: I'm such an idiot....The question is literally only asking me for the ... (by SRichardson09)
by plp384
How do I output a 2D array from a function?
I've declared a double matrix that has several rows and several columns. I am able to input values accordingly. When I call the function, it returns only ...
Oct 12, 2014 at 8:41pm
[6 replies] Last: If I place "return value;" outside the second for loop, IDE tells me t... (by plp384)
multiplication table, in .txt output?
Dear Friends, Would you please help me why the txt output is not in table shape? But the compiler screen show is in table shape? #include <iostrea...
Oct 12, 2014 at 8:05pm
[1 reply] : What fond do you use in your txt viewer? Make sure it is monospace one... (by MiiNiPaa)
October 2014 Pages: 1... 4344454647... 70
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.