Beginners - November 2015 (Page 38)

I'm new to C++ and have a problem regarding Structured Data.
 
Look at the following structure declaration. Write statements that.. A) Define a FullName structure variable named info B) Assign your last, middle, an...
[1 reply] : What exactly is your problem? So far you've declared a struct (which w... (by anarelle)
program crashes while generating a string pattern at higher level
 
Hello forum, I am trying to generate a string pattern for the hilbert curve at level 16 and program crashes with the following output: terminate called a...
[1 reply] : Do you realize how big your string is getting? Remember you're algorit... (by jlb)
Hello, c++ programmers
 
I am trying to understand C++ to the best of my ability but i could use some help on how to teach myself C++. So i would like to ask you how you learned c++ ...
[6 replies] Last: you could probably get yourself off to a good start if you want to pur... (by epicmike)
Are these two correct ways of iterating through a vector?
 
I'm not sure if both are equally valid or one should be preferred over the other. First one is the same way as one would iterate over a static array. Second one...
[3 replies] Last: Thanks guys! (by anarelle)
Array of Pointers and Objects
 
Hello good people. I need help with extracting data from a .txt file and add that to an array pointer/array of Objects. Im so so lost on what to implement on ...
[5 replies] Last: Hi, A few things I noticed: Don't duplicate names in base and derive... (by TheIdeasMan)
Error C2664 while using classes.
 
I'm trying to write a small code in order to learn classes. I used one of the examples posted in the reference section of this site as a template. However, when...
[2 replies] Last: Thanks! This helps a lot. I need the parameters to be dynamic so I sho... (by EverGreen1231)
Any help appreciated
 
Ok to start i just want you to know im new to c++ and im still trying to learn the basics so please don't be harsh about the question im about to ask. Basica...
[3 replies] Last: Just to be clear: one can't make an executable program on one OS, put ... (by TheIdeasMan)
Allow a blank user input
 
Hello everyone, I'm new to C++ and I'm playing around with code. I've been trying to figure out how to make a user input accept a blank answer instead of contin...
[1 reply] : As I'm new to "C++", I'm beginning to learn it's a better idea not to ... (by ShiftLeft)
Would this use of struct and function references be considered okay?
 
Would this code be considered valid? It obviously works but could it be improved? If so, how? The purpose of this is to replace a giant block of if.... else ...
[2 replies] Last: Thank you very much for the feedback!! (by SamuelGr)
by JoanT
Function call missing error
 
I'm facing some errors regarding the bool member. It gives me a function call missing argument list error whenever I tried to build the code. This are the c...
[1 reply] : It's not a good idea to have a variable and a function with the same ... (by Thomas1965)
operators overloading, strange seg fault
 
Hello! I was given an exercise (the main() part) by my teacher and was supposed to write functions so that it would work. But I keep having seg fault. It's...
[7 replies] Last: Where exactly does it crash? The best would be to use the debugger, bu... (by coder777)
Trouble remaking a project with void functions
 
I'm still a little iffy on how to use functions separate from main but this is what i've got so far #include <iostream> #include <fstream> #include <strin...
[6 replies] Last: line 60 else(average < 70) must be else if(average < 70) line 71 ... (by Thomas1965)
Default construcotr not found? Program not compiling
 
I dont want to post my entire code because my problem is only with a constructor. I've made a class called Money, with two member variables 'dollars' and 'cen...
[12 replies] Last: Thank you for your input. (by Arslan7041)
Why should I ever use anything other than a void function?
 
Basically the title says it all, but why should I use a double, int, or anything else? If you look at the function below, I could set it up to return a double. ...
[3 replies] Last: When talking about programming in general, there are functions and pro... (by Kevin C)
error: expression list treated as compound expression in mem-initializer
 
Hello again, I'm trying to make a linked list that stores a bunch of shape objects that I created. The shape class is an abstract base class since it's being us...
[2 replies] Last: weird, I was talking to someone about that earlier since before I had ... (by omega4relay)
How would I run this multiple times?
 
When I run this the second time it skips the part where it asks the user to enter the name... how would I bypass this? #include <iostream> #include<conio...
[1 reply] : You need to flush input buffer with something like cin.ignore (). This... (by ShiftLeft)
I am trying to get this math program to work and I'm struggling with the final part.
 
Hi everyone!I am new to c++ and I am working on this math program. The program essentially gives the user 5 options to work with. Addition, subtraction, multipl...
[7 replies] Last: Excellent (by closed account 48T7M4Gy)
Can someone explain me this?
 
hi, sorry for my poor english. I was coding this to see how the program reacted. #include<fstream> #include<iostream> #include<array> #include<...
[5 replies] Last: so, I wonder, why putting that within the code, makes someway the poi... (by jlb)
pointer function implementation
 
I dont know how to implement a pointer function in my program specifically, someone gave me a site, but it's not helping. #include<iostream> #include<c...
[1 reply] : Please don't double post. http://www.cplusplus.com/forum/general/17827... (by closed account 48T7M4Gy)
First time C++ user
 
My code when I run it gives a blank answer. It shouldn't be doing that, it should be asking for inputs repeatedly until I put in a non-integer. If someone coul...
[17 replies] Last: With the indentation and bracing, you should be able to get your IDE t... (by TheIdeasMan)
November 2015 Pages: 1... 3637383940... 53
  Archived months: [oct2015] [dec2015]

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