Beginners - November 2010 (Page 34)

My first code. You need SVN. Or just go to the link.
 
My first calculator! https://gmodpack.svn.sourceforge.net/svnroot/gmodpack/branches/C++ or Do this so you are up to date on all my projects https://gmodpa...
[4 replies] Last: I thought what I meant was pretty clear, but I can be more explicit, i... (by helios)
Functions.
 
Right now in school I am learning about UML class diagrams and how to put them together into Visual Studio 2010. The professor tells me that I am not properly u...
[2 replies] Last: Great Video Tutorial : http://www.youtube.com/watch?v=gzsLVPf8P2U E... (by OHGxLeetGamerxOHG)
Function Program
 
How do I work on such program? int f1(int x, const int& y, int& z); int main() { int a=10, b=20, c=30, y; y = f1(a, b, c); //Meaning of this? cou...
[4 replies] Last: y = f1(a, b, c); is setting y to the output of the function f1 ... (by jamesmk)
Flipping?
 
system("cls"); cout<< "Display Sting backwards"<<endl<<endl; cout << "string: "; getline( cin, userinput ); char Char...
[3 replies] Last: I said compilation time. In your example, you will know userinput.leng... (by ne555)
Leap Years using while
 
while ((dd == 29 && mm == 2) && ((yr%4 = 0 && yr%100 !=0) || yr%400 == 0)) { cout << "Invalid day" << endl << "Reenter the day: " << endl; c...
[3 replies] Last: In order to make this sane, you should put that complicated mess of co... (by Disch)
Small Question
 
Hey CPlusPlus! Quick question here: I'm using the MS Visual Studio C++ Express IDE, and I want to make a button so when you click it it will execute diffe...
[5 replies] Last: Ah. Sounds to me like that was C++/CLI, then. Not quite C++ (by Disch)
linked list nodes
 
I'm trying to create a linked list; so far my code is: node *newnode=new node; newnode->item=dataItem; newnode->next=back; back=newnode; //front and bac...
[no replies]
[ ]-----Networking----->[ ]
 
This is my first post on this forum, so if it's not in the correct place please move it or let me know. I want to make a program that can connect to a for...
[2 replies] Last: To download the threads and post replies, you can use libcurl. SDL is... (by Athar)
static const member variable link error.
 
Hello. I'm trying to compile some code that is giving me an unresolved external symbol link error. I have a static const float fDeg2Rad in class Math that...
[no replies]
ofstream problem
 
Hello everyone,i have this following code where i read from a txt file and i pass each of the 3 first lines into three integers.The fourth line is txt,i try to...
[2 replies] Last: Thanks re patriwti :) (by kikirikou)
Overloaded "-" operator with references and pointers?
 
I had made an overloaded "-" operator and it had worked perfectly fine, but since I modified it using pointers and references I'm getting an error, and I think ...
[2 replies] Last: Yeah I figured that out a couple minutes ago xD Thanks. (by Chris818)
by timgj
typedef and constructors
 
Hi there. I am in the process of attempting to learn C++ and have what I presume is an elementary problem, but I can't seem to find anything which solves it in ...
[6 replies] Last: The problem is that typedefs are not first class types. What I mean by... (by Galik)
*(long*)0 = 0
 
*(long*)0 = 0; What does this line of code do?
[4 replies] Last: the program has crashed.If you do not, of course you something differe... (by firix)
by wtf
error initializing console window to maximum size
 
I'm getting this error message: error al iniciar de disp. de video para el modo de pantalla completa and i know windows vista doesn't support full screen ...
[no replies]
by pika
Trouble with Templates
 
Hi guys, I'm trying to write a simple class using templates, but it's not really working out so well. I wonder if someone could tell me where I'm going wrong? ...
[15 replies] Last: I'm glad you noticed those memory leaks. The assignment operator fu... (by guestgulkan)
Inputing Strings
 
I have a program that I've been given as homework and I have all the logic down but I'm getting one huge problem with it and I don't know where I've gone wrong ...
[4 replies] Last: I've realized my error and fixed the program. It works perfectly now h... (by DRevenX)
strcpy problem
 
Hello everyone, i am trying to copy the elements of a const char array to a char array using strcpy function.When i compile my compiler does not returns me any...
[9 replies] Last: Instead of copying the assignment (by firix)
Inheritance error
 
hi ive been trying to do some inheritance in 2008 express edition and this is the error i get. 1>f:\c++ test\classbeech\classbeech\baseball.h(5) : fatal err...
[1 reply] : Baseball.h includes Person.h which includes Baseball.h which includes ... (by jsmith)
problems linking when inheriting from template specialization
 
i ran into a problem implementing a hash table, and distilled the problem down to some small classes, but i don't know what's wrong with them. g++ returns 'mul...
[1 reply] : Create a file base.cpp and move your definition of Base<char>::hash in... (by sreque)
by wtf
Not couting from within a member function
 
I guess a better way to phrase this is the cout stream is not flushing from within a member function, although I am using endl. However if I call exit(Som...
[no replies]
November 2010 Pages: 1... 3233343536... 42
  Archived months: [oct2010] [dec2010]

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