Register and join over 40,000 other developers!
Recent Topics
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
-
Job Gig PHP Form Needed
PJohnson - Apr 18 2019 03:55 AM
-
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
-
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

9 replies to this topic
#1
Posted 31 July 2012 - 03:11 AM
hey guys i m new to this forum...... i m facing a problem when i run a simple programe of C++ ""HELLO WORLD""
the result window. plz HLEP...
the result window. plz HLEP...
#2
Posted 31 July 2012 - 07:25 AM
What is your code? What exactly is the issue?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
#3
Posted 08 August 2012 - 02:28 AM
printf("Hello world");
?
?
#4
Posted 15 August 2012 - 06:21 AM
or std::cout << "Hello world" << std::endl; ?
#5
Posted 16 August 2012 - 08:39 PM
Lemme guess, the window pops up then disappears too quickly to see. You could add std::cin >> x; to just let it stay open expecting input, run without debugging if using visual studio, or set a break point and run it, and various other ways.
#6
Posted 20 August 2012 - 11:13 AM
Or run it from the terminal.
sudo rm -rf / && echo $'Sanitize your inputs!'
#7
Posted 22 August 2012 - 07:57 AM
Why are using
In C++ you would do it like this:
printf("HELLO WORLD");that is a code for the language C not C++
In C++ you would do it like this:
cout<<"HELLO WORLD";
#8
Posted 22 August 2012 - 09:31 AM
Why can't you use it in c++ ?Why are using
that is a code for the language C not C++
In C++ you would do it like this:
[neil@crunchbang ~/chceck/cb]$ vi printf.cpp
[neil@crunchbang ~/chceck/cb]$ g++ -o a.out printf.cpp
[neil@crunchbang ~/chceck/cb]$ ./a.out
Are you sure we can't use it in c++?
[neil@crunchbang ~/chceck/cb]$
here's the code
#include <stdio.h> int main() { printf ("Are you sure we can't use it in c++?\n"); return 0; }
C++ is an extension of C. Do not forget that.
#9
Posted 30 August 2012 - 05:36 AM
Just to put some fuel on the fire, the reason to use printf instead of cout is that printf is actually faster. Not by much, but it is.
Plus I'm guessing this thread is solved... Anyone feel like closing it?
Plus I'm guessing this thread is solved... Anyone feel like closing it?
No harm was done to the world in sending this message, but a few million electrons have been SERIOUSLY inconvenienced...
#10
Posted 30 August 2012 - 12:38 PM
This topic has been marked as SOLVED. If you have a similar question or topic, you can go back to the subforum and start a new topic to continue discussions.
sudo rm -rf / && echo $'Sanitize your inputs!'
Also tagged with one or more of these keywords: hello world
Language Forums →
Java →
A simple hello world programStarted by FaizalRahman, 18 May 2013 ![]() |
|
![]() |
||
Tutorial Forums →
C/C++ Tutorials →
C for Beginner -- part2 : How to Write a Hello World Program in C LanguageStarted by kernelcoder, 26 Feb 2013 ![]() |
|
![]() |
||
General Forums →
The Lounge →
Introductions →
Hello CodeCallStarted by xxsalami, 20 Feb 2013 ![]() |
|
![]() |
||
Tutorial Forums →
HTML, CSS and Javascript Tutorials →
The Node.js -- Part1: The BasicStarted by kernelcoder, 03 Feb 2013 ![]() |
|
![]() |
||
General Forums →
The Lounge →
Introductions →
Hello WorldStarted by mailman0912, 29 Jul 2012 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download