49,761 Topics
| |
I am able to generate the output file but it does not execute. This is what I do: g++ program.cpp -o program then I can see the program as the output file but when I type program it says: It says bash: program: command not found. So, what am I … | |
I am having to write a program that has a user-defined class. In this program I need to convert an INT to a STRING. For example, if the program reads in the date "7/17/2009" it will need to be converted to "July 17, 2009", where all it does is take … | |
What is the best way for me to send and int[999999] accross a socket? When I just plug in the pointer to the array I get this error: [icode]Error 1 error C2664: 'send' : cannot convert parameter 2 from 'int (*)[999999]' to 'const char *'[/icode] | |
Hi, Im currently implimenting a nested for loop, but there seems to have some known bugs and i dont know whats causing it , how to fix it, etc. Heres part of my code: //using some of vector<structs> below: [code=c++] void Profile() { int wire = 1; int face = … | |
ok, so i tried about everthing, to print the box charaters in a console window. but all i ever get is ? i am gusing the console font done not support these charicters. so is there a way to change the console font for my aplication throgh c++. i am … | |
Hi im new in this program but i want to work with C++... i know the basic comands but i want to make the interface o litlle game.... but i dont understand how.... | |
Can someone please give me some problems or activities using if, else/if, and nested if statements???? i need 5 for each.. it would be better if u give the c++ codes for each problem..:) this will be for my project.. hope u guyz helpme:icon_cheesygrin: | |
Hi, I need a way to see if a mouse button is up or down, if the wheel is being used, and if so, which direction the wheel is moving using a hook or something like that. MSDN didn't help me much. Also, I'm using Dev-C++ 4.9.9.2.:yawn: | |
I am working on a program that uses an array called Game that can store 26 characters. It asks the user to to enter a single letter and a number between 1 and 26. It then places the letter they entered into the position in the array referenced by the … | |
hello all need help in solving this problem print current time in a file for every 1min. thank in advance.:) | |
I am new at programming and would like someone to assist me as to what I am looking for? As far as I know I have followed the instructions I found on one of the sites. Can someone please help? I am using VStudio 2008, creating an MFC application. I … | |
Hello all, I have to do a mid semester project for my online C++ course and I am having trouble finding a place to start. We were given a list of what needs to be included within the program that I am to write. I just don't have anything that … | |
hello, is there anyone who could help in saving and loading binary trees? is there any source code i can refer to?? thanks alot. (: | |
Please advice me what is the most suitable Design Pattern for C++ to create Data Access Layer. Objective is to have clear separate layer for Presentation Layer, Business Logic, and Data Access Layer. Sub Question: 1. In C#, there was Dataset class to get data tabular records from query. What … | |
Hi guys and girls. I was wondering; is there a way, using winAPI or external libs and whatnot, to check the internet connection etc? more important; check the speed the conmputer is currently uploading at? The goal is to make a program that monitors the internet connection, and if the … | |
When I try to build my project(im using VC++), I get this wierd error: [code] ------ Build started: Project: DarkGDK Engine - By Tom, Configuration: Debug Win32 ------ Embedding manifest... mt.exe : general error c10100b1: Failed to load file "..\Debug\DarkGDK Engine - By Tom.exe". The system cannot find the path … | |
So I know I can run a terminal command, ok? What if I want to run say... a vi command or mkdir command INSIDE ssh? If I want to make it insert a directory in a server via SSH, possible? Last time I checked I think when you run commands … | |
Greetings all, I'm working on a classic Elevator Simulator problem and have a quick question: How can I access a private data member of the container class from one of the contained classes? My Building class (container) "has a" vector of Floor objects and "has a" vector of Elevator objects. … | |
Hey C++ guru's... I would really appreciate some help... I'm building a general tree (a tree with one root and N children), I've written the code and compiled it quote/un-quote successfully... ...however, I can't seem to get my delete function working properly -- what I want to do is pass … | |
Hi! I opened this thread because I've found out that, as I'm making my way through a textbook, I find many problems which I can't figure out for myself. To start, **Thinking in C++** has this buggy program right in its second chapter. The code looks OK to me, but … | |
So im trying to display the largest value entered and the smallest value entered. i can get my code to compile and run the largest number if its greater than o and the smallest number if its less than 0. but i want to be able to cover all numbers … | |
I have a csv file that is being read as a continous string of different characters and values(integers and Real #'s). I separated these 35 different values by interating with factor of 35. My goal now is to convert these different characters and values into int, float, and keep some … | |
Hai,im trying to do program using strings.The difficulty is that, i want to remove double spacing in the sentence.I dont know which function to use and the coding for it?please help me? //to remove double spacing-task 6 int i,k=0; for(i=0;i<s.length();i++) { if (s[i]==' ') { ???????????? ???????????? | |
OK, I hope I "wrapped it correctly, but if not, please advise and I will be sure to do this correctly from here. I am having issues getting my nesting to work. Can I go this deep? Should I try switches? The program function should return values based on age … | |
Hi, it's me again, Another two problems which I'm having with this example is that when in ofstream constructor I specify mode as binary: ofstream fout("my_file.txt", ios_base::binary); nothing is written to a file (at least I can't see there anything) and another problem which I cannot cross is that I … | |
This is the situation, I wonder the reason. in .c file this works properly[CODE]vciDeviceOpen(&sInfo.VciObjectId, &hDevice);[/CODE] and this gives error :error C2440: 'function' : cannot convert from 'VCIID' to 'REFVCIID' [CODE]vciDeviceOpen(sInfo.VciObjectId, &hDevice);[/CODE] but in .cpp file this works properly[CODE]vciDeviceOpen(sInfo.VciObjectId, &hDevice);[/CODE] and this gives error :error C2664: 'vciDeviceOpen' : cannot convert parameter … | |
I need to do the following in a .csv file using a c++ code 1. open the file 2. read the first line...extract the number part of it 3. enter the user entered data at the end of the file (append) 4. now add the extracted integer and a certain … | |
Hey there, I'm setting up a default program to use as a template for my future DirectX applications. The program compiled fine but I'm getting a run time error in my WinMain() function. Here is the WinMain() function. [code=c++]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmd, int show) { MSG … | |
I have an urgent assignment to write a c++ program and I lack time to learn the whole language. Is there anyone willing to give a detailed outline enabling me to write the program myself? I simplified the assignment and will describe it in terms of algorithms. background The program … | |
I have this global variable. [ICODE]void * userInterface;[/ICODE] and this line in main.cpp [ICODE]_beginthread( ReceiveThread, 0, NULL);[/ICODE] and ReceiveThread [ICODE]void ReceiveThread( void* Param ) { ........... QString str; rovkonInterface *w=((rovkonInterface *)userInterface); w->ui.systemStatusText->insertPlainText("abc"); ........ [/ICODE] and I get runtime error: ASSERT:"qApp && qApp->thread()==currentQThread" in file .... and I tested same code … |
The End.