Skip to main content

Learn c++ in Tamil | Chapter 2 - Next Level | Beginner to Advance all concepts explained.






/*// my first program
#include <iostream>
#include <string>

int main()
{
  std::string name;
  int age;
  int mark1;
  int mark2;
  int mark3;

  std::cout << "What is your name? ";
  std::cin>>name;

  std::cout<<"\n"<< "What is your age? ";
  std::cin>>age;

  std::cout<<"\n"<< "what is mark1? ";
  std::cin>>mark1;


  std::cout<<"\n"<< "what is mark2? ";
  std::cin>>mark2;

  std::cout<<"\n"<< "what is mark3? ";
  std::cin>>mark3;

  std::cout<<"\n"<<"name : " << name;
  std::cout<<"\n"<<"age : "<< age;
  std::cout<<"\n"<<"mark1 : "<< mark1;
  std::cout<<"\n"<<"mark2 : "<< mark2;
  std::cout<<"\n"<<"mark3 : "<< mark3;
  std::cout<<"\n"<<"total mark : "<< mark1+mark2+mark3 ;
  return 0;
}



function - reuse

pre defined
user defined

scope , life time

preprcoessor
#


 */







#include <iostream>
#include <string>
#include "calculator.h"
#define NAME "vimal"

int add(int a , int b ,int c);

int main()
{
    std::cout << "Hi guys welcome to TamilHacks\n";
    add(5,5,1);  //arguments
    add(2,8,2);
    add(22,10,10);
    std::cout<<NAME;
    int a = 0;
    return 0;
}

int add(int a , int b , int c) // paramerts
{
   // int a =6 ; int b =1 ;
   std::cout<<a+b-c<<"\n";
    return 0;
 
}


calculator.h
#include<iostream>

add();
sub();


//DRY = dont repeat yourself





