|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
void specs()
EXEC SQL BEGIN DECLARE SECTION;
char manf[30], SQLSTATE[6];
char type[15];
int model, speed, ram, hd, price, screen;
boolean color,
int tempModel, tempSpeed, tempRam, tempHD,tempPrice,tempScreen;
EXEC SQL END DECLARE SECTION;
EXEC SQL DECLARE pCursor CURSOR FOR
SELECT model, type FROM Product;
EXEC SQL OPEN pCursor;
manf = reader.readChar() // read manufacturer from the user and store in manf
EXEC SQL FETCH FROM pCursor INTO : model, : type;
//if Product is empty there's no answer and we should exit
while(1) {
EXEC SQL FETCH pcCursor INTO: tempModel, : tempType;
if(type == PC){
|
Advertisement
| Hall of Fame |