Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~32.2K People Reached
Favorite Tags
Member Avatar for miskeen

Hello, I need to random generate some values in c++. I know that I can use rand() but I need to generate values with the following condition: the generated values must be equal to 2^n (0, 2, 4, 8, ...). Is that possible? Kind regards, M.

Member Avatar for vijayan121
0
224
Member Avatar for miskeen

Hi, I’ve 3 classes : A, B and C. The class A includes an object from the class B and another object from the class C. In my class B, I’ve a function that returns a vector of struct. This function is called in the class A and after that …

Member Avatar for harris21
0
10K
Member Avatar for miskeen

Hi, Is there any possible way to unselect a number of radiobuttons grouped in the same groupname? Thank you

Member Avatar for spectra
0
888
Member Avatar for miskeen

Hello guys, I've a class with a cpp and .h files. It's a part of a large program. I would like to create an array of structs and use it wherever in the same class, i.e. I want to initialize it in a specific function and use it in other …

Member Avatar for miskeen
0
158
Member Avatar for miskeen

Hi, I have different variables and I want to have a final variable that represents the concatenation of those variables by taking a specific number of bits from each variable. For example, if I have 3 variables var1, var2 and var3 and I want to take 3, 2 and 1 …

Member Avatar for miskeen
0
104
Member Avatar for miskeen

Hi, I want to convert unit32 variable to uint16 variable because I can't read uint16 directly from a file using sscanf. Is that possible? Thank you!

Member Avatar for miskeen
0
2K
Member Avatar for miskeen

Hello, I have to use an array, but its length is unknown at the beginning of the program. Is it possible to create such array and after that give it the desired length? Thank you!

Member Avatar for miskeen
0
15K
Member Avatar for miskeen

Hello, I have a file where the data layout is known. Suppose it's like this: image1 SomeData ... image1000 SomeData ... I want to get an access to the line I want without the necessity to move across all the lines. Let's say I wanna access directly to the line …

Member Avatar for miskeen
0
96
Member Avatar for miskeen

Hello, I've an external/global array that is used every where in my code.[CODE] // global.h file short is_valid[10];[/CODE] I initialize my array somewhere in the code and I want to check if everything works. When I try to print the values of the array, I get segmentation fault. [CODE] // …

Member Avatar for Dave Sinkula
0
57
Member Avatar for miskeen

Hi, I've a multifile program in C and I need to use global variables. I've one header file that is called "global.h" where my global variable is defined. In the other files, there's an include directive to "global.h". At the moment, I'm using my variable in the C files without …

Member Avatar for gerard4143
0
907
Member Avatar for miskeen

Hello guys, How can I make a switch case using an array of chars. Ex: [CODE]char input[50]; // my code here switch ( input ) { case "abc": // do something break; case "xyz": // do otherthings break; }[/CODE] Is that possible in C? Thank you!

Member Avatar for miskeen
0
127
Member Avatar for miskeen

Hi guys, Can I enable/disable an #ifdef based on a specific condition? Let's say that I've a loop [CODE]#define MYCONDITION 1 // code here for (int i=0; i<5; ++i) { printf("Hello #%d", i); #if MYCONDITION printf("I wanna be reached only if i == 3, is that possible?"); #endif }[/CODE] Is …

Member Avatar for miskeen
0
105
Member Avatar for miskeen

Hi, I wish to put the title of each dropdownlist. For example, if I've numbers in my dropdownlist (one, two, and three) I'd like my dropdownlist to be like this: Numbers ------------ One Two Three Also, I wish to know how to add a title if I bound mu dropdownlist? …

Member Avatar for LaraM
0
754
Member Avatar for miskeen

Hi guys, Is there any special method in c++ called get and which doesn't require instantiation? I'm investigating a c++ code and a found this method ((!h264Decoder.get() || !params.get() || !in.get() || !out.get() || !splitter.get() || (!color && !No_CC_Flag))) When i tried to find this method, I couldn't find it. …

Member Avatar for miskeen
0
94
Member Avatar for miskeen

Hello, I've a c++ project in linux and I want to create a text file and share it between more than one source file so that I can write into it instead of using only printf. Can anyone help me please? Thank you in advance,

Member Avatar for miskeen
0
105
Member Avatar for miskeen

Hi, Could you tell me please how can I open a connection to an access database located on a shared folder? Thanks in advance,

Member Avatar for tsci
0
2K
Member Avatar for miskeen

Hi, I'm developping a small website using VS2005 and SQLServer Express. This website will be deployed in a local intranet. I don't know how and what should I install on the pc that will contain this website. Can any one help me please? Thank you in advance,

0
76
Member Avatar for Ravenous Wolf

hi. can anyone tell me the connectionstring for connecting to an ms access database over a network? only the second part, where you specify the location of the database, is needed. i know how to specify the jet engin. let me give an example. to connect to a local dbs …

Member Avatar for miskeen
0
420