Qt: hellotr

June 5th, 2011 by producer

IDE file:///home/ubuntu/Documents/2011-II/hellotr/hellotr
ubuntu@ubuntu:~/Documents/2011-II/hellotr$ qmake -project
qmake hellotr.pro
make
./hellotr
page 23 tutorial book “C++ GUI Programming with Qt 4″

http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip

http://blog.hartwork.org/?p=156

inheritance

June 16th, 2009 by producer

inheritance – just read this section again

reading qt hand book page 472

April 30th, 2009 by producer

reading qt hand book page 472
ubuntu@ubuntu-desktop:~/200904$ g++ -c main.cpp
>> created main.o
ubuntu@ubuntu-desktop:~/200904$ g++ -c square.cpp
>> created square.o

ld main.o square.o -o square

>> failed, possible that ld is a windows command?

control structures

April 5th, 2009 by producer

pointers, control structures

Node 01: pointers

April 1st, 2009 by producer

Node 01: pointers
online c++ tutorial

Node 02: Classes I – read again, have to continue with “example on constructors and destructors”

reading namespaces again

March 28th, 2009 by producer

reading namespaces again

legpress

March 24th, 2009 by producer

char legpress;
char * adduction;
char ** abduction;
legpress = ‘l’;
adduction = &legpress // 06
abduction = &adduction // 07

// legpress    adduction    abduction
// ‘l’        06        07
// 06        07        08

pointer press

March 24th, 2009 by producer

// experimenting with weight pointer and myslot
#include <iostream>
using namespace std;

int main ()
{
int firstweight, secondweight; // all weights are integer values
int * mymachine; // you can select just integer weights
int * press; // 01 has a pointer
int sentenceone;

press = &sentenceone;
*press = 50;
mymachine = &firstweight; // the address of firstweight is 14
*mymachine = 55; // 55 is the value of the weight that the pointer of mymachine points to
mymachine = &secondweight; // the address of the secondweight is 14, too
*mymachine = 70; // 70 is the value of the weight that the selector points to
cout << “sentence one of the press is ” << sentenceone << endl;
cout << “firstweight is ” << firstweight << endl;
cout << “secondweight is ” << secondweight << endl;
return 0;
}

Multidimensional arrays

March 15th, 2009 by producer

What are multidimensional arrays?
Is the final null character added automatically? char greeting[] = "Hello, "; – when compiling an running the program, I get the impression that this isn’t the case. Or I misunderstood something, I think. is different from \n – that’s it. But what is the null character good for?

What is the reference operator (&)?

What is the dereference operator?

What is an assignment operation? Can you give an example?

What is a pointer?

experimenting with a function

March 14th, 2009 by producer

Currently, I am experimenting with this function.

// return of two values
#include
using namespace std;

void previousnext (int x, int& previous, int& next)
{
previous = x-1;
next = x+1;
}

int main ()
{
int x=150, y, z;
previousnext (x, y, z);
cout << “The previous value is ” << y << “, and the next value is ” << z <<”.\n”;
return 0;
}

You may want to read some explanation how it works.