|
|
Dear All,
I want to use a new gina instead of msgina, I wanna use a fingerprint device for logon, I have to call a method of a dll using the finger print device. I have made all my changes and there is no error. while I call this method, even if I don't use the output of the function the windows logon, the desktop is shown and a moment later this message is shown on a blue screen and the system is shut down.
"STOP: c000021a {Fatal System Error}
The windows logon process system process terminated unexpectedly with a status of 0x0000005 (0x00000000 0x00000000).
The system has been shut down."
Do anyone have an idea?
Thnx in advance.
|
|
|
|
|
I have two lan cards in my Server in such a way that Lan Card a1 is connected to internet and holds Public IP infomration and Lan card a2 is meant for private internal network and holds internal IP information and connects to client machines in my internal network.
In my coding, I want to develop a module that can show me realtime IP addresses and/or computer name of the Client machines that are using internet via server in my internal network
plz reply me on mirtunjay.prodata@gmail.com and mirtunjayteri@gmail.com
|
|
|
|
|
How can this be done ?
Engineering is the effort !
|
|
|
|
|
|
The previous Post and ExtractIconEx is always at your service...
A Second Solution: (b******ized version)
There's always LoadResource(),FindResource()
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Hello,
The question I have doesn't have a single correct answer. But I'm curious about what is a good solution, so I want to know the option of other people. Let's say you store some information about your users. Like name, address, a description of themselves, etc in a struct.
Now you have (at least) 2 options to save this data:
1) Fixed sized array: struct { char name[26]; char description[256]; };
2) Pointer: struct { char *name; char *description; };
Now I'm wondering what the best solution is. A fixed sized array is of course a bit easier, no need to malloc/free. But there will be wasted memory, or even worse, not enough memory to save the data.
Now what I'm really wondering about is the best method to create a struct that uses these pointers. My current idea is: I read a line from the input, save it in a temp char buffer, calculate the length of the string, malloc the space needed and finally copy the string to the malloc'ed memory. Is this a good algorithm? Or are there better/more efficient ways to do this?
NOTE: This is more oriented to standard C, not really C++.
|
|
|
|
|
With C, you don't have the advantages of the more modern string classes, so just
malloc'ing what you need for each string is probably the most memory efficient.
Note this is assuming in-memory storage....if you're referring to persistent storage, like a disk
file, then storing allocated pointers doesn't apply.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a main program that creates some threads, then goes into an event loop. The structure is:
main()
{
CreateThread....
CreateThread.....
while(1)
{
WaitForSingleObject(Main_Event)
.... do some processing....
}
}
I would like to increase the priority of "main" so that when "Main_Event" is sent, the threads suspend while main loop is processing.
Any idea how I can do this?
|
|
|
|
|
The main thread could use SuspendThread() to suspend the other threads when the
Main_Event is signaled.
Another possibly safer design is to make the threads able to stop themselves when
signaled somehow and wait for an event that lets them resume.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How can I programmatically detect the plugin of a USB device or cable? Does anyone know of a sample code to do this?
Any help appreciated.
|
|
|
|
|
|
I am using the following code example (found on code project), but the page returned in page1 is www.codeproject.com/info/search.aspx and not www.codeproject.com/info/search.aspx?artkw=wininet.
<br />
#include "afxinet.h"<br />
<br />
CInternetSession sess;<br />
CHttpConnection* pHttpConnection1 = sess.GetHttpConnection(_T("www.codeproject.com"));<br />
CHttpFile* pFile1 = pHttpConnection1->OpenRequest(_T("POST"), _T("/info/search.aspx"));<br />
CString header1 = _T("Content-Type: application/x-www-form-urlencoded");<br />
CString mdata1 = _T("artkw=wininet");<br />
pFile1->SendRequest(header1, header1.GetLength(), (LPVOID)(LPCTSTR)mdata1, mdata1.GetLength());<br />
DWORD dwRet1;<br />
CString page1;<br />
pFile1->QueryInfoStatusCode(dwRet1);<br />
if (dwRet1 == HTTP_STATUS_OK){<br />
char buf12[999999];<br />
pFile1->Read(buf12, 999999);<br />
page1 = buf12;<br />
}<br />
I found this code here: http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=1603553[^]
What am I doing wrong?
Lucky
|
|
|
|
|
I'm trying to use SHBrowseForFolder() into my application. I don'n know how to retrive the FULL path of the selected folder from the BROWSEINFO structure. Can anybody give me a code example?
In VC++6, please...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
They hid it in the documentation[^]. Bastards!
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Thanks a lot!
I'll try monday at work...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
jhwurmbach wrote: They hid it in the documentation
hey hey now
led mike
|
|
|
|
|
OK, that was a bit harsh.
But simply entering SHBrowseforFolder in MSDN-serach gave anything he wanted.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: that was a bit harsh
No it wasn't. Had you omitted the "bastards", well, that would have been harsh hehe
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: that was a bit harsh
No it wasn't
In fact it was.
He is a newbie that gave a proper problem description in a proper headlined posting in the correct forum. For that, he would have deserved a little fondling.
I hope fondling is correct and without sexual undertones. Like what you do to a cat when you stroke its fur.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: In fact it was.
That's irrelevant ... the key point is to quote led mike correctly...
"They hide that information in the documentation[^]"
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
had to repost sorry!!!
modified on Friday, February 22, 2008 11:45 AM
|
|
|
|
|
|
Taking my first (C++) programming class and I can not get this to execute (if it is even possible) sorry for the long post and messy code, first time please take it easy on me, I am using visual studio 6. Thanks in advance.
Please Help keep getting an error:
fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched
<code></code>
#include <iostream>
#include <cmath>
#include <fstream>
#include <cstdlib>
#include <iomanip>
#include <math.h>
#include <vector>
#define rows 7
#define cols 3
using namespace std;
int num;
int input;
int main()
{
char n[rows][cols];
ifstream indata;
cout << "Guess Your Letter Game!!" << endl;
cout << "Look at a letter write it down on scrap paper!!" << endl;
cout << "Do not choose A or Z." << endl;
indata.open("C:\\Users\\DingleBerry\\Documents\\chart.txt");
indata >> n[0][0] >> n[1][0] >> n[2][0];
indata >> n[3][0] >> n[4][0] >> n[5][0];
indata >> n[6][0] >> n[0][1] >> n[1][1];
indata >> n[2][1] >> n[3][1] >> n[4][1];
indata >> n[5][1] >> n[6][1] >> n[0][2];
indata >> n[1][2] >> n[2][2] >> n[3][2];
indata >> n[4][2] >> n[5][2] >> n[6][2];
cout << endl;
cout << "Row1 Row2 Row3" << endl;
cout << setw(3) << n[0][0] << setw(5) << n[1][0] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[3][0] << setw(5) << n[4][0] << setw(6) << n[5][0] << endl;
cout << setw(3) << n[6][0] << setw(5) << n[0][1] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[2][1] << setw(5) << n[3][1] << setw(6) << n[4][1] << endl;
cout << setw(3) << n[5][1] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[2][2] << setw(6) << n[3][2] << endl;
cout << setw(3) << n[4][2] << setw(5) << n[5][2] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter 1, 2, or 3 : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 1:
cout << "Row4 Row5 Row6" << endl;
cout << setw(3) << n[1][0] << setw(5) << n[4][0] << setw(6) << n[0][1] << endl; //213
cout << setw(3) << n[3][1] << setw(5) << n[6][1] << setw(6) << n[2][2] << endl;
cout << setw(3) << n[5][2] << setw(5) << n[0][0] << setw(6) << n[3][0] << endl;
cout << setw(3) << n[6][0] << setw(5) << n[2][1] << setw(6) << n[5][1] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[4][2] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[1][1] << setw(6) << n[4][1] << endl;
cout << setw(3) << n[0][2] << setw(5) << n[3][2] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter 4, 5, or 6 : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 4:
cout << "Row7 Row8 Row9" << endl;
cout << setw(3) << n[4][0] << setw(5) << n[6][1] << setw(6) << n[0][0] << endl; //213
cout << setw(3) << n[2][1] << setw(5) << n[4][2] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[1][0] << setw(6) << n[3][1] << endl;
cout << setw(3) << n[5][2] << setw(5) << n[6][0] << setw(6) << n[1][2] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[0][2] << setw(6) << n[0][1] << endl;
cout << setw(3) << n[2][2] << setw(5) << n[3][0] << setw(6) << n[5][1] << endl;
cout << setw(3) << n[2][0] << setw(5) << n[4][1] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter 7, 8, or 9 : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 7:
cout << "Are you sure? " << endl;
break;
case 8:
cout << "Your number is :" << n[6][0] << endl;
cout << "Thank you for playing." << endl;
break;
case 9:
cout << "Your number is :" << n[1][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}
break;
case 5:
cout << "RowA RowW RowE" << endl;
cout << setw(3) << n[1][0] << setw(5) << n[3][1] << setw(6) << n[5][2] << endl; //213
cout << setw(3) << n[6][0] << setw(5) << n[1][2] << setw(6) << n[5][0] << endl;
cout << setw(3) << n[0][2] << setw(5) << n[4][0] << setw(6) << n[6][1] << endl;
cout << setw(3) << n[0][0] << setw(5) << n[2][1] << setw(6) << n[4][2] << endl;
cout << setw(3) << n[1][1] << setw(5) << n[3][2] << setw(6) << n[0][1] << endl;
cout << setw(3) << n[2][2] << setw(5) << n[3][0] << setw(6) << n[5][1] << endl;
cout << setw(3) << n[2][0] << setw(5) << n[4][1] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter A, W, or E : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'A':
case 'a':
cout << "Your number is : " << n[0][0] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'W':
case 'w':
cout << "Your number is : " << n[2][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'E':
case 'e':
cout << "Your number is :" << n[4][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}
}
break;
case 6:
cout << "RowR RowT RowY" << endl;
cout << setw(3) << n[4][0] << setw(5) << n[6][1] << setw(6) << n[0][0] << endl; //213
cout << setw(3) << n[2][1] << setw(5) << n[4][2] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[0][1] << setw(6) << n[2][2] << endl;
cout << setw(3) << n[3][0] << setw(5) << n[5][1] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[4][1] << setw(5) << n[6][2] << setw(6) << n[1][0] << endl;
cout << setw(3) << n[3][1] << setw(5) << n[5][2] << setw(6) << n[6][0] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[5][0] << setw(6) << n[0][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter R, T, or Y : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'R':
case 'r':
cout << "Your number is : " << n[3][0] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'T':
case 't':
cout << "Your number is :" << n[5][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'Y':
case 'y':
cout << "Your number is :" << n[2][0] << endl;
cout << "Thank you for Playing." << endl;
break;
}//end switch
}//end of while
break;
}//end switch 1
}//end while
break;
case 2:
cout << "RowZ RowX RowC" << endl;
cout << setw(3) << n[0][0] << setw(5) << n[3][0] << setw(6) << n[6][0] << endl; //123
cout << setw(3) << n[2][1] << setw(5) << n[5][1] << setw(6) << n[1][2] << endl;
cout << setw(3) << n[4][2] << setw(5) << n[1][0] << setw(6) << n[4][0] << endl;
cout << setw(3) << n[0][1] << setw(5) << n[3][1] << setw(6) << n[6][1] << endl;
cout << setw(3) << n[2][2] << setw(5) << n[5][2] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[1][1] << setw(6) << n[4][1] << endl;
cout << setw(3) << n[0][2] << setw(5) << n[3][2] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter Z, X, or C : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'Z':
case 'z':
cout << "RowV RowB RowN" << endl;
cout << setw(3) << n[3][0] << setw(5) << n[5][1] << setw(6) << n[1][0] << endl; //213
cout << setw(3) << n[3][1] << setw(5) << n[5][2] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[0][0] << setw(6) << n[2][1] << endl;
cout << setw(3) << n[4][2] << setw(5) << n[0][1] << setw(6) << n[2][2] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[0][2] << setw(6) << n[6][0] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[4][0] << setw(6) << n[6][1] << endl;
cout << setw(3) << n[2][0] << setw(5) << n[4][1] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter V, B, or N : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'V':
case 'v':
cout << "Your number is :" << n[4][2] << endl;
cout << "Thank you for playing." << endl;
break;
case 'B':
case 'b':
cout << "Your number is :" << n[0][1] << endl;
cout << "Thank you for playing." << endl;
break;
case 'N':
case 'n':
cout << "Your number is :" << n[2][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}
break;
case 'X':
case 'x':
cout << "RowJ RowK RowL" << endl;
cout << setw(3) << n[0][0] << setw(5) << n[2][1] << setw(6) << n[4][2] << endl; //213
cout << setw(3) << n[0][1] << setw(5) << n[2][2] << setw(6) << n[5][0] << endl;
cout << setw(3) << n[0][2] << setw(5) << n[3][0] << setw(6) << n[5][1] << endl;
cout << setw(3) << n[1][0] << setw(5) << n[3][1] << setw(6) << n[5][2] << endl;
cout << setw(3) << n[1][1] << setw(5) << n[3][2] << setw(6) << n[6][0] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[4][0] << setw(6) << n[6][1] << endl;
cout << setw(3) << n[2][0] << setw(5) << n[4][1] << setw(6) << n[6][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter J, K, or L : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'J':
case 'j':
cout << "Your number is : " << n[1][0] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'K':
case 'k':
cout << "Your number is : " << n[3][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'L':
case 'l':
cout << "Your number is :" << n[5][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}
}
break;
case 'C':
case 'c':
cout << "RowU RowI RowO" << endl;
cout << setw(3) << n[3][0] << setw(5) << n[5][1] << setw(6) << n[1][0] << endl; //213
cout << setw(3) << n[3][1] << setw(5) << n[5][2] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[6][0] << setw(6) << n[1][2] << endl;
cout << setw(3) << n[4][0] << setw(5) << n[6][1] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[4][1] << setw(5) << n[6][2] << setw(6) << n[0][0] << endl;
cout << setw(3) << n[2][1] << setw(5) << n[4][2] << setw(6) << n[0][1] << endl;
cout << setw(3) << n[2][2] << setw(5) << n[5][0] << setw(6) << n[0][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter U, I, or O : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'U':
case 'u':
cout << "Your number is : " << n[4][0] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'I':
case 'i':
cout << "Your number is :" << n[6][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 'O':
case 'o':
cout << "Your number is :" << n[2][0] << endl;
cout << "Thank you for Playing." << endl;
break;
}//end of switch
}//end of while
break;
}//end switch
}//end while
break;
case 3:
cout << "RowD RowF RowG" << endl;
cout << setw(3) << n[4][0] << setw(5) << n[6][1] << setw(6) << n[0][0] << endl; //123
cout << setw(3) << n[2][1] << setw(5) << n[4][2] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[0][1] << setw(6) << n[2][2] << endl;
cout << setw(3) << n[3][0] << setw(5) << n[5][1] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[4][1] << setw(5) << n[6][2] << setw(6) << n[1][0] << endl;
cout << setw(3) << n[3][1] << setw(5) << n[5][2] << setw(6) << n[6][0] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[5][0] << setw(6) << n[0][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter D, F, or G : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'D':
case 'd':
cout << "RowM RowP RowS" << endl;
cout << setw(3) << n[6][1] << setw(5) << n[4][2] << setw(6) << n[0][1] << endl; //213
cout << setw(3) << n[5][1] << setw(5) << n[6][2] << setw(6) << n[5][2] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[4][0] << setw(6) << n[2][1] << endl;
cout << setw(3) << n[3][2] << setw(5) << n[3][0] << setw(6) << n[4][1] << endl;
cout << setw(3) << n[3][1] << setw(5) << n[1][2] << setw(6) << n[0][0] << endl;
cout << setw(3) << n[1][1] << setw(5) << n[2][2] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[1][0] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter M, P, or S : ";
cin >> input;
cout <<endl;
break;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'M':
case 'm':
cout << "Your number is :" << n[3][2] << endl;
cout << "Thank you for playing." << endl;
break;
case 'P':
case 'p':
cout << "Your number is :" << n[3][0] << endl;
cout << "Thank you for playing." << endl;
break;
case 'S':
case 's':
cout << "Your number is :" << n[4][1] << endl;
cout << "Thank you for Playing." << endl;
break;
}
break;
case 'F':
case 'f':
cout << "RowJ RowK RowL" << endl;
cout << setw(3) << n[4][0] << setw(5) << n[2][1] << setw(6) << n[3][2] << endl; //213
cout << setw(3) << n[3][0] << setw(5) << n[4][1] << setw(6) << n[3][1] << endl;
cout << setw(3) << n[1][2] << setw(5) << n[6][1] << setw(6) << n[4][2] << endl;
cout << setw(3) << n[0][1] << setw(5) << n[5][1] << setw(6) << n[6][2] << endl;
cout << setw(3) << n[5][2] << setw(5) << n[5][0] << setw(6) << n[0][0] << endl;
cout << setw(3) << n[1][1] << setw(5) << n[2][2] << setw(6) << n[2][0] << endl;
cout << setw(3) << n[1][0] << setw(5) << n[6][0] << setw(6) << n[0][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter H, 0, or 10 : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 'H':
case 'h':
cout << "Your number is : " << n[0][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 0:
cout << "Your number is : " << n[5][0] << endl;
cout << "Thank you for Playing." << endl;
break;
case 10:
cout << "Your number is :" << n[6][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}
}
break;
case 'G':
case 'g':
cout << "Row11 Row12 Row13" << endl;
cout << setw(3) << n[6][1] << setw(5) << n[4][2] << setw(6) << n[0][1] << endl; //213
cout << setw(3) << n[5][1] << setw(5) << n[6][2] << setw(6) << n[5][2] << endl;
cout << setw(3) << n[5][0] << setw(5) << n[0][0] << setw(6) << n[1][1] << endl;
cout << setw(3) << n[2][2] << setw(5) << n[2][0] << setw(6) << n[1][0] << endl;
cout << setw(3) << n[6][0] << setw(5) << n[0][2] << setw(6) << n[4][0] << endl;
cout << setw(3) << n[2][1] << setw(5) << n[3][2] << setw(6) << n[3][0] << endl;
cout << setw(3) << n[4][1] << setw(5) << n[3][1] << setw(6) << n[1][2] << endl;
cout << endl;
cout << "Which Row is you letter in?? : " << endl;
cout << "Enter 11, 12, or 13 : ";
cin >> input;
cout <<endl;
while (input != 'Q' || input != 'q')
{
switch (input)
{
case 11:
cout << "Your number is : " << n[2][2] << endl;
cout << "Thank you for Playing." << endl;
break;
case 12:
cout << "Your number is :" << n[1][1] << endl;
cout << "Thank you for Playing." << endl;
break;
case 13:
cout << "Your number is :" << n[0][2] << endl;
cout << "Thank you for Playing." << endl;
break;
}//end of switch
}//end of while
break;
}//end switch 1
}//end while
break;
}//end switch
}//end while
}//end program
|
|
|
|