Beginners - April 2016 (Page 33)

Is there a way to write this code to look more professional?
 
I am a beginner and I want to know if my code can be created in a more professional look? void User_Account::set_username(std::string name) { ...
[10 replies] Last: awesome thank you (by kevlwig85)
by Eco83
replace values in two-dimensional
 
This program using only two-dimensional array. it reads from file which consists of 51 rows observations and 3 columns consists time in seconds, displacement in...
[7 replies] Last: Please use the code tags. See http://www.cplusplus.com/articles/jEywvC... (by keskiverto)
by mmgh
Pointer to Function Member
 
I am writing a program for minimization. It has two classes. Class A which does the minimization and Class B which prepares the objective function to be minimiz...
[4 replies] Last: Thank you so much. It is the simplified code, because the actual code... (by mmgh)
COS1511 Assign 2 Q4
 
My program cant display but accepts data. HELP #include <iostream> #include <string> using namespace std; string inputData (string name, string addr1,...
[4 replies] Last: To pass values by reference you need pointers No! To pass objects... (by keskiverto)
Urgent need of help!
 
Hello! Today I stepped on a brick of lego. While coding, "new" and "delete" both got greyed out. In this part, "new d" is greyed out for some reason that ...
[1 reply] : Please don't double-post - it ends up wasting people's time. Other th... (by MikeyBoy)
Brute Forcing Question (Project Euler Spoilers)
 
I'm not sure if it is poor taste to ask about project euler on these forums. If it is, let me know and I will delete the post. I literally just picked up prog...
[14 replies] Last: @helios Honestly, now that I stare at it, I have no idea why it conf... (by Cheech0)
Need general advice!
 
Hello cplusplus community! First of all, I do not currently need any actual help with coding. I just need general advice of how to begin to work on an issue I ...
[5 replies] Last: Then forget the diagrams. It's not the point of this post. My questio... (by ThreePounds)
Dice Program with number of results
 
I'm tasked to simulate the roll of two dice, generate two random integers between 1 & 6 inclusive, add them together, and use that minus two to index an array t...
[5 replies] Last: One problem is initializing and filling the array in main() int dice ... (by Thomas1965)
double loop
 
i get output lik * ** *** **** ***** but how can i change it like ***** **** *** ** * please help this question mae me carzy ahhhhhhhhhhhhhh
[5 replies] Last: Try this: xinclude <iostream> using namespace std; int main() { ... (by coder777)
by GabeJ
Reading the end of an XML file
 
This program reads a contact list from an xml file. It prints the names and addresses of every contact who lives in the city of Palmdale. I have everything wo...
[3 replies] Last: Thank you for all your help. I got the program working properly using ... (by GabeJ)
by Nyapp
Is this websites C++ tutorial good?
 
I've learned up to 1.10 on www.learncpp.com, and I've been hearing a lot of criticisms about the site. So I want to change to a different tutorial. Is the one o...
[2 replies] Last: I always recommend book. You can start with "Programming : Principles ... (by ephraimr)
Can't get maximum from int and double
 
Write your question here. #include <iostream> #include<algorithm> using namespace std; int main() { int i=10; max(1,i); cout<<"T...
[1 reply] : #include <iostream> namespace my { template < typename A, typena... (by JLBorges)
Can't figure out std::out_of_range at memory location error while debugging
 
The error : "Unhandled exception at 0x75AEC52F in Project5.exe: Microsoft C++ exception: std::out_of_range at memory location 0x003CF370." occurs in the aHistog...
[4 replies] Last: Ah OK, I simply had a >= where it should have been a >. Thank you for ... (by AtlFalcons24)
by matadm
Total C++ n00b
 
Hey everybody, Total newbie here with c++. Just kinda messing around with the language to get a grasp on it all. And this is a really really simple process and ...
[4 replies] Last: Thanks everyone, very helpful! I appreciate all the advice! (by matadm)
Correct initialization of a class
 
Hello, I know that CTOR can be used for assigning default values to fields. But anyway - is it correct to initialize fields of a class in the way below, or do I...
[2 replies] Last: Interesting very much. Thank you! (by leonid1990)
Drivers License Program Help.
 
I got assigned to write a program based off this description: "The local Driver's License Office has asked you to write a program that grades the written port...
[no replies]
 
[1 reply] : In this case, why would it ever be a good idea to let the user seed th... (by xismn)
Issues getting started with class for OOP project
 
I'm working on a project and am completely at a loss on how to even really get started. Here is the project instructions for the initial project which I had no ...
[2 replies] Last: I went back and scrapped everything and am trying to start over based... (by AtlFalcons24)
using -1 for excused absence.
 
i'm having trouble with excused absences.this is how my professor wants it. "When entering the scores, if a student had an excused absence for a score it wil...
[no replies]
cin.get needs to be pressed twice in loop
 
Hello! Beginner here. I am working on my first real program. It is a reaction game and the user is told to press enter when an indication is displayed in the...
[5 replies] Last: Well at line 31 you have cin.get(); and then what I assume is p... (by Chervil)
April 2016 Pages: 1... 3132333435... 43
  Archived months: [mar2016] [may2016]

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