Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Alexander Wiseman21-Jul-04 4:56
Alexander Wiseman21-Jul-04 4:56 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Fiona Chen21-Jul-04 14:33
Fiona Chen21-Jul-04 14:33 
GeneralSome basic C++ question... yes, I'm a newbie - sorry! Pin
drjake18-Jul-04 13:33
drjake18-Jul-04 13:33 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
valikac18-Jul-04 13:57
valikac18-Jul-04 13:57 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
Christian Graus18-Jul-04 14:48
protectorChristian Graus18-Jul-04 14:48 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
bikram singh19-Jul-04 12:52
bikram singh19-Jul-04 12:52 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
Christian Graus19-Jul-04 13:00
protectorChristian Graus19-Jul-04 13:00 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
V.18-Jul-04 21:28
professionalV.18-Jul-04 21:28 
You would idd better buy a book, but here some answers by examples:
statements:
x = y + z;
Object.SomeFunction(int parameter1, CString parameter2);
CString str = "Some stupid text here.";
Definition:
int x;
double y;
CString str2;
Declaration:
x = 3;
y = 12.3;
str2 = "Hello World!";
(mind definition and declaration can come in 1 line: int x = 4;)
assignment: (see above assignments enough)

Function:
you can call a sequence of code again and again (more specific, a part of code that does something convenient)
int AddTwoInts(int x, int y){
int z = x + y;
return z;
}

Structures generally do not have functions (but they can have them) They mostly only contain data that is part of something bigger. (eg. Struct person could contain a CString name, int height, double weigth);
classes mostly do have functions.

you can consider classes like objects. Objects have data(properties) like integers, doubles and strings. And Objects can do something -> functions.

private, public: Acces level for other classes.

Note: mind ";" => STATEMENTS!
this is probably not entirely correct but gives you some idea to start with I think.

hope this helps.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralMSFlexGrid Control Problem Pin
Naveed Shoaib18-Jul-04 12:56
Naveed Shoaib18-Jul-04 12:56 
GeneralRe: MSFlexGrid Control Problem Pin
Toni7818-Jul-04 16:23
Toni7818-Jul-04 16:23 
GeneralRe: MSFlexGrid Control Problem Pin
Toni7818-Jul-04 16:25
Toni7818-Jul-04 16:25 
GeneralRe: MSFlexGrid Control Problem Pin
V.18-Jul-04 21:10
professionalV.18-Jul-04 21:10 
Generalproblem with including headers Pin
Jump_Around18-Jul-04 12:54
Jump_Around18-Jul-04 12:54 
GeneralRe: problem with including headers Pin
Ravi Bhavnani18-Jul-04 13:28
professionalRavi Bhavnani18-Jul-04 13:28 
GeneralDetermining DPI Pin
JD Steffen18-Jul-04 11:41
JD Steffen18-Jul-04 11:41 
GeneralRe: Determining DPI Pin
Michael Dunn18-Jul-04 12:52
sitebuilderMichael Dunn18-Jul-04 12:52 
GeneralRe: Determining DPI Pin
JD Steffen19-Jul-04 23:50
JD Steffen19-Jul-04 23:50 
GeneralCRecordSet->MoveFirst() exception Pin
JabraJabra18-Jul-04 7:12
JabraJabra18-Jul-04 7:12 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Toni7818-Jul-04 7:15
Toni7818-Jul-04 7:15 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Scozturk18-Jul-04 7:23
professionalScozturk18-Jul-04 7:23 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Alexander Wiseman18-Jul-04 9:05
Alexander Wiseman18-Jul-04 9:05 
GeneralLOGPEN Pin
Trollslayer18-Jul-04 6:47
mentorTrollslayer18-Jul-04 6:47 
GeneralRe: LOGPEN Pin
Trollslayer18-Jul-04 8:37
mentorTrollslayer18-Jul-04 8:37 
GeneralRe: LOGPEN Pin
Alexander Wiseman18-Jul-04 9:06
Alexander Wiseman18-Jul-04 9:06 
GeneralRe: LOGPEN - resource usage warning Pin
PJ Arends18-Jul-04 9:06
professionalPJ Arends18-Jul-04 9:06 

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.