C/C++ Coding challenges

maxXxa

Member
Apr 14, 2010
341
5
0
Code:
#include<iostream>
using namespace std;

int main(){

int x;
Begin:
cout<<"\n\nEnter a No : ";
cin>>x;

cout<<endl<<x<<endl;

int i,j,k,m;

for(i=x;i>0;i--){
    for(j=1;j<x;j++){

        if((i+j)==x)
        {
        cout<<i<<" "<<j<<endl;

        [B]for(k=2;k<j;k++){[/B]
        [B]for(m=j;m>0;m--){[/B]
        if((k+m)==j)
        cout<<i<<" "<<k<<" "<<m<<endl;
        }
        }

        if(j>1){
        cout<<i<<" ";
        for(k=0;k<j;k++) cout<<"1 ";
        cout<<endl; }

        }

    }
}

goto Begin;

}
Onna machan 1veni gaana nam hari..:D:D:yes::yes:

second ekatath try ekak dennam...elazzzz :yes::yes::yes:

ayya meke for(k=2;k<j;k++){
for(m=j;m>0;m--){
lines 2kin wenne mokakda....:)
 
Last edited:

cyber22118

Member
Jan 30, 2010
3,569
99
0
Not Far From U
write a program to identify and select a face in a video sequance from ur web cam.(face recognition). use openCV and C++.. ok start coding... i'll post my code after 4 days...
 
Last edited:

dmudhitha

Active member
  • Jan 9, 2009
    658
    49
    28
    අපිට c ඉගෙන ගන්න හොඩ e books නෑඩ්ඩ්.හෑබෑය තෙරුම් ගන්න ලෙසි එවා.
     

    DURApix

    Well-known member
  • Aug 1, 2010
    1,259
    192
    63
    /dev/null
    write a program to identify and select a face in a video sequance from ur web cam.(face recognition). use openCV and C++.. ok start coding... i'll post my code after 4 days...


    machan better if you can post programmable ideas ban..this is too difficult banz.....:no::no: :no:

    anyway i respect your coorp. you frequently put new ideas on the board..elazzz
    11.gif
    1.gif
     

    madurax86

    Member
    Jun 29, 2006
    4,385
    88
    0
    apoz..:shocked: mama Python poddakwath karala nane...:(:(:(

    there's another good language called Haskell. People don't know much about these languages because companies aren't spreading them or having exams for them, but those languages are very good when compared to commercial ones.
     

    Enigma_1

    Junior member
  • Feb 5, 2008
    70
    3
    8
    Colombo
    wooo the world is moving on. So is this thread. I couldn't post any thing new coz I'm stuck with my office work. thank you all for keeping this thread live. ela ela elaaaaaa :yes::yes::yes::yes::yes::yes::yes::yes::yes::yes:.
     

    cyber22118

    Member
    Jan 30, 2010
    3,569
    99
    0
    Not Far From U
    machan better if you can post programmable ideas ban..this is too difficult banz.....:no::no: :no:

    anyway i respect your coorp. you frequently put new ideas on the board..elazzz
    11.gif
    1.gif
    these are real world problems.. .. try this.. its really cool.. I saw a girl in Moratuwa campus did this for exhibition.. I will pst my code after few day..
     

    hasiwebmail

    Member
    Feb 27, 2007
    501
    52
    0
    Sri Lanka
    Mata kauru hari me program eke coding eka denawada... Home work karanne ne arawa mewa kiyala baninna nam epa. Code eka post karanna. Vs 2005 walin tibunot hodai.....




    Create an application in VB / VB.NET to display a list of subjects allotted in MBA / MCA program offered by Colombo University. Select the subject from the list whose first letter matches with the character entered in a textbox.

    Mekata database ekak use karanne ne. VB ekema denna tiyanne


    Loku udauwak

    C/C++ eke post karata sorry :(
     

    DURApix

    Well-known member
  • Aug 1, 2010
    1,259
    192
    63
    /dev/null
    Mata kauru hari me program eke coding eka denawada... Home work karanne ne arawa mewa kiyala baninna nam epa. Code eka post karanna. Vs 2005 walin tibunot hodai.....




    Create an application in VB / VB.NET to display a list of subjects allotted in MBA / MCA program offered by Colombo University. Select the subject from the list whose first letter matches with the character entered in a textbox.

    Mekata database ekak use karanne ne. VB ekema denna tiyanne


    Loku udauwak

    C/C++ eke post karata sorry :(


    aiiiooo mchn VB 6 walin nam oka gemak na..
    eth ban dan owa mata hadanna kammali ban...:eek:

    try to find similar example from this site...
    deffa ull find >> www.a1vbcode.com

    I think Admin of this thread (Engima's) intention is to help solving algorithm kind of C++ programs. Not like these kinds of GUI programs..If i am right
    3.gif


    anyway elazzz mchn...........

    Spending very very boring days.....
    2.gif

    pls anyone post a problem to solve.....
    11.gif

    elazzzzzz:lol:
     

    hasiwebmail

    Member
    Feb 27, 2007
    501
    52
    0
    Sri Lanka
    aiiiooo mchn VB 6 walin nam oka gemak na..
    eth ban dan owa mata hadanna kammali ban...:eek:

    try to find similar example from this site...
    deffa ull find >> www.a1vbcode.com

    I think Admin of this thread (Engima's) intention is to help solving algorithm kind of C++ programs. Not like these kinds of GUI programs..If i am right
    3.gif


    anyway elazzz mchn...........

    Spending very very boring days.....
    2.gif

    pls anyone post a problem to solve.....
    11.gif

    elazzzzzz:lol:


    Hoyanna taran time ne bun. Mata eka letter ekakin Listbox ekaka tiyana string ekak search karanna widiya witarak kiyapan puluwan nam. VB wala eka mama karanna danne
     

    DURApix

    Well-known member
  • Aug 1, 2010
    1,259
    192
    63
    /dev/null
    Hoyanna taran time ne bun. Mata eka letter ekakin Listbox ekaka tiyana string ekak search karanna widiya witarak kiyapan puluwan nam. VB wala eka mama karanna danne

    mchn try this VB code. I think this is what u r expecting to do. elazz:nerd:
     

    Attachments

    • Autocomplete by R2kDJ.zip
      24.1 KB · Views: 152

    isurucs

    Member
    Oct 31, 2007
    18
    1
    0
    Wow.......................
    Day eka hoyana algo ekanam maxaaaaaaaa. Thanks a lot for sharing this.
    Oya wage thawa thiyenawanam pleaaaase danna.
    Thanks again....!!!!!!!!!!