The _int64 worked. Problem now is if I try std::cout with this variable then I get "'operator <<' is ambiguous" at compile time.
Type: Posts; User: FoodDude
The _int64 worked. Problem now is if I try std::cout with this variable then I get "'operator <<' is ambiguous" at compile time.
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...
never mind... :mad:
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...
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;...
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...
perfect, thanks.
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.
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...
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...
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.
never mind, I'm trying that class-based vector again.
No matter what you do, you are introducing a huge security problem. 5 terminals for a few minutes or security hole? You pick.
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...
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?
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...
Thanks.
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. ...
one last thing. c++ has std::string. Does c have strings or am I limited to chars?
thanks, I'll assume this will all work out. :)
oops, my fault on the "4-char" and then I give myval364 as an example.
I'll assume then whatever string manipulation I can do in c++, I can do in c with the same key words?
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...
Another thank you.
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...
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.