elektro

Well-known member
  • Apr 18, 2011
    6,884
    9,413
    113
    Tropical Island Of Sri Lanka

    කට්ටිය කොහොමද :rolleyes: මට පොඩි හෙල්ප් එකක් ඕනේ.. C++ ඉගෙනගන්න හොද විඩියෝ ටියුටොරියල් ටිකක් suggest කරන්නකො :rofl: OOP , Programming concepts ඔලුවෙ තියෙනවා..
    C++ ඉගෙනගන්න හොදම විඩියෝ ටියුට් ටිකක් (english ඒවා) ඕනේ..ටොරන්ට් ලින්ක් තියෙයිනම් ඒවාත් දාන්න (අත්දැකීම් තියෙන අයගෙන් අනිවා සප් එක ඕන:P )


     

    LalaJ

    Well-known member
  • Nov 29, 2012
    5,472
    1,033
    113
    KANDY
    bump...

    danna kenek

    a
    ab
    abc
    abcd

    ohoma Nested for loops walin print karana widiha kiyandakoO
     

    elektro

    Well-known member
  • Apr 18, 2011
    6,884
    9,413
    113
    Tropical Island Of Sri Lanka
    man nam follow kare me Videos tika machan...
    matanam hodata theruna..try krala balanda

    http://www.youtube.com/watch?v=S3t-5UtvDN0


    විඩියෝ ටිකයි නේද මචෝ ඒකේ :( මට ඔක්කොම කන්සෙප්ට් අහුවෙන එකක් ඕන..ටොරන්ට් එකක් වගේ නම් හොදයි :rofl:
     

    LalaJ

    Well-known member
  • Nov 29, 2012
    5,472
    1,033
    113
    KANDY
    Code:
    #include <iostream>
    
    using namespace std;
    
    void main(){
       for(int i=1; i<=4; i++){
            for(int j=1; j<=i; j++){
                cout << j;
            }
        cout << endl;
       }
    }

    meken idea ekak ganin :dull:

    thanks ban,, eth numeric aulak na..:nerd:
    aplphabetical ewa print karanda thamai danne naththe :(
     

    Jecob Boman

    Well-known member
  • Dec 10, 2013
    1,333
    93
    48
    homagama
    bump...

    danna kenek

    a
    ab
    abc
    abcd

    ohoma Nested for loops walin print karana widiha kiyandakoO

    ඔන්න PHP වලින්. ඕක C++ වලින් ගහගනින්. :P


    PHP:
    <?php
    $letters = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
    
    for($i = 0; $i<=25; $i++){
    
        for($v = 0; $v<=$i; $v++){
            echo $letters[$i];
        }
        echo '<br>';
    }
    ?>
     
    • Like
    Reactions: LalaJ

    rooshan2008

    Well-known member
  • Apr 16, 2008
    5,896
    1,271
    113
    CALL 0x754EA

    කට්ටිය කොහොමද :rolleyes: මට පොඩි හෙල්ප් එකක් ඕනේ.. C++ ඉගෙනගන්න හොද විඩියෝ ටියුටොරියල් ටිකක් suggest කරන්නකො :rofl: OOP , Programming concepts ඔලුවෙ තියෙනවා..
    C++ ඉගෙනගන්න හොදම විඩියෝ ටියුට් ටිකක් (english ඒවා) ඕනේ..ටොරන්ට් ලින්ක් තියෙයිනම් ඒවාත් දාන්න (අත්දැකීම් තියෙන අයගෙන් අනිවා සප් එක ඕන:P )



    mamanam igena gathe lectures NOgihilla :P notes tika balala :P eath ewa den koheda thiyalawath man danne ne !! first year thibbe :nerd:
     

    counter dr

    Member
    Dec 23, 2011
    1,993
    142
    0
    thanx mcho..english ekak beluwe mcho..thanx anyway :)
    ඇයි මචෝ උබට සිංහල තේරෙන්නැද්ද:D English හොයන්නෙ:P??
    මේකත් බලහන් Eng 1k

    http://kickass.to/live-lessons-c-plus-plus-c-fundamentals-i-and-ii-dvd-psiclone-t7248301.html#main

    PHP:
    C++ Fundamentals I and II LiveLessons is for professional software  developers who are not familiar with C++ and object-oriented  programming. This LiveLesson contains over 18 hours of expert video  instruction, spread out over 16 separate lessons. Watch as distinguished  programming languages author and professional teacher Paul Deitel uses  the Deitel’s signature live-code approach to introduce C++ fundamentals,  and object-oriented and event-driven programming. The Deitel’s early  classes and objects approach immerses you in object-oriented programming  from the start. All concepts are presented in the context of  complete-working programs using Microsoft’s Visual C++ Express version  of its Visual Studio tool.
     

    Jecob Boman

    Well-known member
  • Dec 10, 2013
    1,333
    93
    48
    homagama
    in C, I dunno c++ :no:

    Code:
    #include <stdio.h>
    
    int main(){
        char letters[27] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','\0'};
        int i,v;
        for(i = 0; i<=25; i++)
        {
            for(v = 0; v<=i; v++)
            {
                printf("%c",letters[i]);
            }
            printf("\n");
        }
        return 0;
    }