Beginners - February 2016 (Page 25)

Having Trouble With the Switch Command
 
I'm only 9 chapters into the dummies guide to C++ and I am completely new to the programming world. I'm learning on my own and I'm seeking help understanding wh...
[7 replies] Last: Well that makes sense. Thank you very much. I will have to review the ... (by DarkxJester)
How/Which Loop To use?
 
So I have a problem with looping. Not sure which one to use for the assignment I got. I wrote the code but haven't trouble looping to the scenario it asks for. ...
[3 replies] Last: You're welcome =) (by TarikNeaj)
How to parse string variable using istringstream to store words in a vector?
 
The program takes in strings from user input into words separated by white space,comma, and newline so that each word can be added to a vector as an individual ...
[3 replies] Last: > That is to check if the line yet you wrote while the loop 11--17... (by ne555)
I need 8-Bit CRC in Pascal and C++
 
I am making my home automation thingy and the serial gateway is Arduino C++ on one end and Lazarus program the other. I found this for Arduino, http://www.l...
[1 reply] : Do you really need a crc calculation? A crc calc typically includes a ... (by lsatenstein)
Strange variable outputs. "1.45667e+.009"
 
I'm new to all of this and am having trouble with a odd outputs of numbers. The program itself is meant to take user input for stock information, generate a ra...
[4 replies] Last: @Lothcarn good change, just needs a tweak - double stockChange = ch... (by TarikNeaj)
conversion C to CPP prototype and ftn header
 
I have written a small application in C. I have a header (app.h) in which I declared a structure, and I include the function prototypes. In the app.c file I hav...
[10 replies] Last: Thank You Keskirvo. Your explanation void APP::myprivate(int x) ... (by lsatenstein)
Why does this code output the following?
 
Im not sure why this code prints out "C". I did learn about strlen but its different here and im confused. Any help is appreciated and i want an explanation on ...
[7 replies] Last: If you want n easy way to remember why indexes start at zero, just say... (by lsatenstein)
Premutations
 
The number of permutations of a set of n items taken r at a time is given by the following formula n!/r!(n-r)! Where N! is the factorial of n. if there are...
[1 reply] : double n = 12.0; double r = 3.0; double nmr = 15.0; //n+r = 12+3 The... (by ne555)
Graphics.h error
 
Hello, i have got a little problem, or more precisely a big problem :). When i include the library graphics.h every thing goes perfect until I use command initw...
[12 replies] Last: @Thomas1965. That is a ridiculous comparison. Programming is hard to g... (by TarikNeaj)
output problem with loops
 
PROBLEM: Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For exa...
[1 reply] : int power(int base, int exp) { int n = 1; for (int i = 1; i <... (by naaissus)
Find word in binary tree
 
I've got the following code. branch* branch::find(string word) { if (word.compare(_word) == 0) return this; else { if (_left != 0 && _right != 0) ...
[9 replies] Last: This new code is functionally equivalent to the one you had before. (by helios)
by Cp14s
While Loop With If/Else Statement
 
My if/else statement isn't working properly within my while loop. If the user enters in a number NOT between 1 and 9 then the while statement should work and it...
[2 replies] Last: also put the code into the code Format. ( it looks like <> in a little... (by phsyrik)
Function Problems
 
So I'm trying to make a BAC table. But the problem is the math isn't coming back right. Like it just keeps saying 0.00 and nothing else. But that isn't right. ...
[8 replies] Last: yay ! that works! lol Thank you now its not doing the subtraction pa... (by dmeta10)
Please Help with problem.
 
So I need some help with this problem. I need to calculate the area of a circle by doing this: If the user selects option A, implement the Inscribed Polygons...
[10 replies] Last: Thanks for clarifying, that, didnt know =) (by TarikNeaj)
need explenatino to why my toupper is not working
 
So in my code I am trying to obtain first and last name of the user as well as the address city etc. but once obtained I need to make the first and last name up...
[3 replies] Last: Well, the first letter would be string , you wouldn't need a loop for ... (by Chervil)
What books would you recommend for C++?
 
Hi guys! I am interested in learning C++ with only two languages I know: - Python - Dr.Racket I have taken a few Computer Science courses in my University(Wate...
[5 replies] Last: I would most emphatically not recommend C++ Primer in any edition as a... (by Yawzheek)
Next step
 
Hi after anything thx to read my topic Now i have finished cpulusplus tutorial in c++ and Bucky tutorial but know I cann't do a usefull program I hopefull to g...
[5 replies] Last: Thx this seems good but what is the difference between SFMI and winapi... (by ninomino19)
Problem with result
 
I have a little problem with answer, computer is giving answer 2 4 6 8 while I am thinking that answer should be 2 6 only because value of count at start is...
[3 replies] Last: And my answer will be only true when we use assignment operator count... (by TarikNeaj)
by rain
How to call my toString from operator<< ?
 
How do I call toString from operator<< ? I have implemented toString but I dont know how to call it #ifndef POINT_H #define POINT_H // Comment this fo...
[5 replies] Last: Yes. (by AbstractionAnon)
by alx119
Need some books advice
 
Hi, I want to learn c++ for creating 3D games with directX or OpenGl.I know a few things in c++, but I don't know so much with pointers / classes etc., so I ...
[2 replies] Last: I don't know much about game programming but I'm sure that if you want... (by etrusks)
February 2016 Pages: 1... 2324252627... 46
  Archived months: [jan2016] [mar2016]

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