Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTemplate problem Pin
grscot29-Apr-03 10:49
grscot29-Apr-03 10:49 
GeneralRe: Template problem Pin
dog_spawn29-Apr-03 11:27
dog_spawn29-Apr-03 11:27 
GeneralnOOb ? regarding structure (mine doesn't work!) Pin
Anonymous29-Apr-03 10:23
Anonymous29-Apr-03 10:23 
GeneralRe: nOOb ? regarding structure (mine doesn't work!) Pin
David Crow29-Apr-03 10:26
David Crow29-Apr-03 10:26 
Generalhere's my question, previous is the code. Pin
Anonymous29-Apr-03 10:27
Anonymous29-Apr-03 10:27 
GeneralRe: here's my question, previous is the code. Pin
act_x29-Apr-03 10:32
act_x29-Apr-03 10:32 
GeneralRe: here's my question, previous is the code. Pin
joshx29-Apr-03 10:44
joshx29-Apr-03 10:44 
GeneralRe: here's my question, previous is the code. Pin
David Crow29-Apr-03 10:41
David Crow29-Apr-03 10:41 
This works fine for me:

struct item
{
    char name[35];
    int price;
};

void main( void )
{
    item ksoh =
    {
        "kings sword of haste",
        25000
    };

    item gpow =
    {
        "godly plate of the whale",
        278000
    };

    item demonspike =
    {
        "legit demonspike",
        492000
    };

    cout << "garth's equipment shoppe\n";
    cout << "how about a nice " << ksoh.name << "for a mere ";
    cout << ksoh.price <<"?\n";
    cout << "or\n"; 
    cout << "a high ac " << demonspike.name;
    cout << " for only " << demonspike.price;
    cout << " could really liven things up when laz is in the house. ";
    cout << " be sure to take special note of our 2fer special today: ";
    cout << "a " << ksoh.name << " and a burly "; 
    cout << gpow.name << " would most certainly be essential ";
    cout << "if you plan on doing anything significant beyond level 12.";
    cout << " on sale today only, a 2fer special of "; 
    cout << ksoh.price + gpow.price;
    cout << "!!\n ";
} 

GeneralRe: here's my question, previous is the code. Pin
joshx29-Apr-03 11:29
joshx29-Apr-03 11:29 
QuestionHow to read command line parameters Pin
gmlnd29-Apr-03 10:05
gmlnd29-Apr-03 10:05 
AnswerRe: How to read command line parameters Pin
David Crow29-Apr-03 10:24
David Crow29-Apr-03 10:24 
GeneralPassing an array of UDT from Excel to C++ DLL Pin
Anton A. Loukine29-Apr-03 9:54
Anton A. Loukine29-Apr-03 9:54 
GeneralChanging the Header height in CListCtrl Pin
ttohme29-Apr-03 9:46
ttohme29-Apr-03 9:46 
Generalunable to access static variable Pin
act_x29-Apr-03 9:14
act_x29-Apr-03 9:14 
GeneralRe: unable to access static variable Pin
David Crow29-Apr-03 9:31
David Crow29-Apr-03 9:31 
GeneralRe: unable to access static variable Pin
act_x29-Apr-03 9:37
act_x29-Apr-03 9:37 
GeneralRe: unable to access static variable Pin
Dave Bryant29-Apr-03 9:50
Dave Bryant29-Apr-03 9:50 
GeneralRe: unable to access static variable Pin
act_x29-Apr-03 9:52
act_x29-Apr-03 9:52 
GeneralRe: unable to access static variable Pin
Chris Losinger29-Apr-03 10:57
professionalChris Losinger29-Apr-03 10:57 
QuestionGrouping on Taskbar? Pin
netx200329-Apr-03 8:40
netx200329-Apr-03 8:40 
AnswerRe: Grouping on Taskbar? Pin
David Crow29-Apr-03 9:05
David Crow29-Apr-03 9:05 
GeneralRe: Grouping on Taskbar? Pin
netx200329-Apr-03 9:14
netx200329-Apr-03 9:14 
GeneralRe: Grouping on Taskbar? Pin
David Crow29-Apr-03 9:22
David Crow29-Apr-03 9:22 
GeneralRe: Grouping on Taskbar? Pin
netx20031-May-03 7:41
netx20031-May-03 7:41 
GeneralRe: Grouping on Taskbar? Pin
David Crow1-May-03 7:50
David Crow1-May-03 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.