473,748 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
7
14,593
thread by: Alex | last post Feb 28 '06 by: Gavin Deane
Hello people, I have a code written in JAVA that creates field of bytes: byte uuid = new byte; Now I have to translate this line into C++. I'm working in VS 6.0. (unfortunately I have to). Is there any class in MFC framework that I can use like bytes? Or I
4
37,339
thread by: slick_shoes | last post Feb 28 '06 by: fred
What would be the best way to switch program flow based on a string the user enters? I found out the hard way that char*'s can't be used in a switch statement, so i've resorted to stringing if-else statements together. Is there a more efficient way to do this? Thanks slick_shoes
69
5,587
thread by: fieldfallow | last post Feb 28 '06 by: Jordan Abel
Hello all, Before stating my question, I should mention that I'm fairly new to C. Now, I attempted a small demo that prints out the values of C's numeric types, both uninitialised and after assigning them their maximum defined values. However, the output of printf() for the long double 'ld' and the pointer of type void 'v_p', after...
3
2,875
thread by: soga | last post Feb 28 '06 by: Phlip
Dear all: I'm looking for one tool that can deal with black box testing and it is opensource. So, what choices I can make???
1
1,811
thread by: francomalatacca | last post Feb 28 '06 by: Jay_Nabonne
Hi, I'd like to acquire image or video from a webcam in windows, but i dont'know from where i must start to do it. I've seen some example but they use the a windows' dialog window to grab the image, but i'd like to select the device and get the image.Is it possible? Where i can find informations about it? Sorry about bad english :-) Thanks in...
1
7,649
thread by: priyam.trivedi | last post Feb 28 '06 by: Vladimir S. Oka
I saw this in one article but I cannot understand why the coder has used z--. I did it without z-- and it still works the same. Please help. Priyam Trying to print the following pattern but...
5
2,045
thread by: all2neat | last post Feb 28 '06 by: Tomás
Hello, I'm looking to teach myself managed C++. I'm trying to make a simple application. How do I import the number from a text box into a variable of data type long. in vb i would do something like dim var as long var = textbox.text
4
1,709
thread by: ma740988 | last post Feb 28 '06 by: mlimber
Experimenting with smart pointers here but need a refresher here. Consider the snippet: # include <iostream> # include <string> using namespace std; class ying {
14
1,661
thread by: Aleramo | last post Feb 28 '06 by: Richard Bos
I don't understand the reason cos this cycle: do { printf ("\nCome devono essere posizionati gli elementi?\n") ; printf ("* premere E, nel caso di posizionamento sul piano E\n") ; printf ("(ricezione onde orizzontali);\n") ; printf ("* premere H, nel caso di posizionamento sul piano H\n") ; printf ("(ricezione onde verticali).\n") ;
2
1,598
thread by: Protoman | last post Feb 28 '06 by: Rolf Magnus
I'm getting a system error on this piece of code on WinXP: #include <iostream> #include <cstdlib> using namespace std; int main() { volatile int* p=reinterpret_cast<int*>(0x59861); for(int i=0;i<20;i++) cout << *p << endl;
7
1,732
thread by: key9 | last post Feb 28 '06 by: Ben Pope
Hi ALL. Basic Question. sample: class MyClass { ....
5
1,647
thread by: srikanth | last post Feb 28 '06 by: Richard Heathfield
what are the processes that happen after compile starts ////////////////// -----------------------------why is it i find 150 or 100 lines compiled in the message box though it is a 10 or 09 lines program
5
1,429
thread by: Eric | last post Feb 28 '06 by: Eric
Shouldn't I be able to do this? In file1.cpp: extern const int aConst = 8; = = = = = = = = In file2.cpp
1
1,851
thread by: coinjo | last post Feb 28 '06 by: Ben Pope
Can anyone please tell me how to take input from user of random length and then display it?
11
1,929
thread by: Matthias | last post Feb 28 '06 by: benben
Hello, templated virtual member functions are not allowed. Now I am searching for a good workaround for this problem, but I can't find any. Here's my problem: class Base { template <typename T> virtual void setParam(std::string s, const T& value);
2
2,065
thread by: sweety | last post Feb 28 '06 by: osmium
Hi, Want to write the following struecture in to a file insted of writing each data, how the serialize support for this. Would be great if sample code or the interface info provided. Strcture as follows.. typedef nextstruc2{
3
2,139
thread by: is_vlb50 | last post Feb 28 '06 by: Barry Margolin
I have problem with pass structure to thread function in SOLARIS.When I pass it to created thread it always has empty values. my structure defined as: typedef struct momMSG{ struct mbhdr hd; struct SCRIPTMSG MOMBuf; }MY_SCRIPTMSG; In my main function:
1
345
thread by: is_vlb50 | last post Feb 28 '06 by: Keith Thompson
I have problem with pass structure to thread function in SOLARIS.When I pass it to created thread it always has empty values. my structure defined as: typedef struct momMSG{ struct mbhdr hd; struct SCRIPTMSG MOMBuf;
7
1,805
thread by: ankitjain.bvcoe | last post Feb 28 '06 by: Ben Pope
Hi i have the following problem in my design :::: i want to define an abstract class LogBuffer and derive two singleton classes from it i.e AlarmBuffer and FireWallBuffer.For this my design is such that i have to define data members in class LogBuffer.i.e ************************************************************************************...
2
2,057
thread by: BKMiller | last post Feb 28 '06 by: Zara
Hello everyone, I'm just getting started playing around with C++, so please don't laugh too loudly at my crude source code, okay? (o^^o) I'm combining together several introductory exercises into one small program. My compiler and IDE is Visual C++ Express Edition, and the book I'm using is Teach Yourself C++ in 24 hours by Jesse Liberty...
1
2,711
thread by: A C | last post Feb 28 '06 by: John
Hi For use with a c++ created dll. The idea is that client will purchase time based licenses (eg 2 months) and the dll will check with the license management software each time it is run to check the license is still valid. ---> The license check must be internet based, ie the license managment software goes to an external webpage to...
2
9,532
thread by: bob | last post Feb 28 '06 by: bob
how do i set a floating point to the maximum float value in c++?
3
2,415
thread by: Willing 2 Learn | last post Feb 28 '06 by: Willing 2 Learn
Hey, I'm trying to teach myself C++ and I came across 3 problems. I understand the concept of FSA but getting the C++ code to do it as become an issue. Only thing is im clueless as to how to do them; these are: 1) Devise a coding system to send CAPITAL LETTERS using the ASCII code. Assume the lights will be ON when you start sending, and...
2
1,956
thread by: FUGATO | last post Feb 28 '06 by: FUGATO
How I can design a Hare and tortoise using pointer? Somebody can give an idea about that.
0
1,643
thread by: Willing 2 Learn | last post Feb 28 '06 by: Willing 2 Learn
I'm working on this program below but im stuck. after it finds a match b/ween sentence & non_terminal it will output where these are found in both strings. I need it to spit out the rules with a matching LHS related to that non_terminal; i want to allow the user to select a rule (from # key)they want to use. When the user selects a specified...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.