proj.c File Reference
This program is to act like a client for writing exam.
More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <mysql/mysql.h>
#include <gtk/gtk.h>
#include <unistd.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
Go to the source code of this file.
|
Defines |
#define | BUFFER 4096 |
Functions |
void | print_result1 (GtkWidget *widget1, gpointer data) |
| This method is used to show dialogue boxes containing questions.
|
void | button_toggled1 (GtkWidget *widget1, gpointer data) |
void | button_toggled2 (GtkWidget *widget1, gpointer data) |
void | button_toggled3 (GtkWidget *widget1, gpointer data) |
void | button_toggled4 (GtkWidget *widget1, gpointer data) |
void | end_program (GtkWidget *widget1, gpointer data) |
| This is where program acts like a client.
|
void | display_row () |
| This is used to display rows of tables.
|
int | main (int argc, char *argv[]) |
| This is where program starts.
|
Variables |
int | argc1 |
char * | argv1 [] |
int | ans [10] = {3,1,2,4,1,4,2,1,3,3} |
int | ans_given [5] = {0,0,0,0,0} |
int | marks = 0 |
char | r [100][200] |
int | rind = 0 |
MYSQL_ROW | sqlrow |
MYSQL * | connection1 |
MYSQL_RES * | res |
GtkWidget * | radio1 |
GtkWidget * | radio2 |
GtkWidget * | radio3 |
GtkWidget * | radio4 |
GtkWidget * | window |
GtkWidget * | button |
GtkWidget * | box1 |
GtkWidget * | q1 |
int | option1 [10] = {1,1,1,1,1,1,1,1,1,1} |
int | i = 0 |
int | p = 0 |
Detailed Description
This program is to act like a client for writing exam.
- Author:
- Raghavendar and chandan
- Version:
- 1.0
Definition in file proj.c.
Define Documentation
Function Documentation
void button_toggled1 |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
void button_toggled2 |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
void button_toggled3 |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
void button_toggled4 |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
void end_program |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
This is where program starts.
- Parameters:
-
| argc | Number of arguments passed to program |
| argv | Array of arugments passed to program |
- Returns:
- 0 if program exits properly, number otherwise.
Definition at line 66 of file proj.c.
References argc1, argv1, box1, button, button_toggled1(), button_toggled2(), button_toggled3(), button_toggled4(), connection1, display_row(), p, print_result1(), q1, r, radio1, radio2, radio3, radio4, res, sqlrow, and window.
void print_result1 |
( |
GtkWidget * |
widget1, |
|
|
gpointer |
data | |
|
) |
| | |
This method is used to show dialogue boxes containing questions.
Definition at line 294 of file proj.c.
References ans, box1, button, button_toggled1(), button_toggled2(), button_toggled3(), button_toggled4(), end_program(), i, marks, option1, p, q1, r, radio1, radio2, radio3, radio4, and window.
Referenced by main().
Variable Documentation
int ans[10] = {3,1,2,4,1,4,2,1,3,3} |
int option1[10] = {1,1,1,1,1,1,1,1,1,1} |