Beginners - February 2017 (Page 8)

Can't figure out pointersto save my life
 
So I can't comprehend pointers and their use to save my life. I want to pass the variable message through get_line() so the user can input a string and then use...
[1 reply] : This assignment statement is the wrong way round, reply = *line; ... (by Chervil)
Command line simple question
 
How do i open a text of integers from a text file using command line. I cant open it thru dev c++ using the F11 key Do i have to open cmd n type the name of f...
[3 replies] Last: How do i open a text of integers from a text file using command line ... (by gunnerfunner)
is my code good to find unique number?
 
Can someone check, if this code is right? It should return a number, that is unique. At first a person enters a number (how many numbers will there be, and I ca...
[1 reply] : P.S it is only a part of the program, just one function. (by snekus001)
Default constructors
 
c++
[3 replies] Last: please run it through the compiler at least once before posting, some ... (by gunnerfunner)
Hangman Issue
 
This is a program for a simple hangman game. The issue right now is the out put it gives. If I enter tackle, it ends correctly saying you have won. Right now, w...
[6 replies] Last: Thank you, that helped a ton. I didn't even realize that error so than... (by element432)
Need a beginner program for college using some functions
 
So I'm using C++ and visual studio express and I'm a complete noob. I was asked in college to do a small program. The program has to do the following: 1- T...
[6 replies] Last: for the number of pass and fail students simply put a counter within a... (by kingkush)
Bool function
 
...
[1 reply] : This is not a homework site. We won't do your homework for you. Howeve... (by AbstractionAnon)
Need a more efficient program
 
This problem is about counting how many times the bells of a church sounds during a period of time called t (in minutes). This church has two different types o...
[9 replies] Last: Finally got it to work, YEEEY #include <iostream> using namespace s... (by Oriol Serrabassa)
Help with Input Files and Output Files
 
I have an output file with this information: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 I need to read each line in and ma...
[3 replies] Last: Hello subeydoo, Both previous suggestions are good. I would add that ... (by Handy Andy)
classes templates and constructors
 
I have an issue with the following code copied from a book as an example... Xcode is giving me errors with the template constructor!! // // Stack.hpp...
[3 replies] Last: Excellent thank you! It wasn't explained... or maybe I missed that bit... (by jamesfarrow)
Reading and Acting on application data?
 
So i have an idea which i think is possible due to things like CS:GO hacks etc but i'm just not too sure how i'd go about it. I am looking to create a program t...
[1 reply] : bump (by ExSanity)
Drawing a dynamic structure
 
Hi, do you know how a drawing of this structure would look like. If it was to be drawn on a piece of paper. Each element has to have a data value. Next field s...
[4 replies] Last: Thanks for explaining it so thoroughly. Could you make a sketch of it ... (by kubanm3)
by danciu
vectors
 
Hi, when we have a vector, like below, can we consider always that cout<<*v.end() will print 0 value? Can we find there some garbage value or not? int...
[2 replies] Last: Use rbegin(), crbegin() for iterator access to the last element or bac... (by gunnerfunner)
by AlanG
Best place to restart C++ learning
 
Background: I started in C++ with v1, then moved to v2 and used it professionally for about 8 years then, just as v3 and the STL was getting established, I...
[4 replies] Last: Excellent. Thanks for the help. Off to dust down my brain cells :-) (by AlanG)
remove_node in rapidxml
 
Dear all, Having the following xml file: <A> <B/> <B attr1="value1" attr2="value2" /> <C> <D /> <E attr1="value3" /> <E attr1="value4" /> <F /> </C> </A> Plea...
[1 reply] : Your XML file is pretty generic so it is very hard to debug. Good lu... (by Pattako)
C++ Homework help!!
 
Ive been trying to do my homework for the past 2 hours and I can't seem to get the correct answer, I keep getting 5/6 answers correct. Please help!! (1) Prompt...
[5 replies] Last: What is the purpose of this code? cin >> wallWidth; cout << endl; ... (by codehelper)
by Mavs25
Help inputting text file into array of chars?
 
I'm having trouble trying to read a text file called "decrypted.txt" into my code while using the following code. I'm trying to input the text file into an arra...
[no replies]
How do I make text seem to be typed letter by letter?
 
I don't need to involve the code I'm using, for once there aren't any errors. But I was just wondering how I make text look like its being typed? Its been a whi...
[5 replies] Last: > The easiest way is just use the function Sleep. Easy to type, easy t... (by JLBorges)
Need output formatting help!
 
Hey guys, I need formatting help with my output. Here's a snippet of my code. cout << left << StockName << ' '; cout << setw(8) << right << NUMofShares << ' ...
[2 replies] Last: Thanks Mantorr22! Works great! (by MisterTams)
double quotation mark
 
Hi, Could anyone please tell me how to make the output the double quotation mark"" in the following code? Only if I change that to single quotation mark 'dog'...
[2 replies] Last: Thank you very much for your help, integralfx. (by iclearwater)
February 2017 Pages: 1... 678910... 37
  Archived months: [jan2017] [mar2017]

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