Click here to Skip to main content
14,486,686 members

Managed C++/CLI

 
PinnedThe C++ / CLI is for managed and mixed-mode C++ programming only Pin
Chris Maunder9-Jan-06 9:36
cofounderChris Maunder9-Jan-06 9:36 
QuestionDebugging ... not able to hit breakpoint. Pin
Member 1326109418hrs 54mins ago
MemberMember 1326109418hrs 54mins ago 
AnswerRe: Debugging ... not able to hit breakpoint. Pin
Richard MacCutchan18hrs 40mins ago
mveRichard MacCutchan18hrs 40mins ago 
AnswerRe: Debugging ... not able to hit breakpoint. Pin
Stefan_Lang14hrs 57mins ago
mveStefan_Lang14hrs 57mins ago 
QuestionGetWindowRect wrong dimensions Pin
lacir29-Mar-20 6:57
Memberlacir29-Mar-20 6:57 
AnswerRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan29-Mar-20 7:23
mveRichard MacCutchan29-Mar-20 7:23 
GeneralRe: GetWindowRect wrong dimensions Pin
lacir29-Mar-20 7:28
Memberlacir29-Mar-20 7:28 
GeneralRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan29-Mar-20 20:48
mveRichard MacCutchan29-Mar-20 20:48 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov21hrs 24mins ago
MemberVictor Nijegorodov21hrs 24mins ago 
GeneralRe: GetWindowRect wrong dimensions Pin
lacir19hrs 52mins ago
Memberlacir19hrs 52mins ago 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov19hrs 32mins ago
MemberVictor Nijegorodov19hrs 32mins ago 
GeneralRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan18hrs 43mins ago
mveRichard MacCutchan18hrs 43mins ago 
Questionc++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 4:10
Memberccodebase19-Feb-20 4:10 
AnswerRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 4:40
mveRichard MacCutchan19-Feb-20 4:40 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 5:52
Memberccodebase19-Feb-20 5:52 
ok well, the issue is i need exact functionality in C++ with a class or function that performs as the vb.net code does, i do have this that i am hard coding all the Values into,

CSV Structure is

01,-0.12343,1.34532
02,-0.62343,1.74532
03,-0.22343,1.34532
04,-0.62343,1.74532

using namespace std; 

  

int main() 

{ 

    // initialize container 

    map<int, int> mp; 

  

    // insert elements 

    mp.insert({ -0.12343, 1.34532}); /// used as example

   mp.insert({ 0.22343, 1.74532}); 

   mp.insert({ -0.12343, 1.34532}); 

   mp.insert({ -0.12343, 1.34532}); 

  

    // when 11 is present 

    auto it = mp.upper_bound(11); 

    cout << "The upper bound of key 11 is "; 

    cout << (*it).first << " " << (*it).second << endl; 

  

    // when 13 is not present 

    it = mp.upper_bound(13); 

    cout << "The upper bound of key 13 is "; 

    cout << (*it).first << " " << (*it).second << endl; 

  

    // when 17 is exceeds the maximum key, so size 

        // of mp is returned as key and value as 0. 

    it = mp.upper_bound(17); 

    cout << "The upper bound of key 17 is "; 

    cout << (*it).first << " " << (*it).second; 

    return 0; 

} 

​

9:23

The upper bound of key 11 is 12 30
The upper bound of key 13 is 14 40
The upper bound of key 17 is 4 0

GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 6:21
mveRichard MacCutchan19-Feb-20 6:21 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:26
Memberccodebase19-Feb-20 7:26 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 21:57
mveRichard MacCutchan19-Feb-20 21:57 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 6:35
mveRichard MacCutchan19-Feb-20 6:35 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:25
Memberccodebase19-Feb-20 7:25 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:57
Memberccodebase19-Feb-20 7:57 
Questionupper bounds equivalent Pin
ccodebase19-Feb-20 3:54
Memberccodebase19-Feb-20 3:54 
QuestionHow to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 9:19
MemberErich Ruth1-Jan-20 9:19 
AnswerRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 13:27
mvephil.o1-Jan-20 13:27 
GeneralRe: How to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 14:42
MemberErich Ruth1-Jan-20 14: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.