LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2002, 02:29 AM   #1
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Rep: Reputation: 0
Small hello world problem, again!, sorry.


I have written the famous 'hello world' program, compiled it with out errors.

I have checked the permissions and it is executable. However when I come to run it nothing happens.

The cursor just returns to the prompt with no output and no message at all.

Can someone please explain what is going wrong.

Thanks.
 
Old 04-04-2002, 03:29 AM   #2
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
hi the information u gave is not enough. plz tell me which language u have used ... on second thoughts, send me the code
then lets see what can be done....
good luck
 
Old 04-04-2002, 05:39 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's amazing what some people think constitutes a concise question...

if you're using c or c++ printf statements or similar, you've probably just not got a \n at the end of the line, if you're using cout then you've proly not given a "<< endl" if it's java, maybe you've used print instead of println
 
Old 04-04-2002, 06:06 AM   #4
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry I should have said, it's written in C.

As you pointed out it hasn't got an 'endline' in it.

I'll give it a try with that inserted and see if that solves it.

thanks
 
Old 04-05-2002, 01:45 AM   #5
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
That was it, a missing '\n'

Everything works fine now. Thanks for all your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another World of Warcraft question/problem... Bokathebard Linux - Games 0 10-23-2005 03:48 AM
Small WORLD (Pole from Australia) agronom LinuxQuestions.org Member Intro 2 09-15-2005 01:38 PM
Hello World problem tayolinux Programming 5 07-28-2004 03:17 PM
Hello world problem devit Programming 2 05-08-2004 12:28 PM
QT Hello world linker problem digitized_funk Programming 0 10-19-2003 01:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration