Beginners - January 2014 (Page 18)

Help with simple output programme
 
I am trying to write a program that ask the user to input information for 10 cars and after that it outputs all the information he/she inputted on the screen. ...
[2 replies] Last: You can't define functions inside of other functions. int outputCar... (by giblit)
by Xephyr
[Error] expected ';' before 'people'
 
Currently I am working on an exercise called "Pancake Glutton" (Source: http://www.cplusplus.com/forum/articles/12974/). I'm fine with working everything out...
[4 replies] Last: Thanks but I solved it :) (by Xephyr)
Using CIN String input in main function from other?
 
Hi guys, I created a menu() function which sets up the users name, etc. I have a string there called name, and I did put it in a public class (I know this is ba...
[4 replies] Last: Thanks very much indeed my friend! (by aquahorse)
by Zoyk
how to run a linked program?
 
I don't fully understand how to run a linked program in unix? I have a total of three programs, one is the interface program.h, the second one is the definit...
[1 reply] : ¿undefined reference to...? http://www.cplusplus.com/forum/general/11... (by ne555)
printing an array
 
Im trying to have a dynamically allocated array, where everytime the pr_create function is called, the array grows in size by one, and a new variable is assigne...
[4 replies] Last: about this... void pr_browse(); void pr_browse() { } whenever I don... (by ASCII14)
Need LOTS of help making a game in C++
 
Hi all, I am a complete beginner at C++, and need to make a game with the theme rolling. I have to do this because im aplying for a study. (cant believe they...
[12 replies] Last: I will have to look into SFML. It was just that I had recently tackled... (by CplusplusAcolyte)
by Garion
using namespace std;
 
I'm trying to understand how the key word Using works and I think I have a basic understanding after reading this websites tutorial here. http://www.cplusp...
[6 replies] Last: don't forget using-declarations. http://en.cppreference.com/w/cpp/lang... (by Cubbi)
counting input chars -- help request
 
Hi, below program count input letters and numbers, but few things are not going as i planned: 1. when input like: 33 - it display twice comment instead la...
[5 replies] Last: Sorry I didn't realize you wanted it to stop when the last character w... (by giblit)
Using setfill to populate a line of 35 *
 
I am trying to figure out how to get a line of 35 "*" using the setfill command. I can't seem to get it to run without having more than just "*" in the line. ...
[3 replies] Last: Assuming you didn't do something to nuke the ACL's on that file this i... (by Computergeek01)
by xkara
subtract values from elements in a vector
 
Write your question here. I have two vectors with the values 2.123, 2.111, 9.222 1.22, 4.33, 2.113 I want to subtract the first element of eac...
[2 replies] Last: here's a way without the C++11: let's say you have: typedef std::v... (by Stewbond)
Center of mass
 
Can somebody help me how to find the center of mass of n objects?
[4 replies] Last: static const int N = 10; struct Object { double xpos; double ... (by Stewbond)
by enemy
Left value
 
Hello! Please, it says in a book: "left value is everythnig that can be used to initioalise a reference." Please, what is exactly a reference? many thanks...
[3 replies] Last: Sorry I'm late what I did is that I answered your question Please, wh... (by JewelCpp)
Classes Help Please
 
I want users to enter their bank account information. I tried to look at some tutorials online and this is what I got. I am very new to c++ so any help would be...
[3 replies] Last: What's not working about it? I'm not a mind reader, and I'm not gonna ... (by ResidentBiscuit)
Reverse digits
 
I need to take the integer and output the digits in reverse. For example, if the input is 245 then it should output 542. I've determined the number of digits, b...
[5 replies] Last: #include <iostream> using namespace std; int ReverseDigits(int x); ... (by Stewbond)
How to make my calculator, calculate more than 2 numbers?
 
// I made this simple calculator and its working just fine. But it can calculate only 2 numbers at a time. I want it to calculate as many number as I desire. So...
[4 replies] Last: int main() not void main() (by closed account iAk3T05o)
difficulties with decoding base64 encoded string/QbyteArray???
 
hej, So I am new in this Forum and even new in c++ in general. Well based on my "plain" C knowledge I tried to get used to C++ and QT at once! So there is...
[no replies]
by enemy
Function as parameter of otehr function
 
Hello! Please,what is wrong in that code? Te parameter of fu2 should be resultof fu1. int fu1(int v){ int z=v+2; return z; } int fu2(int fu1(int v...
[8 replies] Last: if you want to pass a functions a parameter do it like so: int fu1(int... (by coder777)
by Nata
need an algorithm
 
Hello. I want to write a program, in which user can cin days month and year, and n number of days. The program should output a new date, which will be n da...
[2 replies] Last: The most straightforward way is to make a function that converts a dat... (by Duthomhas)
Help me please
 
Write your question here. I have to create the following program in C++. Please help me, because I'm new in real time programming. This is the requirement: I...
[4 replies] Last: how can i do that? (by addytzzu1)
by Kauto
Difficulties debugging
 
Hello there, there's not much to say, but Im having trouble debugging the program. When I check the error page it gives nothing, but when i try to debug the bl...
[4 replies] Last: After a quick look, I have 2 quick comments: In line 121 for(c=AS-1;... (by tipaye)
January 2014 Pages: 1... 1617181920... 44
  Archived months: [dec2013] [feb2014]

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