n = i + j;
x = text[n];
ofstream f("text.txt");
f.write("abcde",5);
f.close();
f.open("text.txt", ofstream::binary | ofstream::out | ofstream::in);
f.seekp(1);
f.write("zxc",3);
id.setDevice(device)
void setDevice(CDevice*);
void infoSystem::setDevice(CDevice *d){
манула нет толкового
ClassName::functionName , а иногда objectName.functionName
#include <iostream>
using namespace std;
class Test
{
public:
static void st() { cout << "static" << endl; }
void nonst() {cout << "non static" << endl; }
};
int main(int argc, char **argv)
{
Test t;
Test::st(); // для статик метода можно так
t.st(); //и так тоже можно
Test::nonst(); // compilation error: так нельзя для не статик метода
t.nonst(); //можно только так
system("pause");
return 0;
}