Hi
     You must try #include<iostream.h>
 instead of <stdio.h> and this is the correct syntex.

On 8/12/09, Gaurang Aggarwal <[email protected]> wrote:
> Hi ,
>
>
> I need help . I am using g++ in ubuntu 9.04 .
>
> This is C++ code .
>
> #include <stdio.h>
> #include <conio.h>
> void main()
> {
>  int a,b,c;
>  cout << "enter the no.";
>  cin >> a >> b;
>  c= a+b;
>  cout<<"sum"<<c;
>  getch();
> }
>
> qwerz...@ubuntu:~$ g++ ./cpp1.cpp
> ./cpp1.cpp:2:19: error: conio.h: No such file or directory
> ./cpp1.cpp:3: error: ‘::main’ must return ‘int’
> ./cpp1.cpp: In function ‘int main()’:
> ./cpp1.cpp:6: error: ‘cout’ was not declared in this scope
> ./cpp1.cpp:7: error: ‘cin’ was not declared in this scope
> ./cpp1.cpp:10: error: ‘getch’ was not declared in this scope
>
>
> " Above is the error
>
>
> Please help ..
>
> Thanks
>
>
> On Wed, Aug 12, 2009 at 5:02 PM, Sreejith Anujan
> <[email protected]>wrote:
>
> > On Sun, Aug 9, 2009 at 8:27 AM, Kamal Kishore <[email protected]> wrote:
> >
> > > I have install xinetd, tftp-server and vsftpd for kickstart installation,
> > > but I dont know what entry I will make in dhcpd.conf.
> > >
> >
> > Perhaps
> >
> > http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/s1-netboot-dhcp.html
> > ?
> >
> > Google is the best friend,
> >
> > ~Sreejith
> >
> > >
> > > On Sun, Aug 9, 2009 at 7:19 AM, sankarshan <[email protected]
> > > >wrote:
> > >
> > > > On Sun, Aug 9, 2009 at 7:08 AM, Kamal Kishore<[email protected]>
> > wrote:
> > > >
> > > > >          I am not able to install through kickstart with PXE. Please
> > > help
> > > > > and tell what is the procedure in RHEL5?
> > > >
> > > > It is a bit difficult to figure out what you are doing and, what is
> > > > not working, with the data you have provided, perhaps you'd like to
> > > > read through <
> > > >
> > >
> > http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-kickstart2.html
> > > > >
> > > >
> > > > --
> > > > http://www.gutenberg.net - Fine literature digitally re-published
> > > > http://www.plos.org - Public Library of Science
> > > > http://www.creativecommons.org - Flexible copyright for creative work
> > > >
> > > >
> > > > Sent from Pune, MH, India
> > > >
> > > > _______________________________________________
> > > > ilugd mailinglist -- [email protected]
> > > > http://frodo.hserus.net/mailman/listinfo/ilugd
> > > > Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> > > > http://www.mail-archive.com/[email protected]/
> > > >
> > > _______________________________________________
> > > ilugd mailinglist -- [email protected]
> > > http://frodo.hserus.net/mailman/listinfo/ilugd
> > > Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> > > http://www.mail-archive.com/[email protected]/
> > >
> > _______________________________________________
> > ilugd mailinglist -- [email protected]
> > http://frodo.hserus.net/mailman/listinfo/ilugd
> > Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> > http://www.mail-archive.com/[email protected]/
> >
>
>
>
> --
> --
> Regards
> Gaurang Agrawal
> http://www.twitter.com/gooraang
> http://www.sk-investment.com
> http://www.gaurakans.com [ not working yet ]
> http://www.mdu.li
> _______________________________________________
> ilugd mailinglist -- [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
> http://www.mail-archive.com/[email protected]/
>

_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to