49,761 Topics
| |
Hello, Usually I can find solutions to problems that seem to arise when I'm coding for this game, but I'm stumped on why this is happening.. So I found out how to get the text from the last line of the text box on this game, and I want to … | |
Hi All, I am having problems with reading input from a sequetail file and I can't figure out what is wrong. Can someone please help me out, I don't know if I am even doing it right, very new at this. The code below is how I generated my .txt … | |
Hi friends, I want (a C++ code) to hide a process in kernel 2.6, I don't want monitoring even in /proc. please help me. Regards, Eilya | |
Can somebody tell me whats wrong with this codes? I’d try to write this program but have error. I don’t how to make it correctly. Please help me! -da question- Write a program to process weekly employee time cards for all employees of an organization. Each employee will have three … | |
I was tinkering around with code in C++ last night trying to make a template algorithm that would be evaluated at compile time and also print information. Unfortunately, because std::cout and std::cin are references to objects and they aren't considered built in types (directly at least), I suppose the compiler … | |
Well I am sure that my code is right. but in my main ().. my cout <<myTree casues an issue and I dont know why . any help would be much needed... I am almost there. | |
I'm almost done with my assignment but now I'm stuck with some binary file problems. Below is the binary file section of my work. [CODE=cpp]cin.ignore(); cout << "\nPlease enter filename: "; cin >> openBinary; ifstream finBinary; finBinary.open(openBinary, ios::in | ios::binary); if (!finBinary.good()) cerr << "File could not be opened" << … | |
Hi everybody! I have some questions related to database servers. I writing in C++ under GNU/Linux, and i need to use database in my app. Small description: My app will use database very hard, so i need faster database. And for now i need real advice. Which database to use? … | |
this is the program: [code=cplusplus] #include <iostream> using namespace std; int main() { double f0, speed, f1; f0 = 2e-10; speed = 75; f1 = ((speed + 6.685e8) * f0) / (6.685e8 - speed); cout << "The return frequency corresponding to 75 miles per hour is " << f1 << … | |
hey, This might be naive, but how come this bit of code isn't working??? [CODE] int lc=0; read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; }[/CODE] Have looked through the internet, and this code seems to be fine, so what is it that makes it not work?? the output is always … | |
I have some questions about using Cavium CSP, which need your kindness help. According to the explain in MSDN, the function 'CryptDestroyKey' of CRYPTAPI will not only destory the key handle, but also free the memory that the key occupied. But using Cavium CSP, the function does not free the … | |
I have a class that has functions which use <stdio.h> and <stdarg.h> to take in indefinite arguments, and one of the member functions taking in filenames. There's another function (call it the "do" function) where I want to read from ifstreams created from those indefinite number of filenames. I can … | |
hello everyone, im new to c++. i was able to create a dll using vb.net, created it as COM CLASS. this is for me to be able to create a .tlb file which will be imported to the c++ version 6. my question is how will i import this library … | |
I have this problem. This program runs well except that it skip the value of the first item in list. I think it is because of the cin.ignore(). But if I don't use the cin.ignore(). The cin will only read the first input and none after that. Help? [CODE=cplusplus] #include … | |
I really need help. I'm pretty new to c++. I want to send a simple keystroke to notepad (not really notepad, but I'm using it while I learn). I might have forgotten something, I don't know. I have a feeling it's some retarded mistake... [CODE]#include <windows.h> #define VK_A 0x9E void … | |
I am currently using the ODBC class for c++ to connect and query a SQL database. I am calling a stored procedure within the database like so: [code=cplusplus] try{ myCon->Open(); OdbcCommand^ myCmd = gcnew OdbcCommand(MySP,myCon); //MySp is my store procedure and myCon is the SQL server connection string myCmd->Parameters->Add("xml",OdbcType::Char,200); myCmd->Parameters->default[0]->Direction=ParameterDirection::ReturnValue; … | |
I'm writing a Win32 application for Windows XP with Visual Studio 2005. It is a console program, and I'm trying to find the HWND attribute of my console. I need this because I need to use it as a parameter for a function. So, thanks to the MSDN library I … | |
Hi, I am currently trying to create a program where I input a file called "exp.txt" that contains two columns: 1) date 2) expenses. There are 100 rows. Essentially I'm trying to read a file containing DATE-EXPENSE pairs and find the average EXPENSE between two specific Dates. Eventually, I will … | |
Part of the code from the program I'm having trouble with. The deletion of array element for this doesn't work properly. Can anyone tell me why? I can't spot any mistakes though zzz, [CODE=cpp]cin.ignore(); delStudentCounter = 0; cout << "Please enter ID to delete student: "; cin.getline(delStudent, 50); for (int … | |
There is one detailproblem that always occurs when I read text from a file and then putting this text to a multilined richTextBox. What happens is that the text begins on Row number 2 in the textbox and not on the top(Row 1). It seems that a linecharacter perheps is … | |
Dear all, I am trying to print out some outputs defined by my own in different function calls and classes into a debug file, I saw in one source code using macros like: #ifdef DEBUG_OUTPUT #define debug2 printf #else #define debug2(arg1,...) #endif and with a call to this macro like: … | |
Which is better? We're designing a new autonomous robot for the competition we attend during the summer and this is one of our topics for design. I want to do a dual-processor, multi-core computer to run the software. Some others want to do distributed computing (between two laptops). Am I … | |
I've been trying to compile a program I wrote with QT on a Mac for about a week now and I can't get it to work for the life of me. I'm very confused because the code compiles just fine on a linux machine using a core 2 duo, and … | |
guys i need your help now, tomorrow will be our submitting our program but i have some problem about my program which is the infix to postfix then getting the answer.. I have already the infix to postfix then i don't know how to get the answer, this program is … | |
i m starting to learn c++. i m trying to do a console app. this is my code but i encountered a problem with it after i key in num1 and num2 the total will be display for about a few mili seconds and the console terminate itself. if i … | |
I have been trying to follow what you guys where doing here because I have to do something simalar. Can you tell me what the name of your file is jaffo, is it a .dat or a .txt file? You where using ary, is that the file name? Acient Dragon, … | |
Hi, I'm using a program called FunEditor which compiles in C++. I doubt many people have heard of this program, but if you have, I would appreciate the help. I'm working on creating a Mario-style platformer game, and am trying to make a function where if the Player collides with … | |
Why static data member 'int' could initialize in class body? but 'double' can't? eg: [code=cplusplus] class Example { public: static double rate = 6.5; //wrong... static int versize = 20; //right } double Example::rate = 6.5; //yes [/code] What reason by design that syntax ? | |
I am working on an assignment for my Data Structures and Algotithms in C++ class. My program will take a user input string and determine if it is a palindrome. I have to use stacks in this program. My program compiles with no errors but the following warning is displayed: … | |
I am trying to understand COM memory layout and using C++ classes just confuses me. In general I understand what is going on with the double indirection of function pointers but as so often is the case in programming one must understand the ugly details – not just the generalities. … |
The End.