wow…it seems nice man…really helpful
nice work mate.. repped
Forgive me for my ignorace, but in what respect(practically) it can help me. I see its programming but how can it be helpful to me.Thanks.
Sorry for being pedantic, but your “tutorial” contains so many factual errors and non-standard programming practices that beginners are better off learning C++ the usual and proven way - i.e. using a proper book. I would rather suggest you to learn standard ISO C++ from ground-up than wasting time writing such tutorials.
Beginners looking for a solid C++ tutorial are encouraged to take a look at C++ Language Tutorial and C programming.com - Your Resource for C and C++ Programming.
hey darkey ..even u in 12th naah ??..
actually studyin phy ,chem and maths…i ve got lots of back log of Computer science .both hardware and software..specially c++ programming..
and i need to cover up before ..jan starts…
so wanted to ask is this tutorial ..somewhat according to da 12TH syllabus ??..hmmm anyways i am takin a printout of this..and will use it to study on the go..thanx a lot..
also i found another site for some nice guide and complete c++ programs..
here it is :
http://www.syvum.com/a/cpp/
Hi
hav a little doubt about the header file used for lib functions getch(),clrscr()
do these belong to <conio.h> or as you mentioned <iostream.h>?
Thnks
newboy
getch() and clrscr() are conio.h. They only exist in Turbo C++, so don’t use them if you can avoid it.
Digging this up.. I am jobless after exams.. nice work for beginners..
I found a silly error
cin>>radius;
area=(22rr)/7;
r should be radius or vice versa
and yeah, its better to learn standard C, but these 12th std folks and even ppl in Engineering use Turbo C! so it will take some time for ppl to start writing #include instead of #include<stdio.h>
Surely you mean #include? #include will not work, as stdio.h is a C header… you’d need to include either cstdio or stdio.h
#include works for sure.. do we need to add .h for C headers??
Let me explain how this stuff works.
iostream.h is a C++ header. Traditionally it was included as so “#include <iostream.h>”
Now, when the STL and C++ runtime library were standardized, there had to be a way to support both the new semantics, and the old behavior (present in iostream.h etc). So now, if you want to use the STL and the standard C++ runtime library you say “#include ”; if you explicitly want the old behavior, you say “#include <iostream.h>”. The latter is deprecated, and should not be used in new programs. Note that the standard version (i.e. the non .h version) also introduces namespaces and hence the need to either say “using namespace std;” or prefix stuff like cout with std, thereby saying “std::cout<<”.
stdio.h, on the other hand, is a C header. It has nothing to do with C++. You can say “#include <stdio.h>”, but it is even further from the standard C++ semantics than iostream.h. So, the new header they introduced is cstdio, and you can include it as “#include ”.
There are also cstdlib, cmath and a bunch of other such headers…
& it’s always better practive to use updated (newer ) files… & btw dev c++ is a much better compiler.. but not as good as gcc or g++..
What? Come again?
i don’t know abc of c++ , but can u plz explain where to write these commands, like open a text etc file and start writing or do i need any software, plz pm me, thanks