Search:

Type: Posts; User: FoodDude

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,777

    The _int64 worked. Problem now is if I try...

    The _int64 worked. Problem now is if I try std::cout with this variable then I get "'operator <<' is ambiguous" at compile time.
  2. Replies
    4
    Views
    1,777

    Adding big numbers

    I have a running total that should show up to one billion, maybe ten.

    I've tried adding with int's but ended up with a negative number.

    I tried float and double but got a results of...
  3. Replies
    0
    Views
    830

    passing between classes

    never mind... :mad:
  4. Thread: map iterator

    by FoodDude
    Replies
    3
    Views
    1,477

    The problem is when I step through the code and...

    The problem is when I step through the code and go to the first line within the for loop, my debug watch value shows "overloaded operator -> not supported." for itDetailRecords->first

    However, if...
  5. Thread: map iterator

    by FoodDude
    Replies
    3
    Views
    1,477

    map iterator

    I have a map and a vector.

    I need to loop through the map and see if my vector has a matching record.

    I'm using this:


    std::map<std::string, int> mpDetailRecords;...
  6. Replies
    2
    Views
    973

    MSDN: "Integer variables are stored as signed...

    MSDN:
    "Integer variables are stored as signed 32-bit (4-byte) integers ranging in value from -2,147,483,648 through 2,147,483,647.

    The Integer data type provides optimal performance on a 32-bit...
  7. Thread: adding spaces

    by FoodDude
    Replies
    2
    Views
    1,601

    perfect, thanks.

    perfect, thanks.
  8. Thread: adding spaces

    by FoodDude
    Replies
    2
    Views
    1,601

    adding spaces

    I'm creating a space-delimited file.
    In another language, I'm used to using Space(n) to add n-number of spaces.

    Does c++ have anything similiar? Google isn't doing well for me.
  9. Thread: vector sort

    by FoodDude
    Replies
    1
    Views
    1,042

    vector sort

    Here is a shortened version of my code (shortened and placed in one file). It's supposed to read in files like:
    1234,smith,bob
    1234,smith,adam
    1234,jones, carl

    then does a bunch of validation...
  10. Replies
    2
    Views
    1,493

    vector - char 255 warning

    I'm getting this compile message based on the below sample code. Yet I've populated a vector with strings in other ways and not seen the compilte error:
    c:\program files\microsoft visual...
  11. Replies
    12
    Views
    3,948

    I like using std::whatever because the more...

    I like using std::whatever because the more complex code I write, the easier it is to scan my code and know what references are being made to namespaces, classes, whatever.
  12. Replies
    3
    Views
    1,264

    never mind, I'm trying that class-based vector...

    never mind, I'm trying that class-based vector again.
  13. Replies
    11
    Views
    2,411

    No matter what you do, you are introducing a huge...

    No matter what you do, you are introducing a huge security problem. 5 terminals for a few minutes or security hole? You pick.
  14. Replies
    3
    Views
    1,264

    vector - struct - one last time

    I tried using a class based vector for sorting more than one column. Let's just say I have a lot of code that uses that struct and going to class-based caused a lot of problems.

    My next thought...
  15. Replies
    2
    Views
    4,398

    assigning one vector to another

    If I have a vector and want to assign its contents to another vector (ie. vector2 = vector1), do I have to loop and push_back or is there a simplier way?
  16. Replies
    6
    Views
    989

    One more interesteing point, if I call the...

    One more interesteing point, if I call the function again, it doesn't perform properly. I have just read the MSDN info that:

    "Each of these functions uses a static variable for parsing the string...
  17. Replies
    6
    Views
    989

    Thanks.

    Thanks.
  18. Replies
    6
    Views
    989

    comparing char values

    I'm a bit stumpted on this one. First off, I'm writing this to be ported to C, so I'm using char and NOT using string stuff.

    Here is the problem. The code compiles but doesn't run correctly. ...
  19. Replies
    10
    Views
    1,616

    one last thing. c++ has std::string. Does c...

    one last thing. c++ has std::string. Does c have strings or am I limited to chars?
  20. Replies
    10
    Views
    1,616

    thanks, I'll assume this will all work out. :) ...

    thanks, I'll assume this will all work out. :)

    oops, my fault on the "4-char" and then I give myval364 as an example.
  21. Replies
    10
    Views
    1,616

    I'll assume then whatever string manipulation I...

    I'll assume then whatever string manipulation I can do in c++, I can do in c with the same key words?
  22. Replies
    10
    Views
    1,616

    String Manipulation

    It's easy to find tutorials on c++ but "c" is not as easy.

    I'm looking for any tutorials on string mainpulation in c. I have a large text area (a long string) and I need to search for a unique...
  23. Replies
    4
    Views
    5,449

    Another thank you.

    Another thank you.
  24. Replies
    4
    Views
    5,449

    vector: sort multiple fields

    I have a struct-based vector with 7 fields (strings). I need to sort by 5 of these fields. Easy in SQL, but not quite as simple in a vector, I think.

    I found this code via google and was...
  25. Replies
    19
    Views
    2,519

    I'm used to using Split in VB applications. I...

    I'm used to using Split in VB applications. I found this code where the join and split were ported over.

    http://www.codetoad.com/c_join_split.asp

    I use the code in a c+ program and it's great.
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4