Click here to Skip to main content
15,885,985 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: string problem??? Pin
RobJones10-Feb-06 8:54
RobJones10-Feb-06 8:54 
AnswerRe: string problem??? Pin
Maximilien10-Feb-06 9:12
Maximilien10-Feb-06 9:12 
AnswerRe: string problem??? Pin
Demonware66610-Feb-06 15:16
Demonware66610-Feb-06 15:16 
QuestionInteractive SQL Tool (using ODBC) question. Pin
Blakiston10-Feb-06 7:31
Blakiston10-Feb-06 7:31 
QuestionVB macros Pin
skk64302n10-Feb-06 7:29
skk64302n10-Feb-06 7:29 
QuestionError in code Pin
zahid_ash10-Feb-06 6:50
zahid_ash10-Feb-06 6:50 
QuestionRe: Error in code Pin
David Crow10-Feb-06 9:24
David Crow10-Feb-06 9:24 
QuestionLooking for solid C+Tree or C*-Tree source Pin
Joe Woodbury10-Feb-06 6:27
professionalJoe Woodbury10-Feb-06 6:27 
AnswerRe: Looking for solid C+Tree or C*-Tree source Pin
Jim Crafton10-Feb-06 6:33
Jim Crafton10-Feb-06 6:33 
GeneralRe: Looking for solid C+Tree or C*-Tree source Pin
Joe Woodbury10-Feb-06 6:39
professionalJoe Woodbury10-Feb-06 6:39 
AnswerRe: Looking for solid C+Tree or C*-Tree source Pin
EXTEIDE10-Feb-06 6:40
EXTEIDE10-Feb-06 6:40 
GeneralRe: Looking for solid C+Tree or C*-Tree source Pin
Joe Woodbury10-Feb-06 6:47
professionalJoe Woodbury10-Feb-06 6:47 
GeneralRe: Looking for solid C+Tree or C*-Tree source Pin
EXTEIDE10-Feb-06 7:05
EXTEIDE10-Feb-06 7:05 
AnswerRe: Looking for solid C+Tree or C*-Tree source Pin
Jörgen Sigvardsson10-Feb-06 12:21
Jörgen Sigvardsson10-Feb-06 12:21 
QuestionHelp With VC++ SOcket Programming using MFCs Pin
alienattack10-Feb-06 6:13
alienattack10-Feb-06 6:13 

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.