Search:

Type: Posts; User: |Wiz|

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    966

    two array questions

    Is there a way to set all the elements of an array to a certain number, say 1, without doing something like



    hello[] = (1, 1, 1, 1, 1, 1, 1, 1, 1...)


    ?

    Currently I'm using (for a 3 by 3...
  2. Replies
    14
    Views
    1,884

    About Vectors

    How do you go to a new line when using vectors?
  3. Replies
    14
    Views
    1,884

    Hey - it still crashes. Ah well, code-posting...

    Hey - it still crashes.

    Ah well, code-posting time.



    #include <iostream>
    #include <fstream>
    #include <cstdlib>
    #include <time.h>
  4. Replies
    14
    Views
    1,884

    ah, but compare #include...

    ah, but compare



    #include "boost/multi_array.hpp"
    #include <cassert>

    int
    main () {
    // Create a 3D array that is 3 x 4 x 2
  5. Replies
    14
    Views
    1,884

    Ah, but can you access parts of it using array...

    Ah, but can you access parts of it using array format?

    Yours certainly looks much nicer than the others.

    Do you substitute the variables in "COLUMNS" and "rows"? My VC++ 2005 doesn't seem to...
  6. Replies
    14
    Views
    1,884

    Making an array with x and y

    I want to create an array such as int array[x][y], where x and y are specified by the user beforehand. Is there a way to do it?

    I searched for array and dynamic array and came up with nothing.
  7. Replies
    12
    Views
    1,840

    Maybe add a "#include "stdafx"" ALL THE WAY at...

    Maybe add a "#include "stdafx"" ALL THE WAY at the beginning if its not there. The compiler requires it.
  8. Replies
    3
    Views
    1,250

    Did you declare the variables beforehand?

    Did you declare the variables beforehand?
  9. Thread: help!!

    by |Wiz|
    Replies
    8
    Views
    1,122

    I accidently used "cin" and not "cout". I...

    I accidently used "cin" and not "cout". I corrected it about a minute later.

    If you want to do cin, do what David said - use ">>".

    And cin.ignore DOES make a lot of difference - if you had...
  10. Thread: help!!

    by |Wiz|
    Replies
    8
    Views
    1,122

    And maybe you need to use "cin.ignore" after the...

    And maybe you need to use "cin.ignore" after the "cin >> ... ;".
    And speaking of ignoring, ignore decrypt's


    cout << this << is;


    and instead use
  11. Replies
    8
    Views
    1,517

    But you can still terminate svchost.exe.

    But you can still terminate svchost.exe.
  12. Replies
    13
    Views
    1,104

    remember to follow the directions

    remember to follow the directions
    <html>
    <A HREF="http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx">here</a>
    </html>


    I hope the html works...
    If not then just copy and...
  13. Replies
    13
    Views
    1,104

    and the library files are copyrighted...I think....

    and the library files are copyrighted...I think.
    so get them off the library site
  14. Replies
    11
    Views
    2,411

    *brain freezes and explodes* How do you get the...

    *brain freezes and explodes*
    How do you get the program running before you log in?

    But I also agree with FoodDude and durban's comments.
  15. how to solve

    1. installing SDK
    2. modifying everything I could to make Win32 applications available (msdn guide)
    3. puzzling over VCProjectEngine.dll.express.config
    3. copying and pasting everything from the...
  16. Windows.h and and all the other Windows header files are missing

    Hmm...it seems like my Microsoft Visual Studio C++ Express Edition doesn't even come with the standard Microsoft Windows header files!

    nvm...solved!
  17. Replies
    8
    Views
    1,517

    I don't think anything is unterminatable - heck,...

    I don't think anything is unterminatable - heck, you can even terminate Windows!
  18. I mean, what can a Windows form application do...

    I mean, what can a Windows form application do that a Windows application can't, or what can a Windows application do that a Windows form application can't?
    Or is it that they are the same?
    Thanks...
  19. Windows form application and Windows application

    What's the difference between a Windows form application and a Windows application?
  20. Replies
    11
    Views
    2,377

    Thanks, the && was what I needed. BUT before you...

    Thanks, the && was what I needed.
    BUT before you follow your own advice, put the parentheses in



    if ((argument1) && (argument2)) {run this}


    or the && will most likely confuse the compiler
  21. Replies
    11
    Views
    2,377

    Multiple arguments in the "if" command

    Can you make an "if" command like this?



    if ( argument1, argument2){runthis}
  22. Replies
    2
    Views
    861

    wow - that was fast! thanks.

    wow - that was fast!
    thanks.
  23. Replies
    2
    Views
    861

    l-value complaint from compiler

    this is my code:


    #include <iostream>
    using namespace std;


    int primedivisor ( int original)
    {
    int vr;
Results 1 to 23 of 23