Tags » Cpp

C++ Programming – Access functions and encapsulation

Trong bài trước chúng ta đã được học về các biến trong một class, và các biến này thường bị “private” đi. Và các bạn có biết tại sao mà người ta phải đưa các biến trong class thành private không? 2,393 more words

Lập Trình C/C++

Canada Pension Plan reform to boost assets above $15 trillion by 2090

OTTAWA – The upcoming enrichment of the Canada Pension Plan will help fuel a 48-fold boost to the public fund’s assets over the long haul – to more than $15.8 trillion by 2090, according to federal calculations. 775 more words

Canada

Rising old age security spending curtailed by CPP increases: report

OTTAWA – A mandatory review of the country’s largest seniors benefit program is predicting all-time highs in spending over the coming years with waves of baby boomer retirements – spending levels that could have been even higher if not for changes to the public pension program. 608 more words

Canada

Adding stairs with OpenGL

Alistair poured some wine from the flute into a shallow glass. ‘It’s not a pun. I just prefer a firm escalator. Or an elevator, yes.’ 525 more words

Technology

Pinnacle Club

#include<iostream>
#include<string.h>
using namespace std;
class SLL;
class dnode
{
int div;
int prn;
char name;
dnode *next;
friend SLL;
public:
dnode()
{
next = NULL; 593 more words

Programming

String Operations

#include <iostream>
using namespace std;

class stringop
{

public:
char str;

void operator +(stringop);
void operator =(stringop);
void operator ==(stringop);
void operator *(stringop);
void palindrome(stringop); 450 more words

Programming

Saddle Point

#include<iostream>
using namespace std;
int main()
{
int m[3][3],i,j,index,max=0,min=100,k,sp;
cout<<"Enter a 3*3 matrix";
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cin>>m[i][j];
}
}
cout<<"The entered matrix is:\n";
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<"\t"<<m[i][j];
}
cout<<"\n";
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
if(m[i][j]<min)
{
min=m[i][j];
index=j;
}
}
for(k=0;k<3;k++)
{
if(m[k]>max)
{
max=m[k];
}
}
}
if(min=max)
sp=min;
cout<<"saddle point is"<<sp,k,index;
}
Programming