Beginners - August 2012 (Page 39)

Homework assistance with Vectors.
 
First of all hello. I am extremely new to C++ and am trying to learn through a class. I have a problem with one of my assignments and need advice. Here is the...
[2 replies] Last: Wow, sorry about the [ Code ] issue. But I think you were correct. I... (by jmckemy)
Storing information in C++? (1,2,3)
 
I am trying to make a program that can register new information and acces it on demand. For exampel, i need to have a menu for accessing stored movies (format...
[51 replies] Last: I am currently on Video 30 of 75 of those youtube clips (C++ Tutorial ... (by mikedapsyke)
Try to figure the math expression for this one!?
 
One large chemical company pays its salepeople on a commission basis. The salepeople recevie $200 per week plus 9 precent of their gross sales for that week. Fo...
[5 replies] Last: Thank you Moschops, I took geometry and next year, I will take algebra... (by DetectiveRawr)
Question about where to put my objects so functinos can have access to them
 
Hello everyone, So need my life would be so much easier if my functions could access my objects. My problem is my objects are in the main function and my...
[4 replies] Last: Oh ok. Thanks very much! (by dtaqee88)
[win32 api]wsprintf/sprintf/sprintf_s stopping application
 
Hello, I'm trying to do something like a countdown timer where you set a time and start it, however I'm having strange problems with setting time, I have stati...
[5 replies] Last: Right. Now that I remember, wsprintf() and related functions take tho... (by webJose)
Array size
 
Is this a good approach to get a pointer and the size of the array? Or there are better solutions? struct MechanicalElement { virtual std::pair<size_t...
[2 replies] Last: It is better to declare the functions as const and change the order of... (by vlad from moscow)
call winapi
 
Hi, When I call the function from WinAPI MessageBox (after I add Windows.h), the compiler automatically will add User32.lib library? (http://msdn.microsoft....
[2 replies] Last: Great, thank you (by Damian666)
by nealr
Inheritance across multiple files
 
I'm almost 100% sure I have the syntax right in both of these classes, however I'm getting the following errors: For CShape.cpp - "error C2011: 'CShape' : '...
[2 replies] Last: Besides not using header files, you're also missing a semicolon at the... (by Athar)
Well, SFML is annoying. (1,2,3,4)
 
So there was all this hype about 2.0, so I switched over. Nothing but issues. First I was having this odd bug with sf::Text, so I just got rid of that. Didn't r...
[69 replies] Last: This is a very interesting thread. I've had alot of experiences with ... (by formerBGIuser)
VS2008 header brackets
 
Hi, I'm using Visual Studio 2008 as my IDE for learning C++, and I am having compilation errors when I try to link self-created header files using pointy bracke...
[3 replies] Last: The difference between using "" and <> is implementation defined. The ... (by Moschops)
by oblaq
creating a bool
 
can i get some help creating a bool. I am working hard to understand but i dont so i need some help. / This program calculates student exam average. #inclu...
[3 replies] Last: ok I did some work to clarify what i what to do a little better. // T... (by oblaq)
suprising behavior passing arguments as references
 
Consider the following do-nothing program class myclass { }; void foo(myclass &x) { } void foobar(const myclass &x) { } myclass create(void...
[8 replies] Last: Apart from own features MS VC++ 2010 has numerous bugs and it allows f... (by vlad from moscow)
by Naureg
This can't be the best way to do it?
 
So I started writing a class that allows someone to simulate keyboard input based upon a string, now is parsing the string with a huge else/if in order to get t...
[8 replies] Last: I just like it in caps that's all (even though it is extremely redunda... (by Naureg)
constant temporary items as returnvalue
 
Hey, back to the forums again with a mind boggling question. I'm trying to tackle operator overloading and wrote the following simple code below. I made tw...
[6 replies] Last: !!! Because you did not declare the member function as const - there... (by Prestissimo)
Sum between ADT and primitive type
 
class Int { int i; public: Int(int i = 0); friend Int operator + (Int, Int); operator int () const; int iVal(); }; Int::I...
[1 reply] : Because an Int can be converted to int and an int can be convert... (by Athar)
Rdbuf() function help!
 
First I output data to a the file "f1.txt" with output file stream f1out. Then I want to copy the data from file "f1.txt" to the file "f2.txt". Then I want to o...
[4 replies] Last: I tried to do the same thing today and somehow I made it work. I will ... (by Zerpent)
Sorting Netpay by Pointers Question
 
Ok so I think I'm on the right track with finishing this program. Errors: 1.) C:\Users\-6\Desktop\Dev-Cpp\ESC\Practice.cpp In function `int main()': 2.)46 C:\...
[3 replies] Last: #include <iostream> #include<fstream>//file input output stream using... (by LaC0saNostra)
by rey9
sides of a triangle
 
can anyone help me with this? #include <iostream> #include<cmath> #include<cstdio> using namespace std; int main() { double size, x, y, z, p, A, ...
[1 reply] : learn to google. as you have this from the internet, the answer also ... (by gelatine)
Trouble with cstrings
 
I am having trouble with cstrings. I have worked with strings, but never cstrings. I'm trying to make something where the user is prompted to enter in their gen...
[3 replies] Last: you are doing int i=0; and than while(a ) { if(a =="male") { c... (by HiteshVaghani1)
First ever for loop
 
I've never used a for loop before but im trying to use a for loop now instead of a while loop to print the numbers from n1 to n2 but when i set n1 to 5 and n2 t...
[6 replies] Last: If we use your code as an example this should be the syntax cout<<"... (by alexmk92)
August 2012 Pages: 1... 3738394041... 45
  Archived months: [jul2012] [sep2012]

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