Beispiel #1
0
void DisplayWindow::BuildConnections()
{
	connect(m_qpbLike, SIGNAL(clicked()), this, SLOT(likeIt()));
	connect(m_qpbComment, SIGNAL(clicked()), this, SLOT(toComment()));
	connect(m_qpbForward, SIGNAL(clicked()), this, SLOT(forwardIt()));
	connect(m_qpbUser, SIGNAL(clicked()), this, SLOT(toProfile()));
}
Beispiel #2
0
int main(int argc, const char * argv[])
{
    char* datos = "Hola q ace";
    forwardIt(datos,sizeof(char),10,&imprimeChar);
    printf("\n");
    prevIt(datos,sizeof(char),10,&imprimeChar);
    printf("\n");

    Libro* libros = (Libro*) malloc(3*sizeof(Libro));
    libros->titulo = "hOLI";
    (libros+1)->titulo = "hOLI2";
    (libros+2)->titulo = "hOLI3";
    bidIt(datos,sizeof(Libro),3,&imprimeLibro);
}