Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAPI to enable/disable Windows SP2 Firewall on a given connection? Pin
Carl Mirabel10-Feb-06 9:41
Carl Mirabel10-Feb-06 9:41 
AnswerRe: API to enable/disable Windows SP2 Firewall on a given connection? Pin
Blake Miller13-Feb-06 4:12
Blake Miller13-Feb-06 4:12 
Questioncreating a window... Pin
Peter Charlesworth10-Feb-06 8:51
Peter Charlesworth10-Feb-06 8:51 
Answercreating a window... Pin
Peter Charlesworth10-Feb-06 8:57
Peter Charlesworth10-Feb-06 8:57 
GeneralRe: creating a window... Pin
Peter Charlesworth10-Feb-06 8:59
Peter Charlesworth10-Feb-06 8:59 
GeneralRe: creating a window... Pin
David Crow10-Feb-06 9:15
David Crow10-Feb-06 9:15 
GeneralRe: creating a window... Pin
Peter Charlesworth10-Feb-06 10:05
Peter Charlesworth10-Feb-06 10:05 
AnswerRe: creating a window... Pin
Michael Dunn10-Feb-06 11:09
sitebuilderMichael Dunn10-Feb-06 11:09 
QuestionCListView question Pin
RobJones10-Feb-06 8:22
RobJones10-Feb-06 8:22 
AnswerRe: CListView question Pin
David Crow10-Feb-06 9:19
David Crow10-Feb-06 9:19 
GeneralRe: CListView question Pin
RobJones10-Feb-06 9:27
RobJones10-Feb-06 9:27 
QuestionImmediate Display of Edit Box Pin
jon_fallon10-Feb-06 8:19
jon_fallon10-Feb-06 8:19 
AnswerRe: Immediate Display of Edit Box Pin
David Crow10-Feb-06 9:22
David Crow10-Feb-06 9:22 
AnswerRe: Immediate Display of Edit Box Pin
PJ Arends10-Feb-06 9:59
professionalPJ Arends10-Feb-06 9:59 
GeneralRe: Immediate Display of Edit Box Pin
jon_fallon10-Feb-06 10:04
jon_fallon10-Feb-06 10:04 
QuestionCRecordset ? DoFieldExchange ?? Pin
zinc_z10-Feb-06 8:17
zinc_z10-Feb-06 8:17 
QuestionRe: CRecordset ? DoFieldExchange ?? Pin
David Crow10-Feb-06 9:26
David Crow10-Feb-06 9:26 
AnswerRe: CRecordset ? DoFieldExchange ?? Pin
zinc_z11-Feb-06 15:05
zinc_z11-Feb-06 15:05 
QuestionRe: CRecordset ? DoFieldExchange ?? Pin
David Crow13-Feb-06 8:17
David Crow13-Feb-06 8:17 
AnswerRe: CRecordset ? DoFieldExchange ?? Pin
zinc_z15-Feb-06 3:26
zinc_z15-Feb-06 3:26 
GeneralRe: CRecordset ? DoFieldExchange ?? Pin
David Crow15-Feb-06 3:31
David Crow15-Feb-06 3:31 
GeneralRe: CRecordset ? DoFieldExchange ?? Pin
zinc_z15-Feb-06 22:48
zinc_z15-Feb-06 22:48 
Questionstring problem??? Pin
#hackC++10-Feb-06 7:50
#hackC++10-Feb-06 7:50 
When i enter the words rents and will the program will say "will is larger than rents" which is wrong. I can't figure out why it's doing that. I supplied the code below (might have forgot little things like ; or ,). If anyone can tell me what is wrong it would help me a lot. I'm new to C++ programming.


#include <iostream>
#include <string>
using namespace std;

int main()
{
string a, b;

cout << "Enter two words." << endl;
cin >> a >> b;
cin.ignore(10,'\n');

string small, big;

if (a < b)
{
small = a;
big = b;
}

if (a > b)
{
small = b;
big = a;
}

if (a.size() == b.size() && a != b))
{
cout << "Same size, but different string" << endl;
cin.get();
return 0;
}

if (a == b)
{
cout << "Their the same string" << endl;
cin.get();
return 0;
}

cout << big << " is larger than " << small << endl;
cin.get();
return 0;
}


-- modified at 13:53 Friday 10th February, 2006
AnswerRe: string problem??? Pin
Maximilien10-Feb-06 8:40
Maximilien10-Feb-06 8:40 
QuestionRe: string problem??? Pin
#hackC++10-Feb-06 8:45
#hackC++10-Feb-06 8:45 

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.