49,761 Topics

Member Avatar for
Member Avatar for Divinginthesky

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 …

Member Avatar for zautner
0
101
Member Avatar for _dragonwolf_

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 …

Member Avatar for _dragonwolf_
0
163
Member Avatar for fuggles

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]

Member Avatar for wildgoose
0
110
Member Avatar for kentigens

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 = …

Member Avatar for VernonDozier
1
250
Member Avatar for dombit

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 …

Member Avatar for nmaillet
0
109
Member Avatar for DIDL

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....

Member Avatar for JameB
0
71
Member Avatar for anonymous23

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:

Member Avatar for wildgoose
0
85
Member Avatar for TheBeast32

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:

Member Avatar for nicsor
0
166
Member Avatar for calavan11

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 …

Member Avatar for wildgoose
0
95
Member Avatar for trinity_neo

hello all need help in solving this problem print current time in a file for every 1min. thank in advance.:)

Member Avatar for trinity_neo
0
74
Member Avatar for fish786

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 …

Member Avatar for fish786
0
203
Member Avatar for minime2100

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 …

Member Avatar for Nick Evan
0
129
Member Avatar for veronica_0501

hello, is there anyone who could help in saving and loading binary trees? is there any source code i can refer to?? thanks alot. (:

Member Avatar for Nick Evan
0
75
Member Avatar for rahim_rasimin

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 …

Member Avatar for Ancient Dragon
0
133
Member Avatar for Bladtman242

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 …

Member Avatar for Bladtman242
0
224
Member Avatar for tomtetlaw

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 …

Member Avatar for thelamb
0
125
Member Avatar for mediachicken

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 …

Member Avatar for necrolin
0
125
Member Avatar for daimon

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. …

Member Avatar for wildgoose
0
104
Member Avatar for didijc

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 …

Member Avatar for wildgoose
0
120
Member Avatar for 23.12.2012

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 …

Member Avatar for 23.12.2012
1
210
Member Avatar for calavan11

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 …

Member Avatar for calavan11
0
124
Member Avatar for Yaserk88

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 …

Member Avatar for Lerner
0
105
Member Avatar for koculan

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]==' ') { ???????????? ????????????

Member Avatar for JameB
0
3K
Member Avatar for cougarclaws

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 …

Member Avatar for cougarclaws
0
132
Member Avatar for atch

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 …

Member Avatar for atch
0
70
Member Avatar for metdos

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 …

Member Avatar for m22
0
323
Member Avatar for whotookmyname

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 …

Member Avatar for rdrast
0
95
Member Avatar for clisen

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 …

Member Avatar for ashishchoure
0
193
Member Avatar for #define:me

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 …

Member Avatar for Salem
0
117
Member Avatar for metdos

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 …

Member Avatar for Salem
0
131

The End.