Search:
Type: Posts; User: versacestl
Search:
Search took 0.02 seconds.
-
October 26th, 2010, 11:22 AM
Sounds good.. Already did this part..
I am not seeing a bitwise conversion back to a uint or int though.. Guess i can just convert it to u_long and cast it to a uint.
Also to convert the bitset...
-
October 26th, 2010, 11:13 AM
std::bitset<8> my_bitset(value);
This seems to work just find, giving me the 8 bit representation..
And i will need it in a string now i guess since i need to flip a random bit in this bitwise...
-
October 26th, 2010, 11:02 AM
Ok well i got it working but its giving me the 32 bit representation.
How can i take
bitset<sizeof(value) * CHAR_BIT> my_bitset(value);
and make it fixed to 8 since i know the byte value...
-
October 26th, 2010, 10:53 AM
The reason why.. is because i have no idea what the following is doing
bitset<sizeof(value) * CHAR_BIT> my_bitset(value);
Mostly '<sizeof(value) * CHAR_BIT> ' -->> setting the size...
-
October 26th, 2010, 10:43 AM
Could you show an example of how to use the bitwise() conversion..
I can use ints, but would rather use unsigned int,
I am not seeing a type in which i can do so for ints or uints..
And i...
-
October 26th, 2010, 10:33 AM
Ok, let me rephrase, i need to get the 8 bit representation of that byte..
-
October 26th, 2010, 10:05 AM
How can i get the byte value of an integer..
Let's say I need it for number '204'
The byte representation would be --> 11001100
Another example would be number '122' -- > 01111010
The minimum...
-
October 14th, 2010, 11:05 AM
It almost seems that way, but the function actually has one more parameter am passing in that i didn't include, which determines the choice of vector to return, 4 different algorithms performed on 4...
-
October 14th, 2010, 10:41 AM
Apparently This works:
vector< vector<int> > twoD (int columns, int rows);
int main (int argc, char ** argv)
{
-
October 14th, 2010, 10:19 AM
No it cannot be determined at compile time..
So i guess i am doing vectors..
I will have to look up how to return a vector from a function and how to declare the function type.
I'm assuming...
-
October 14th, 2010, 10:05 AM
I would rather not restructure the code as a whole.
IF i create global 2D arrays and just copy to them rather then passing back, would that be easier?
-
October 14th, 2010, 09:43 AM
I have a function that has a two dimensional array i need to return:
how can i get the 2D array into another array without reading it by row and column in a loop
i.e --> the idea
int...
-
September 11th, 2010, 12:22 PM
Thanks again everyone.. I hate getting introduced into languages where the syntax is a bit different. I am used to doing java and c#..
Also i had to change the += to just a + to append the...
-
September 11th, 2010, 12:13 PM
Yes some of the functions below this do have the potential to throw errors..
Thanks for the intuition guys.. I am going to give it a shot right now..
-
September 10th, 2010, 04:29 PM
I am trying to figure out how to cast the filename into a string and use the substring to remove the '.png' or whatever declaration at the end given the input to the program..
How can i cast the...
-
September 10th, 2010, 08:48 AM
I am trying to insert a snippet of XML from a XML file, into the original file that I load.
Example:
I load XML file xmlFile1
Then load another xml file which is basically a snippet of XML that...
-
September 7th, 2010, 12:16 PM
I thought about this also.. But unfortunately there is no such function to implement while the cell is active.
-
September 7th, 2010, 10:49 AM
I realize now that it may not be possible to validate a cell while the user is typing in it, i.e. it's impossible to prevent the user typing more than x characters. Since, the validation only kicks...
-
September 7th, 2010, 09:36 AM
I don't really have any code for this as it is just a simple script.. I don't use VBA often so am not too sure of the syntax. I believe there may be something to set the attributes of the entire...
-
September 3rd, 2010, 02:54 PM
Number of characters... Where
LEN(Column) ! > 20
-
September 3rd, 2010, 01:35 PM
I am trying to restrict column length for an entire column in excel.. which uses VBA..
I am not talking about the width, but the actual characters allowed in this cell..
Any help would be...
-
August 20th, 2010, 08:56 AM
Like is being used on rows.column coming back from a table. Hence
Boolean = Row.Column Like ("RegEx")
This is working fine for all the other expressions i am using.
-
August 19th, 2010, 09:04 AM
I just tried
Dim WeightFactor As New Regex("^([0-9]|[1-9][0-9]|100)\.[\d][\d][\d][\d][\d][\d]")
validWeightFactor = WeightFactor.IsMatch(Row.WEIGHTFACTOR)
and it seems to...
-
August 19th, 2010, 08:57 AM
I put this in the 6.0 vb section by accident, but here is my issue:
http://www.codeguru.com/forum/showthread.php?p=1962680#post1962680
-
August 19th, 2010, 08:56 AM
I just realized this is Microsoft Visual Basic .NET not 6.0..
I will post a link to this in that section.
|
Click Here to Expand Forum to Full Width
|