Click here to Skip to main content
15,868,016 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Strings in C | The program gives wrong output on string composed of both Upper case and lower case (Logic : ASCII Comparision) Why? Pin
Richard MacCutchan1-Jun-20 9:28
mveRichard MacCutchan1-Jun-20 9:28 
QuestionRun executable with arguments Pin
Erich Ruth3-May-20 3:04
Erich Ruth3-May-20 3:04 
AnswerRe: Run executable with arguments Pin
Richard MacCutchan3-May-20 3:14
mveRichard MacCutchan3-May-20 3:14 
AnswerRe: Run executable with arguments Pin
Victor Nijegorodov3-May-20 4:50
Victor Nijegorodov3-May-20 4:50 
QuestionVisual C++/CLI Pin
F_Square3-Apr-20 15:26
F_Square3-Apr-20 15:26 
AnswerRe: Visual C++/CLI Pin
Richard MacCutchan3-Apr-20 22:00
mveRichard MacCutchan3-Apr-20 22:00 
GeneralRe: Visual C++/CLI Pin
F_Square7-Apr-20 18:05
F_Square7-Apr-20 18:05 
GeneralRe: Visual C++/CLI Pin
Richard MacCutchan7-Apr-20 21:30
mveRichard MacCutchan7-Apr-20 21:30 
QuestionDebugging ... not able to hit breakpoint. Pin
Member 1326109430-Mar-20 2:20
Member 1326109430-Mar-20 2:20 
AnswerRe: Debugging ... not able to hit breakpoint. Pin
Richard MacCutchan30-Mar-20 2:34
mveRichard MacCutchan30-Mar-20 2:34 
AnswerRe: Debugging ... not able to hit breakpoint. Pin
Stefan_Lang30-Mar-20 6:17
Stefan_Lang30-Mar-20 6:17 
QuestionGetWindowRect wrong dimensions Pin
lacir29-Mar-20 6:57
lacir29-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
lacir29-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 Nijegorodov29-Mar-20 23:50
Victor Nijegorodov29-Mar-20 23:50 
GeneralRe: GetWindowRect wrong dimensions Pin
lacir30-Mar-20 1:22
lacir30-Mar-20 1:22 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov30-Mar-20 1:42
Victor Nijegorodov30-Mar-20 1:42 
GeneralRe: GetWindowRect wrong dimensions Pin
deXo-fan10-Apr-20 3:51
deXo-fan10-Apr-20 3:51 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov10-Apr-20 7:01
Victor Nijegorodov10-Apr-20 7:01 
GeneralRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan30-Mar-20 2:31
mveRichard MacCutchan30-Mar-20 2:31 
Questionc++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 4:10
ccodebase19-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
ccodebase19-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 

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.