Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > why this value ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 24 Topic 4280 of 4370
Post > Topic >>

why this value -858993460?

by GiuseppeDini <vvene@[EMAIL PROTECTED] > Sep 21, 2008 at 12:41 AM

This is my code:

// cl2.h
class cl2{
 int numero;
  public:
  int Aggiungi()
    {
		 return numero;
    }
 };

 //main.cpp
#include <iostream>
#include "cl2.h"
using namespace std;
int main(...)
{
        int j ;
	cl2 c ;
	j = c.Aggiungi();
	cout << j << endl;
	return 0;
}

I see on the screen always the value  -858993460.
Is there a reason for these.
I already know that I can fix the problem with contructors, but here I
just want to understand why.

     Giuseppe
 




 24 Posts in Topic:
why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 00:41:20 
Re: why this value -858993460?
Ian Collins <ian-news@  2008-09-21 20:10:15 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 01:35:10 
Re: why this value -858993460?
Bart van Ingen Schenau &l  2008-09-21 18:40:25 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 01:40:26 
Re: why this value -858993460?
Ian Collins <ian-news@  2008-09-21 20:51:34 
Re: why this value -858993460?
Keith Thompson <kst-u@  2008-09-22 18:01:16 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 02:34:31 
Re: why this value -858993460?
Ian Collins <ian-news@  2008-09-21 21:55:45 
Re: why this value -858993460?
peter koch <peter.koch  2008-09-21 07:46:12 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 08:27:22 
Re: why this value -858993460?
Richard Heathfield <rj  2008-09-21 19:31:18 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-21 14:03:39 
Re: why this value -858993460?
Richard Heathfield <rj  2008-09-22 03:44:09 
Re: why this value -858993460?
Pranav <pranav026@[EMA  2008-09-21 22:03:54 
Re: why this value -858993460?
Richard Heathfield <rj  2008-09-22 05:45:17 
Re: why this value -858993460?
Pranav <pranav026@[EMA  2008-09-22 04:17:43 
Re: why this value -858993460?
Richard Heathfield <rj  2008-09-22 11:56:00 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-22 07:48:49 
Re: why this value -858993460?
Richard Heathfield <rj  2008-09-22 15:30:37 
Re: why this value -858993460?
LR <lruss@[EMAIL PROTE  2008-09-22 13:03:30 
Re: why this value -858993460?
Bart van Ingen Schenau &l  2008-09-22 19:24:44 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-22 11:18:27 
Re: why this value -858993460?
GiuseppeDini <vvene@[E  2008-09-23 03:36:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 13:37:36 CST 2008.