Comments

  1. #include
    #include
    #define AGE "18"
    using namespace std;

    int mult(int a,int b);
    int sub(int x,int y);

    int main()
    {
    mult(30,30);//agruments
    sub(15,5);
    std::cout<<AGE;
    int b=0;//scope

    return 0;
    }
    int sub(int x,int y)
    {
    std::cout<<x-y<<"\n";
    return 0;
    }

    int mult(int a,int b)//parameter
    {
    std::cout<<a*b<<"\n";
    return 0;
    }
    //my Name Kaviyarasan

    ReplyDelete
  2. #include
    #include
    #define AGE "18"
    using namespace std;
    int mult(int a,int b);
    int sub(int x,int y);
    int Hed();
    int main()
    {
    Hed();
    mult(30,30);//agruments
    sub(15,5);
    std::cout<>name;
    std::cin>>pho;
    return 0;
    }

    ReplyDelete
  3. #include
    #include
    #define AGE "18"
    using namespace std;
    int mult(int a,int b);
    int sub(int x,int y);
    int Hed();
    int main()
    {
    Hed();
    mult(30,30);//agruments
    sub(15,5);
    std::cout<>name;
    std::cin>>pho;
    return 0;
    }

    ReplyDelete
  4. #include
    #include

    int getdata()
    {
    std::string name;
    int age;
    int birthday;
    std::cout<<"what is your name and age and birthday ?";
    std::cin>>name>>age>>birthday;
    std::cout<<"Hi,"<<name<<"\n";
    return 0;
    }

    int main()
    {
    std::cout<<"Hi guys i am joker \n" ;
    getdata();
    getdata();

    return 0;
    }

    ReplyDelete
  5. #include
    #include
    #include"calculator. h"//nenga use panna file
    int define CLOSE "thanking"
    int add(int a, int b)//arrgument
    int main ()
    {
    Std:: cout<<"hello sir this is my second program unga video ellam super. Next video eppo" <<"\n" ;
    Std:: cout<<"my name is kasi";
    add(220,456)
    add(456,678)
    std::cout<<"total is:" <<add "\n" ;
    Std::cout<<CLOSE;
    return 0

    }
    {
    int add(int a, int b)
    Std::cout<<a+b"\n"
    return 0
    }

    ReplyDelete
  6. Using function
    #include
    #include

    int form()
    {
    Std::string name;
    int age;
    Int adarr number;
    Int apply date;
    Int mobie number;
    std:: cout << "your name" <<"\n" ;
    std::cin>>name;
    std:: cout << "your age" <<"\n" ;
    std::cin>>age;
    std:: cout << "your adarr number" <<"\n" ;
    std::cin>>adarr number;
    std:: cout << "date" <<"\n" ;
    std::cin>>apply date;
    std:: cout << "your phone number" <<"\n" ;
    std::cin>>mobile number;
    }
    Int end()
    {
    std:: cout<<"HI mr." name". Your age is"age". Your applicant date is"apply date". Your mobile number is "mobile number" done. You will wait for the message. Thanks. "
    }
    Int main()
    {
    std:: cout<<"welcome sir" <<"\n" ;
    form() ;
    end() ;
    form () ;
    end()
    Return 0

    }

    ReplyDelete
  7. can i make an app using cpp please tell bro

    ReplyDelete
  8. python part 3 list paththi sonninga athula
    d=[1,2,3,4]
    print(d[2])
    ippadi program panna output la 3 ans varum idhuda 4 nu ans varunum adhuk ku enna pannanum

    ReplyDelete
  9. #include
    #include
    int main()
    {
    std::string Name;
    int age,Mark1,Mark2,Mark3;
    std::cout<<"Enter Name";
    std::cin>>Name;
    std::cout<<"Enter age";
    std::cin>>age;
    std::cout<<"\n"<<"Enter Mark1,Mark2,Mark3";
    std::cin>>Mark1>>Mark2>>Mark3; "\n";
    std::cout<<"total "<<Mark1+Mark2+Mark3;
    return 0;
    }

    ReplyDelete
  10. #include
    #include
    #include”alarm.h”
    #define ALARM”one”
    float time(float a,float b)
    int main()
    {
    time(1,2);
    time(3,1);
    std::court<<ALARM;
    return 0;
    }
    float time(float a,float b)
    {
    std::court<<“a,b<<\n”;
    return;
    }

    ReplyDelete
  11. userlib.h
    mul(int d,int b)
    {

    return d+b;
    }

    #include
    #include"userlib.h"
    #define nam "AREA OF RECTANGLE"

    int area(int l, int h)
    {
    std::cout<<l*h<<"\n";
    return l*h;
    }
    int main()
    {
    std::cout<<nam<<"\n";
    int l,h;
    area(6,5);
    std::cout<<"addition of two nos is"<<"\n";
    std::cout<<mul(4,5);
    return 0;
    }

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. #include
    #include
    #include"my library.h"

    int function ()
    {
    std::string name;
    int age;

    std::cout <<"what is your name"<<"\n";
    std::cin>>name;

    std::cout<< "what is your age"<<"\n";
    std::cin>>age;

    std::cout<< "name -"<

    int add(int a, int b)
    {
    return a+b;
    }

    ReplyDelete

Post a Comment

Popular posts from this blog

Get Ethical Hacking Project #1

Thanks for your interest in our course This is a paid course, 150 rs for Indian people, 5$ for international people Instructions to get course: Indian people can get the course by paying using this UPI id   tamilhacks@ybl  (KARTHIKEYAN T) send 150 Rs to this upi id with subject bug bounty and after payment take a screenshot and send that to email id tamilhackstech@gmail.com - you will get the course within 24 hours. (there will be no tax, when paying using upi id)     The above mentioned method is most preferable. if you don't have a upi id app, install  phonepe  or  google pay   app and register there and pay easily  or  pay here using the alternate method to get this course, this link cost 18% gst for the course . (nearly 30-100 Rs for tax and other charges here )   After payment you will receive a payment confirmation mail along with a downlink for the course, you can download the course file using that . the course is in zip format, so after downloading the file extra

Learn c++ in Tamil | Complete guide and tutorial | Beginner to Advance all concepts explained.

hi guys welcome , all the coding used in video are available here : /* hi guys welcome to learn c++ in tamil what is C++ how what software your own program schools,clg,institute.... start 1.interest 2.patience 3.fun 4.practise computer program - app - programming source code - hardware - fb running , executing machine language :  101010 assembly lang : mov h1; high lang : c , c++....java , js , python  eg :  a+b .....1001010  compiler :  human to machine              machine to human  rules :  a+b;  usage:  games, manufacturing , embedded , finance , graphics , etc...  Guide: 1.problem 2.solution - alternative 3.program  - C++ 4.compile  - turboc , ide , codeblocks , cmd 5.result   - library file - linker : #include<iostream.h>    input , output std::cout<<"welcome";   standard character out << " "; primary section : 1.statements   ;  end 2.functions   main() 3.syntax  , syntax error pra

Get Bug Bounty Course

Thanks for your interest in our course Limited Offer This is a paid course, Rs 10000 ,Rs 1000  for Indian people, 75$ 15$ for international people , 50$ 10$ for Srilankan people Instructions to get course: Indian people can get the course by paying using this UPI id  tamilhacks@ybl  send 1000 Rs to this upi id with subject bug bounty and after payment take a screenshot and send that to email id tamilhackstech@gmail.com - you will get the course within 24 hours. (there will be no tax, when paying using upi id)    The above mentioned method is most preferable. if you don't have a upi id app, install phonepe or google pay   app and register there and pay easily  or  pay here using the alternate method to get this course, this link cost 18% gst for the course . (nearly 30-100Rs for tax and other charges here ) After payment you will receive a payment confirmation mail along with a downlink for the course, you can download the course file using that. As for international peopl