root > Coding Blog, Programming, Scala, Software Developer, Finland

linux, ubuntu, software, helsinki


  • Home

  • Categories

  • Archives

  • Tags

  • Search

A Mini Course on T rees, Automata and XML

Posted on 2014-03-09

A Mini Course on T rees, Automata and XML

Read more »

useful command sudo

Posted on 2014-03-05

sudo dergisinde bugün rastladığım güzel bir komut ^^

Read more »

c# windowsform

Posted on 2014-03-05

c# windowsform

Read more »

csharp beginner

Posted on 2014-02-19

csharp beginner

```c++ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

Read more »

how to root tablet android 4.1

Posted on 2014-02-01

Go to settings > developer options > there you can see Super user setting click on that and select the option always allow. Then install SuperSU from Google play store and let the supersu’s binary update then you are rooted. Then open supersu and go to setting and scroll down to the option access > and set Default access to GRANT. Then you will have full root access, if you forget to give always allow and grant then your application which needs root will hang. Do not give prompt as option always allow and Grant will do..

Read more »

Why does my program go into an infinite loop when someone enters an invalid input character?

Posted on 2014-01-10

Why does my program go into an infinite loop when someone enters an invalid input character?

```c++ #include using namespace std; void mainMenu() { int ch; cout<<"Main Menu"<<endl; cout<<"1. Customer"<<endl; cout<<"2. Item"<<endl; cout<<"3. Shopping"<<endl; cout<<"4. Quit"<<endl; cout<<"Choose one: "<<endl; cin>>ch; while( cin.fail() ) { cout << "Bad input, try again." << std::endl; // Reset the stream. cin.clear(); cin.ignore(std::numeric_limits::max(),''\n''); cin>>ch; } // until you enter integer value you will //try to input new value

Read more »

lists with pointer // abstract classes

Posted on 2014-01-03

lists with pointer // abstract classes

```c++ #include #include using namespace std; class Shape { public: Shape(int a,int b):x(a),y(b) {} virtual void display()=0; virtual void printArea()=0; protected: int x; int y; };

Read more »

aggregation //how difficult to say =D

Posted on 2014-01-02

aggregation //how difficult to say =D

```c++ #include #include using namespace std;

Read more »

how to use lists with abstract class

Posted on 2014-01-02

how to use lists with abstract class

```c++ #include #include using namespace std;

Read more »

output 3 virtuality

Posted on 2014-01-01

output 3 virtuality

#include<iostream>
using namespace std;
class BC{
public:
void show_class(){
show1();
show2();
}
private:
void show1(){
cout << "#1 BC\n";
}
virtual void show2(){
cout << "#2 BC\n";
}
};
class DC : public BC{
private:
void show1(){
cout << "#1 DC\n";
}
virtual void show2(){
cout << "#2 DC\n";
}
};
class DDC : public DC{
private:
void show1(){
cout << "#1 DDC\n";
}
virtual void show2(){
cout << "#2 DDC\n";
}
};
int main()
{
BC b;
b.show_class(); // #1 BC, #2 BC 
cout << endl;
DC d;
d.show_class(); // #1 BC , #2 DC
cout << endl;
DDC dd;
dd.show_class(); // #1 BC , #2 DDC 
cout << endl;   // show_class is in BC class, so it shows its show1() function because of no virtuality
return 0;
}
Read more »
1 … 16 17 18 … 21
teaddict

teaddict

203 posts
32 categories
640 tags
RSS
GitHub
© 2019 teaddict