49,761 Topics
| |
Hello there, I've been googling around about the definition of SPTI (SCSI Pass-Through Interface). It is somehow related to c++ since it is use to manipulate a drive using the c++ language. Is someone here knows the definition of SPTI, or simply explain to me briefly what it does. Thank … | |
Hi, Im a beginning C++ student and having a very tuff time, but I have been trying for a few hours, and wanted come to you guys with my questions. I have been working on this school project and have figured out every step but two. Can anyone please help … | |
I have a binary tree and I am having problems with one function. It is my add function where I add another node to my tree. I use recursion to call it from within the function. I believe I am not using the correct syntax to call the node from … | |
I'm making a program where there is a function that asks how many players there are, and depending on the answer, it makes an array of classes that size. How can I access the array of classes from other functions? I thought I would just make it global, but how … | |
[LIST] [*][quote]Write a program which finds the factorial of a number entered by the user. (check for all conditions) (Beginner).[/quote][/LIST][code=C++] void findfactor(const unsigned int number) { unsigned int n = number; printf("The factors ot the input number are:\n"); if (0 == n) { printf("%d\n", n); return; } for(unsigned int i … | |
i am trying to write a program that takes information from a file and reads it and then does some kind of encryption, simple as adding one to it I have it reading the file, but how would i go about readings the characters as int's and then adding a … | |
Hey all. Does anyone knows where to get some good tutorials of programming C++ Graphical User Interface? If so, please kindly send a PM and include your contact or reply here. Your help willl be appreciated. Thank you. Xizhe | |
I need to set up 2 buttons to take input from the user, that increase and decrease a variable, it doesn't matter which 2 buttons are used, but preferably the up and down arrows. And I also need to have a display of the variable that constantly updates as it … | |
Is there a way to make a loop that creates strings? I ask the user how many players there are, and then the loop makes that many strings in order to get all of their names... Something like this, (but not in normal english...): [code]cout << "How many players? " … | |
Hello there. I have here a constructor of class CDriveControl and class CSPTIDriver.. [code=c++] class CSPTIDriver; class CDriveControl{ public: CDriveControl(); CDriveControl(const char* pPort); ...... ...... protected: char* m_pPort; CSPTIDriver* m_pSPTIDriver; bool m_bInitFlag; bool m_onlycomp; } [/code] It was defined outside the class. [code=c++] CDriveControl::CDriveControl(void) :m_pPort(NULL) //Object drive ,m_pSPTIDriver(NULL) //SPTI object … | |
I don't ensure whether "0" or "NULL" is better to be an empty point's value in C++. Could anybody can tell me,and why? Then how about it in C, why? Thank you! | |
Can anyone tell me why this doesn't work? I know it's probably really easy, but I did try.... [code]/* ISU program created by Matt in grade 12 programming. */ #include <iostream> #include <list> #include <iterator> using namespace std; class humanPlayer { public: humanPlayer(char thePlayersName, unsigned int thePlayersTurnNum); //constructor ~humanPlayer(){}; void … | |
When using an STL list, how can I check if a certain variable happens to just be in there? Basically, given this already: [code]#include <iostream> #include <list> #include <iterator> using namespace std; list<int> integer_list;[/code] I need a way to code this in C++: [code]if(x is in integer_list){ do this }[/code] | |
Hi, I'm trying to use a program, written by others, that has C/C++ code compiled as part of its setup procedure (it's called Content - integrated environment for the analysis of dynamical systems). However, c++ (or g++ actually) complains about invalid conversions and cannot compile: [code]autodif.c: In function ‘char* Mult(char*, … | |
hey everyone, im making a program that controls my cube using GCNRD. but shellexecute is being a tard to me the code should work like this: enter a value and the program starts gcnrd to poke the value i got that in these lines [code=cplusplus] string CButton; string CoButton; cout … | |
Hi, everyone. I have worked in IT field for about 1 year, before that my major was physics. So I feel I'm just a new guy in this field, and I hope you could help me:) Now, I work in a embedded C++ project on WINCE platform. I'm not very … | |
I'm looking for a C++ book with exercices(solved),practice or something like "tips and trips of c++ language" cause I need to prepare for the exam. If someone know's a kind of this book , pls reply.I searched google , but didnt found what i want | |
I was wondering by using the Visual Studios 2005 and Windows XP could you write code in C# and add some other code in C++? What is happening is that I am updating this program that was previously made in C# and I need to add some security functionality, although … | |
Hi, I am on Fedora Core 5 32+bit and learning standard C++ (not VC++) on my own using the terminal only and not any particular IDE. Is it possible to write and compile a small C++ program that can create very basic types of graphics in a terminal? Not sure … | |
Hi, I want to very simply give a specific control a specific font when creating a GUI. For example, I would like a multiline edit text control to have a courier new font. I have been searching for hours and can't really make much sense of what I am looking … | |
I want to write a server side application for Pocket PC. I wrote it in eVC++ by deriving a class from CCeSocket. But i couldnt accept a connection. How to do socket pgming in PocketPC. My aim is to send messages to pocket pc from desktop application when an event … | |
Program received signal SIGSEGV, Segmentation fault. 0xff2209e8 in _write () from /usr/lib/libc.so.1 (gdb) up #1 0xff212bf4 in _xflsbuf () from /usr/lib/libc.so.1 (gdb) up #2 0xff21000c in _flsbuf () from /usr/lib/libc.so.1 (gdb) up #3 0x00000037 in ?? () (gdb) up #4 0x00000037 in ?? () (gdb) up Previous frame identical to … | |
I need to do a non-recursive function for count the leafs in a tree. I have the recursive algorithm, Can someone help me to figure this out!! count leafs int count_Lnodes(root, int cnt) { if (root != NULL) { cnt = count_Lnodes(root->left, cnt); cnt = count_Lnodes(root->right, cnt); if (root->left == … | |
warning C4273: 'fileHandle::fileHandle' : inconsistent dll linkage. dllexport assumed. what does this warning mean? during debug i dont get this message but during release i have this one. can anyone explain the message to me and maybe give some remedy to it | |
I am using VC++ express edit 2005 but I can also switch to C# 2005 express. I would like to know if there is a cmd similar to the shell function which is found in visual basic. The VB shell cmd basically allows one to execute a dot exe file … | |
What is the difference in these two lines? #define X 100 const int Y 100; Apart from the fact that one is for X and the other is for Y (har har, very funny) effectively don't they do the same thing? Why would one be preferable over the other? | |
Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn … | |
Hi, Trying to overload - and getting this error. I am not sure why.. error C2447: missing function header (old-style formal list?) [code] #include<iostream.h> #include<string> #include<new> #include<ctime> using namespace std; class D { public: D operator- (const D &d2); }; D D::operator- (const D &d2); { //error points to here!! … | |
Hello there, I just want to ask if any of you guys here had experienced writing hardware controllers (dvd-rom, hard disk) using scsi protocol-multimedia commands. I just want to know your suggestions or maybe tutorials or example codes to well experienced in mmc (both windows and linux :)) that would … |
The End.