Click here to Skip to main content
15,848,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 23:03
mveRichard MacCutchan11-Mar-22 23:03 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow12-Mar-22 14:23
ForNow12-Mar-22 14:23 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow12-Mar-22 14:28
ForNow12-Mar-22 14:28 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan12-Mar-22 23:14
mveRichard MacCutchan12-Mar-22 23:14 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow13-Mar-22 6:01
ForNow13-Mar-22 6:01 
QuestionC++ programming Pin
ali khan Mar20226-Mar-22 9:08
ali khan Mar20226-Mar-22 9:08 
AnswerRe: C++ programming Pin
Richard MacCutchan6-Mar-22 22:57
mveRichard MacCutchan6-Mar-22 22:57 
AnswerRe: C++ programming Pin
Edd.Dan1-May-22 5:47
professionalEdd.Dan1-May-22 5:47 
the main reason of why we use namespace identifier is classify our code in a bigger categories and parts. its useful to manage your libraries by "using namespaces". Imagine you can have many different name spaces in your code and every time you need you can use it. its helps you to choose smaller and more abstract names for your classes and functions.

for example you can have many Mathematic function and classes in a namespace like "Matrix". in that case you can have simple function names like "add" , "div", "mul" instead of "matrix_add" ,"matrix_dev" and ...
to use them in an specific part of your code you can use it in to ways ..
1:
C++
Matrix.add(m1,m2);
Matrix.div(m3,m4);

2:

C++
using Matrix {

   add(m1,m2);
   div(m3.m4);
}

also for defining classes and functions in a namespace you can do it like this ...
C++
namespace Matrix {
   
    void add(matrix a, matrix b){
       ...
       
    }

    void div(matrix a, matrix b){
       ...
       
    }

    void mul(matrix a, matrix b){
       ...
       
    }
    .
    .
    .



}

QuestionGetting a specific version of rich edit Pin
ForNow6-Mar-22 9:02
ForNow6-Mar-22 9:02 
AnswerRe: Getting a specific version of rich edit Pin
Randor 9-Mar-22 10:25
professional Randor 9-Mar-22 10:25 
GeneralRe: Getting a specific version of rich edit not hitting my WordBreak Function Pin
ForNow9-Mar-22 14:49
ForNow9-Mar-22 14:49 
QuestionStruct with union with different sized members - How can I declare the smallest struct? Pin
arnold_w6-Mar-22 2:17
arnold_w6-Mar-22 2:17 
AnswerRe: Struct with union with different sized members - How can I declare the smallest struct? Pin
Mircea Neacsu6-Mar-22 3:39
Mircea Neacsu6-Mar-22 3:39 
QuestionLine Break Rich Edit Pin
ForNow5-Mar-22 18:42
ForNow5-Mar-22 18:42 
AnswerRe: Line Break Rich Edit Pin
Richard Andrew x646-Mar-22 5:33
professionalRichard Andrew x646-Mar-22 5:33 
GeneralRe: Line Break Rich Edit Pin
ForNow6-Mar-22 6:19
ForNow6-Mar-22 6:19 
QuestionC++ even numbers query Pin
Member 1555051328-Feb-22 17:30
Member 1555051328-Feb-22 17:30 
AnswerRe: C++ even numbers query Pin
Victor Nijegorodov28-Feb-22 21:31
Victor Nijegorodov28-Feb-22 21:31 
GeneralRe: C++ even numbers query Pin
Member 1555051328-Feb-22 22:33
Member 1555051328-Feb-22 22:33 
GeneralRe: C++ even numbers query Pin
Victor Nijegorodov1-Mar-22 0:02
Victor Nijegorodov1-Mar-22 0:02 
GeneralRe: C++ even numbers query Pin
Member 155505131-Mar-22 18:31
Member 155505131-Mar-22 18:31 
GeneralRe: C++ even numbers query Pin
Victor Nijegorodov1-Mar-22 23:32
Victor Nijegorodov1-Mar-22 23:32 
GeneralRe: C++ even numbers query Pin
Richard MacCutchan1-Mar-22 23:40
mveRichard MacCutchan1-Mar-22 23:40 
QuestionRe: C++ even numbers query Pin
David Crow1-Mar-22 4:50
David Crow1-Mar-22 4:50 
AnswerRe: C++ even numbers query Pin
Richard Andrew x642-Mar-22 10:42
professionalRichard Andrew x642-Mar-22 10:42 

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.