49,761 Topics
| |
Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing … | |
Hi ALL am completely new to this enviorment , am not sure it is the right section to post my query.. 1 : i have one exe "sample.exe" in my PC 2: i signed this file using the tool "signcode.exe" 3: after that if we right click on "sample.exe" and … | |
Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - … | |
hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i … | |
How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[]; | |
I am trying to write a program in which a big text file is read and then user searches for a word and replaces it with another word. To implement this I was thinking to store the file read into an array since that would the easiest way to implement … | |
I'm getting conversion errors 2446 and 2040 on the red line. Can anyone help me figure out what i've done. I'm new to C++ but I'm expereinced in C# so I do have some foundation. Any help is greatly appreciated! [CODE] string GetString(ifstream & fn, string & s, int length) … | |
Looking through boost random library I've come across literal something like 331u. Does anyone can explain to me what this u is about? [code=c++] void seed(uint32_t value = 331u); [/code] Thank you | |
Hi, this code is merely for testing a coulpe of functions for use in a bigger program, therefore this code alone may seam silly, but there is a point to it:) When i run this and press "1" the program just terminates, pressing "2" or "whatever here" works fine however? … | |
whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it | |
I have little knowledge about this algorithm method .I try to coding the part of the InsertAfter() method to insert the data after a specific location.It seems not working . [CODE] #include <iostream> #include <string> #include <conio.h> using namespace std; class Node { public: double data; // data Node* next; … | |
Is there any reasonably simple code that will do the same thing as the Beep function but for ubuntu? I'd very much like being able to save the music to disk too, but that's not necessary. | |
The assignment is to design a program that determines the gross pay for each employee. Everything seems to work, but when you input more than 40 hours, it doesn't calculate overtime. Another thing is that, i can't get a message to pop up when someone input an invalid input. I … | |
Could someone please tell me a way of uplading and downloading text files without the use of the .net framework and is simple to use. Thanks | |
<< split from [url]http://www.daniweb.com/forums/post865360.html#post865360[/url] >> I'm using Visual Studio 2008 and I don't see the 'Advanced' option in the properties menu. Is it hidden somewhere else? | |
Hello, I want to capture data from serial port. The COM1 port connected with a device and we have software for the device that is need for generating data. The software opens the port, then connects with the device and writes something for generating data. i just want to capture … | |
Hi, I have problem with tray icon, when my processor is 100 % working, sys tray icon loading fails. I do not know how to fix this. I made easy testing program for that, i have thread with critical priority and it make processor 100 % working. During that sys … | |
Hi, I tried to be clever and wrote template (body below), and something is not working as I would like it to. I have to explicitly cast template parameter on desired type instead of function recognize type (by id() method provided in class object); I don't understand why is it. … | |
Hi you guys, just want how do you convert a number to word in c++ if it is in the thousands?:?: | |
Hello everyone, I have been studying SDL for some time now, and would like to exercise my brain a bit. I think this particular challenge would be lots of fun, and I'd love to show off whatever I achieve when finished. [B]Basic 2D maps[/B] Creating a basic 2D map (for … | |
I am writing a iterator class which I am having no problem with yet my problem I am having now is I need to declare some methods as Iterator in my List class and I am getting errors from that. [code=cplusplus] template <class T> class List { friend std::ostream& operator<< … | |
I am trying to self learn C++, and I bought a tutorial book. Right now, I am on a section about recursives. I got the first example, one to output the Fibonacci sequence, but I am stumped on the second one. The exercises do not come with answers, and that … | |
The program was successfully compiled using Borland 5.02. The program controls the input type by user using ASCII codes. The input mode is similar to QuickBasic's INKEY. The program is working and tested okay. Much effort had been put in, but the problem is that the subroutines for handling string … | |
Hi!. I am having some problems with functions scopes again. I need to use one array initialized in one function, in a different function. I have searched on how to pass the array by reference or value ( and I truly don't know if that's what I need) but I … | |
cAN ANYONE PLEASE TELL ME HOW TO GET TEXTBOX VALUE OF EXTERNAL APP WITH VISUAL C++ E.G. HOW TO GET EDIT2 CONTROL VALUE OF PEID LIKE UNIEXTRACT AND USSF DOES? I COULDN'T FIND ANYONE ASKING THIS QUESTION IN THIS FORUM. THANX FOR EVERY HELP! | |
show_int_vector method RETURNS MEMORY LOCATION FOR EVERTHING EXCEPT FOR LAST VALUE. main [code] #include "my_int_vector.h" #include <iostream> using namespace std; int main() { my_int_vector b(0); b.push_back(10); //b.show_int_vector(b); b.push_back(122); b.show_int_vector(b); //b.push_back(20000); return 0; } [/code] Interface [code] class my_int_vector { public: //constructor to create an array my_int_vector(int intial); //prints out the … | |
I am trying to write an API (called logEvent) for an outdated os-level logging function. I would like to call it in the following manner. [CODE=cpp]logEvent << "string"; // or logEvent << "string" << 123 << 0.456 << ... ;[/CODE] I'm trying to accomplish this by overloading the stream operator, … | |
Hello everyone, my name is Vincent, and I am hoping to get help with this subject. -- Visual C++ 2008 Express -- Alright, basically I have a droplist combobox with 8 lines 1 2 3 4 5 6 7 8 that a user can select. I want to have it … | |
Produce a complete C++ game that resembles the “Hang Man Game”, where the player is required to guess a given number/character/word. The player will be given a limited number of guesses. Each time the wrong answer is given, display an appropriate figure that changes accordingly. You may refer to the … | |
Hello to all, i encounter an error like Error 1 fatal error LNK1107: invalid or corrupt file: cannot read at 0x2C8 C:\Program Files\OpenCV\bin\highgui110.dll Additional Include Directories C:\Program Files\OpenCV\cxcore\include C:\Program Files\OpenCV\otherlibs\highgui C:\Program Files\OpenCV\cv\include Additional Library Directories C:\Program Files\OpenCV\otherlibs C:\Program Files\OpenCV\lib C:\Program Files\OpenCV\bin Additional Dependencies cv.lib highgui.lib cxcore.lib highgui110.dll Error Message is … |
The End.