New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Blank screen

Post Reply New Thread Subscribe

Thread Tools

Member Since: Dec 22, 2007
Posts: 1
peeta is on a distinguished road

peeta is offline
hello friends

i am not sure if this is right place to post so sorry in advance if it is not.

i am very interested in learning C++ so i started it with Xcode.
i do not have any previous knowledge of C++. i wrote very first basic program which is as follows

#include <iostream>
using namespace std;

int main()

cout<<"Welcome to C++";

return 0;

with this code i am having error message about int main() saying it is repeating so i changed it my new code is like as follows

#include <iostream>
using namespace std;

int mainfunction()

cout<<"Welcome to C++";

return 0;

with this code compile is successful build is successful no error message.
Now real problem is that when i run it, it produce only blank screen, nothing what so ever on it. Please can anyone advise me whats wrong with it why it does not show "Welcome to C++"
Any advise is appreciated
Thanks in advance
QUOTE Thanks

Post Reply New Thread Subscribe

« Issue with Adium (PHOTO) | Cyberduck is pwning me :( »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
MAC G5 interface with dell screen - please help!!!! Intravenusdemil OS X - Operating System 2 09-13-2009 06:44 AM
Macbook won't start up - blank screen tigerlilykiss Apple Notebooks 5 07-15-2007 09:32 PM
MacBook Pro 15" LED screen - opinions wanted unlokia Apple Notebooks 7 07-10-2007 07:46 PM
Problem with Parallels-Can't see Whole Screen markw10 Running Windows (or anything else) on your Mac 4 11-21-2006 10:29 PM
Blank Screen Imac freddymac Apple Desktops 0 06-18-2005 12:51 AM

All times are GMT -4. The time now is 06:30 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?