Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: greve

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Vector subscript out of range- error whilst debugging

    Besides the initialization-error in your code (see #4) there is also a major design-mistake: If you use nested vectors, you'll loose most of the efficiency a vector provides. You may have a look to...
  2. Re: Vector subscript out of range- error whilst debugging

    As far as I understood your code you forgot to set the size of the DEPTH-dimension properly:

    Instead of:


    int main() {
    vector<vector<vector<double> > > array3D;

    // Set up sizes. (HEIGHT x...
  3. Re: How can I reference a static variable in another file?

    Is g_navMesh defined inside (1) or outside (2) of any function within the file?

    (1) No chance
    (2) As it is defined static the scope of g_navMesh is limited from the definition to the end of that...
  4. Replies
    4
    Views
    609

    Re: Loop Trouble with For Loop

    Currently your for-loop only iterates over the statement cout << "Judge Please select a number between 0-9:" << Judge << endl; I guess you would like to control everything beyond the for by that...
  5. Replies
    1
    Views
    889

    Re: Error Linking VOCE library in Qt

    See this post: http://www.qtcentre.org/threads/39144-How-to-add-a-lib-to-a-qt-project

    By the way: Your question might be handled faster by a forum handling especially qt-stuff, like:...
  6. Replies
    6
    Views
    576

    Re: Find unequal elements in array

    The problem you are trying to solve is quite universal. You might find a solution in almost every textbook on c++, e.g.: TC++PL, 4th edition Section 32.5.2., p.937
  7. Re: Looking for C++ books or tutorials, for experienced C programmers

    The accu runs a database with reviews of IT-related books: http://accu.org/index.php?module=bookreviews&func=search. Scanning for c++ results in far more than 200 reviews.
  8. Thread: returning struct

    by greve
    Replies
    2
    Views
    261

    Re: returning struct

    #include <iostream>
    #include <cstdlib>
    using namespace std;

    struct name
    {
    int first;
    int second;
    };
  9. Termination of namespaces with a closing brace only ...

    ... and not with a brace followed by a semicolon like in class-definitions - does anyone know the reason for that?
  10. Replies
    6
    Views
    1,548

    Re: parabolic shot program BORLAND C

    Hi,

    where do clrscr() and gotoxy() come from (the .h-files you included don't contain declarations of them)?

    Cheers,
    Thomas

    BTW: Your code would be easier to comprehend if you would use a...
  11. Replies
    8
    Views
    769

    Re: Nested class accessing it's parent...

    What about making Y a friend of X?



    struct X
    {
    struct Y
    {
    /*
    ...
  12. Replies
    9
    Views
    625

    Re: opening files were name contains '

    The quote in N,N'-dimethylethylenediamine.mol needs to be set as escape sequence as N,N\'-dimethylethylenediamine.mol

    Regards,
    Thomas
  13. Re: stringstream

    setprecision() may help. Consider to include <iomanip>.
  14. Replies
    2
    Views
    334

    Re: Bitfiields in C how to?

    You may use bitwise filtering plus bitshift to isolate the requested information, probably like:



    struct TClimate
    {
    int m_Temperature;
    int m_Humidity;
    int m_LevelOfRain;
    ...
  15. Accessing MFC-Objects from other threads than the primary

    I'm using a graphics library within an application. Functions of the library were accessed from a different than the application's primary thread. There were crashes which could be traced back to the...
  16. Replies
    7
    Views
    1,004

    Re: List out all the files in a folder

    The CFileFind-class (of MFC) might be aqppropriate.
  17. Replies
    3
    Views
    598

    Re: Overloading the = Operator for a Class

    You should bare in mind that

    CLASS& CLASS::operator=(const CLASS& rOther)
    will be generated for CLASS by the compiler if you don't. The default way functionality is memberwise copy, so you have...
  18. Replies
    8
    Views
    1,384

    Detecting a container's end

    I'm used to scan through a container in a fashion like this:


    vector<int> Data;
    ...
    for (
    vector<int>::iterator Val= Data.begin();
    Val != Data.end();
    ++Val
    )
  19. Replies
    5
    Views
    1,413

    Re: Setting cursor in a dialog's edit-ctrl

    @vcdebugger: As said in the previous post:
  20. Replies
    5
    Views
    1,413

    Re: Setting cursor in a dialog's edit-ctrl

    After having done more detailed debugging I've to commit that the posted problem was described correctly in terms of the phenomenon (cursor not set correctly) but my first attempt to solve it was...
  21. Replies
    5
    Views
    1,413

    Setting cursor in a dialog's edit-ctrl

    I want to set the cursor into an edit-ctrl preferably to a specific position. As far as I understood I have to set the focus to this ctrl and then doing a selection in that box. As SetFocus() is said...
  22. Replies
    8
    Views
    2,589

    Re: Problems with VC6 and Win7

    @Paul: Sorry for being not more precise. I hoped that generating a console-project would be self-explanatory. What I did:
    - Selected File/New
    - Selected the project-tab in the New-dialog and...
  23. Replies
    8
    Views
    2,589

    Problems with VC6 and Win7

    I tried to install VC6 on Win7 and got a warning that there are known incompatibilities. The installation nevertheless succeeded - there were no further warnings. It was also possible to start VC...
  24. Replies
    3
    Views
    1,229

    Re: VK_F12 and Windows XP

    I 've now got the same problem as nafnaf 8 years ago. Probably today there's somebody who has an explanation for this? Many thanks for any hints in advance.
    Thomas
  25. Replies
    8
    Views
    1,995

    Re: CSingleLock Instantiation gets a Debug Assert

    pObject is of type CSemaphore and the member classCSyncObject is set to "CSyncObject".
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center