Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Yesterday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
C + + උදව්වක්
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="sanzilla jackcat" data-source="post: 12104706" data-attributes="member: 131221"><p>machan </p><p>[code]</p><p>#include <iostream></p><p>[/code]</p><p></p><p>this means you are including the header file of the iostream library.</p><p>so you can use std::cin and std::cout objects. There are other libraries too</p><p>you could include their header files when you using them.</p><p></p><p>[code]</p><p>#include <unistd.h> // this is a unix header file //</p><p>#include <stdio.h> // this is the old "C" library. In C++ also you'll need this</p><p>#include <glut.h> // when doing OpenGL programming you will need this.</p><p></p><p>// and more</p><p></p><p>[/code]</p><p></p><p>what a header file does is it have a extern declarations to some functions </p><p>or variables. It's just a declaration not a definition. The definition is at a </p><p>binary file [ we call these libraries ,more specifically static libraries].</p><p></p><p></p><p>And about the main thing , yes it should be keep on your mind.</p><p></p><p>There is something called C++ standard. You could have these following two</p><p>forms of the main method.</p><p></p><p>[code]</p><p></p><p>int main(void);</p><p></p><p>int main( int argc, char **argv);</p><p>[/code]</p><p></p><p>and C++ standard also tells that you can't overload or re-declare </p><p>or use both at once. It's not like the first case , because it's specified</p><p>in the C++ specification.</p><p></p><p></p><p>If not clear , feel free to ask again. </p><p></p><p></p><p>--thanks in advance--</p></blockquote><p></p>
[QUOTE="sanzilla jackcat, post: 12104706, member: 131221"] machan [code] #include <iostream> [/code] this means you are including the header file of the iostream library. so you can use std::cin and std::cout objects. There are other libraries too you could include their header files when you using them. [code] #include <unistd.h> // this is a unix header file // #include <stdio.h> // this is the old "C" library. In C++ also you'll need this #include <glut.h> // when doing OpenGL programming you will need this. // and more [/code] what a header file does is it have a extern declarations to some functions or variables. It's just a declaration not a definition. The definition is at a binary file [ we call these libraries ,more specifically static libraries]. And about the main thing , yes it should be keep on your mind. There is something called C++ standard. You could have these following two forms of the main method. [code] int main(void); int main( int argc, char **argv); [/code] and C++ standard also tells that you can't overload or re-declare or use both at once. It's not like the first case , because it's specified in the C++ specification. If not clear , feel free to ask again. --thanks in advance-- [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom