Beginners - June 2016 (Page 22)

need help with the code
 
So i am having trouble with two of my lines. the one that has what type of animal and pets name. they keep printing on the same line. I need help figuring out h...
[6 replies] Last: This works but is potentially flaky because of the mixture of lines of... (by closed account 48T7M4Gy)
Compiling problems
 
When i compile this code using the developer commands prompt from visual studio 2015 the program works but i get these errors: C:\Program Files (x86)\Microso...
[3 replies] Last: https://msdn.microsoft.com/en-us/library/3600tzxa.aspx Surf the toolb... (by closed account 48T7M4Gy)
getline() and << operator returns stream.
 
I have read in some book that getline() << operator return stream. What does this actually mean?. By returning stream it means it returning the characters of ...
[3 replies] Last: Thanks alot. Now. If i have a condition like this. if(cin >> i){ } Ho... (by Arslan7041)
Pointers and dynamic memory.
 
Would someone be willing to discuss and explain the purpose behind pointers and dynamic memory? I understand the purpose in definition form but I want to know ...
[1 reply] : Better still try: http://www.cplusplus.com/doc/tutorial/pointers/ The ... (by closed account 48T7M4Gy)
I tried to rewrite everything the code but still need some help on the array thingy
 
HELP ME PLEASE I NEED TO STORE THE CAR INFORMATION AND PRINT OUT THE INFORMATION #include <iostream> #include <string> #include <vector> using namesp...
[5 replies] Last: Just put a green tick on the one's that are settled and that way they ... (by closed account 48T7M4Gy)
I still stuck in here anyone help me
 
I need to store array in class to store 80 cars information for maximum and i need to print out the details. #include <iostream> #include <string> using...
[7 replies] Last: www.cplusplus.com/forum/beginner/192200/ www.cplusplus.com/forum/begin... (by closed account 48T7M4Gy)
I am stuck pls help me == I am just a beginner programmer
 
I need to store all car information using class and sub class. The user can store 80cars information for maximum. The user need to input the detail and print ...
[6 replies] Last: http://www.cplusplus.com/forum/beginner/192200/ http://www.cplusplus.c... (by closed account 48T7M4Gy)
Can this run ?????
 
I need to store and print out the car details #include <iostream> #include <string> class Vehicle { protected: std::string Manufacturer...
[1 reply] : http://www.cplusplus.com/forum/beginner/192206/ http://www.cplusplus.c... (by closed account 48T7M4Gy)
Need help in array class
 
I need some help overhere help please! I need to store the car detail with array in class i dont know how to continue i just rewrite it but i won't work! ...
[6 replies] Last: http://www.cplusplus.com/forum/beginner/192211/ (by closed account 48T7M4Gy)
by Bligen
Simulating keyboard presses
 
So how do you make the program write a specific line, for example a simple bot that writes "This is a bot message" in a chat every, lets say, 10seconds.... I kn...
[3 replies] Last: is it that, what you want: pseudocode: sendmessage (handle_of_window,... (by closed account 48bpfSEw)
by simani
How do you justify calling for below code?
 
Hi, Below is my code. You can see all of the functions are void, but how can these functions call? to clarify my question, please see this example: we have ...
[3 replies] Last: By default arguments are passed by value, meaning the function will re... (by Peter87)
Help with while loops
 
I'm creating a simple program to output characters in a certain way using while loops. Im very new to programing so this is supposed to teach me how to use loop...
[6 replies] Last: The "shortcut" is that instead of doing the incrementing in the body o... (by Arslan7041)
Linked Lists problem [OOP]
 
What I want to do: "Node has two fields: a pointer next and info field [001-999] which holds integer values. Every number in the linked list we will represent a...
[7 replies] Last: @cire I'm pretty sure I've to access them by "->" operator. Anyone who... (by Maartin)
Help with Poker Game.
 
It is a simple poker game that the user and computer can play. I'm sure there is a way better way to do this but at the time it seemed like the best I could do ...
[no replies]
by Tcm
using variables outside the function
 
In the the function runge4 two of the things it calculates are k1[i=0] and y[i=0]. Is there any way to use those in the main such that dist = y /k1 because the...
[1 reply] : Id take a guess that you could try creating a variable for them in mai... (by mitchellotis)
by Irhcsa
SFML our first game
 
We are stuck on another issue. The program works fine except how do we make it so if someone is asked what is your name? They can't hit the letter Y or N to ski...
[4 replies] Last: We have tried so many different things I used to be able to get this t... (by Irhcsa)
Inverse matrix
 
Hi everyone, I wrote the code to inverse matrix. However, the result have some problems. How to solute the problems? Thank u too much #include<iostream...
[1 reply] : Hi, There were some warnings when I compiled with cpp.sh (with all 3 ... (by TheIdeasMan)
Getting some errors with this code
 
I am getting some errors with my code. My errors consist of the getline statement in the username. Another error is this >> in userage. The other errors are in ...
[8 replies] Last: This is my current code #include<iostream> #include<string> using na... (by closed account D4NbpfjN)
by sengab
I have a problem dealing with Recursion can some one help
 
I have printed the output from this code but I don't understand why I get such output. Why dont I get 1 only, because from my understanding that the function is...
[3 replies] Last: It doesn't. It only calls printNum(6). My modification was just to sho... (by Peter87)
Chess Game Jump Issue
 
So I have this beautiful chess game that i made, but the problem is the code that prevents the bishop from hopping other pieces. Down below is the current code....
[5 replies] Last: Please delete your other post in the beginners section. Duplicate post... (by TheIdeasMan)
June 2016 Pages: 1... 202122232425
  Archived months: [may2016] [jul2016]

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