Beginners - July 2013 (Page 13)

Help with spacing in for loops
 
Hey guys just need a pointer! Been working on a small project designed to print a hollow diamond. I'm pretty much there but have been having trouble fixing ...
[2 replies] Last: Thanks a lot! Never thought of building it from the middle outwards! ... (by igotabuginmyeye)
Need some quick help!
 
I need help making this into an array. It doesn't work with windowns form application? float f_tempTopPlate ;
[6 replies] Last: Okay, I got it to work! Thanks for your help! (by epd5030)
by nmn
order of precedence
 
if I have: Cars car1 = car2 + car3; the + operator is overload to return a Cars object. When this is call...what happens first ? It looks like my code is ...
[10 replies] Last: correct. (by Disch)
by Dalos
why do advance users use the namespace?
 
What I mean is why do they put the namespace in front of alot of the code they write e.g std::cout << "Like this."<<endl; sorry if this is a silly ques...
[4 replies] Last: When you do using namespace std; you are taking everything in the st... (by Disch)
by abzksm
Pleaaseeeeeeeeeeeeeeeeeeeeeeeeeeee
 
The number 666 is considered to be the occult "number of the beast" and is a well-used number in all major apocalypse themed blockbuster movies. However the num...
[1 reply] : what have you got so far? (by mutexe)
by Slazer
Static (early) vs dynamic (late) binding in C++
 
The difference between static and dynamic binding is that static occurs at compile time and dynamic occurs at runtime. Example of static is function and operato...
[1 reply] : cuz pBase could be a base class that has 2000 'child' classes, and you... (by mutexe)
structure problem
 
Write a program that uses a structure to store the following information on a company division: Division name (East and West) Quarter (1, 2, 3, 4) Quarterly...
[4 replies] Last: no, where do you call the functions in main? (by dhruv90)
by abzksm
Please help ANy Idea????
 
Write your question here. Little Josh has found several sticks that are each 1 inch long. He wants to form a rectangle with the biggest possible area, using ...
[no replies]
c/c++ docstrings
 
Is there a way you can pull a docstring in c++? Kind of like python docstrings. Even defining my own classes i forget what they do and have to look back at its ...
[2 replies] Last: hmm not sure but thanks for the link, i will check it out. In the mean... (by metulburr)
by neer22
Object initialization to zero
 
Dear All, I have a doubt that what will happen if I try to initialize object of any class with 0. for example Class Vehicle { //anything ...
[2 replies] Last: That doesn't make much sense. Do you mean initials all members to zero... (by MrHutch)
best practice for using namespaces
 
using the namespace std for example. What is the best practice? being the less keystrokes, but most dangerous to overwrite #include <iostream> using namespace...
[9 replies] Last: @metulburr: fixed is defined under this class http://www.cplusplus.com... (by kevinkjt2000)
by sumsar
missing dll's
 
I just set up visual studio 2010 and made a simple hello world program but i'm getting a weird runtime error anyone that knows how to fix this ? #include...
[2 replies] Last: okay thanks (by sumsar)
by Ganado
Coding practice question, calling function within a function
 
I looked up some stuff before writing this, about how you can't use a nested function in a function, and that you would need to have a nested struct/class. That...
[4 replies] Last: > I guess my mentality when posting this was that I thought what I had... (by JLBorges)
Searching with char-s.
 
Hi. I have a struct where there's a firstname, a surname, and a custom number - from a file. Now, I need to create a function, where the user enters the firstna...
[1 reply] : you cant compare character arrays like this. you are just comparing th... (by Jaybob66)
Trying to write some code that will average my grade (No real use just for practice)
 
Gotta start off by saying that im pretty much brand new to code, and the code i used for this program is C not C++... Basically im im trying to write a simple ...
[2 replies] Last: Thank you very much sir!.. I only started coding about 2 days ago, so... (by pmiccich)
by nmn
operator=
 
a = b; // works a = b = c; //error: error no match.... Can you tell me why ? Car Car::operator=(Car &a){ Car myCar; myCar = a; .... .... return(m...
[1 reply] : http://stackoverflow.com/questions/2697974/how-do-i-go-about-overloadi... (by mutexe)
Special characters using fstream (1,2)
 
I'm having some problems with special norwegian letters. The following code works #include <iostream> #include <locale.h> #include <fstream> #include <string...
[20 replies] Last: Version #1 worked perfectly! Thanks a lot! :) (by Zetison)
Question on how to make something loop
 
So I got this program from a book and what I like to do is change it to do things I previously learned to do. The program uses toupper. I would like to have you...
[1 reply] : What the hell is while(szString != cExit) and if(szString, 256 == ... (by tath)
Random number array sorting
 
I am having trouble getting these values to return correctly, most times everything but descending order works but if i input a 3 everything messes up, any help...
[3 replies] Last: The bloodshed IDE is no longer developed (and if you downloaded the pa... (by cire)
Number Validation with two Data
 
Hello I'm a beginner C++ coder and currently taking Programming Structure class. The professor asked us to create a function that can validate the input numbers...
[2 replies] Last: I just thought it through. Thanks for the help. (by TouchPad)
July 2013 Pages: 1... 1112131415... 53
  Archived months: [jun2013] [aug2013]

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