51,593 Topics

Member Avatar for
Member Avatar for takayuki

:sad: I have to submit the assignment tomorrow i got stuck in something looks silly the question is: parking garage charges a $2.00 miniumum fee to pack for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three …

Member Avatar for SpS
0
120
Member Avatar for mmh771

I've made an image processing application in Matlab, that reads an image and stores the width and height of the image in 2 variables, x and y .... Now i want to read those 2 variables in another application (a C++ application) that is running with the Matlab application... Does …

Member Avatar for b4codes
0
117
Member Avatar for agarunk

hello all, I have to create a dll file which can be used in .NET thats why i have choosen ATL project to create dll file. Im developing dll(using VC++.NET 2005) which inturn uses Adobe XMP SDK API's. My basic intention is to use fewer API to ensure that everything …

Member Avatar for Ancient Dragon
0
175
Member Avatar for yuzhang

Here is the problem: Since there was a change in the code skeleton I was given, I had to somewhat modify my already-written codes to suit that minor change. Vast majority of the codes were still the same, so created a file with the same name and copy-paste the codes …

Member Avatar for Ancient Dragon
0
168
Member Avatar for vissor3

i'm taking a computer programming class, and i was given a chalange to create a program in "C++" that would tell you if the number you entered was a Perfect number, being that the sum of all the factors of a number minus itself would = the original number. aka. …

Member Avatar for WolfPack
0
260
Member Avatar for yuzhang

Hi all: The function malloc returns a void* pointer, and so I need to explicitly use type cast e.g.: (struct*)malloc(sizeof(Message_from_server)); I am wondering if it is a legal expression or at least, I should give it a tag name like (struct*message_from_server)malloc(sizeof(Message_from_server)); Thanks

Member Avatar for Ancient Dragon
0
100
Member Avatar for CStallion

I am having problems with a code that I would like to go something liek this [code] string array; int z = rand()%2; switch(z) { case 0: array = {"entry 1","entry 2",...,"entry n"}; break; case 1: array = {"entry A","entry B",...,"entry (letter)"}; break; } //then do stuff with array [/code] …

Member Avatar for SpS
0
448
Member Avatar for Tester99

[COLOR=#000000]Hello![/COLOR] Command line builds: devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /p rojectconfig name ] ] I try to build.........please could somebody tell me what is solutionconfig? Thanks

Member Avatar for WolfPack
0
85
Member Avatar for debugger

Hi there, could someone please help me debug this code. I need it to perform the following tasks 1. Ask the user for the number of cars he or she owns. 2. Create a class to represent a car, and then declare an array of cars. 3. Ask the user …

Member Avatar for iamthwee
0
214
Member Avatar for mhm_ra

hi i need to r write binary(hexadecimal) values into a text file then read this data and manipulate it as a number :sad:

Member Avatar for Dave Sinkula
0
269
Member Avatar for arrogant

can u ppl help me in implementing trie........... i need complete data structure of trie...............and how to implement it????

Member Avatar for iamthwee
0
265
Member Avatar for rajkaC

Hi Every body I want to know how it is possible to connect to database whether it may be Oracle,Ms-Access.I am using Turboc2 Compiler and windows OS and i found something like ProC that is file extension as .pc in Oracle 9i is there any relation between these i want …

Member Avatar for Ancient Dragon
0
107
Member Avatar for geez85

Hey, i just got alil problem. Im trying to create a 2d array with a size of [1000][1000]... [code] double variable[1000][1000] = { 0 }; [/code] its compiles fine but when i run the program, it just crashes...is the array too big?? the maximum i can get is [300][300]...any ideas??

Member Avatar for dubeyprateek
1
4K
Member Avatar for complete

What are some of the pluses and minuses of MFC? I think it is better to do a lot of things that are complicated without it. Any thoughts?

Member Avatar for dubeyprateek
0
442
Member Avatar for grindit

hi im new to the forums and im stuck on a part of my code that i need to do for homework in the code below in my loadPuzzle function it seems to skip my cin.getline and i dont know why. [code] #include <cstdlib> #include <iostream> #include <fstream> #include <cstring> …

Member Avatar for SpS
0
216
Member Avatar for ontrix

Hi there im wondering how to use a time delay in my code. What i have done is searched through a saved file and picked out infomation the send it to the rs232 port. what i want to do is create a time delay of 100 micro seconds for every …

Member Avatar for Ancient Dragon
0
398
Member Avatar for gampalu

I'm programming in C++ and I've been told that "printf" is faster than "cout", so since then I've been using "printf" instead of "cout". Do you recommend my option or not? thanks

Member Avatar for Dave Sinkula
0
131
Member Avatar for Joncamp

I wrote a cgi-bin program to run with Apache/Linux. When I do a form-post operation from a web page to my cgi-bin program, the form fields are not passed to the cgi-bin program? The cgi-bin program runs ok and returns some html through stdout, but doesn't read any form fields …

Member Avatar for Dave Sinkula
0
163
Member Avatar for jazzz

I need to sort a list of numbers Here is the sample input: code -> subcode -> brandcode ( each code has a subcode and each subcode has a brandcode) [code] 7366->65535->65535 7379->65535->65535 7379->65535->65535 7379->65535->65535 7366->65535->65535 7366->65535->65535 7379->65535->65535 7366->65535->65535 9113->65535->65535 7379->65535->65535 7315->5->65535 7314->65535->65535 7315->5->65535 7314->65535->65535 7379->65535->65535 7314->65535->65535 7314->65535->65535 7314->65535->65535 7311->65535->8 …

Member Avatar for iamthwee
0
2K
Member Avatar for nanodano

Hey everyone, I'm trying to write a simple program that can do more than one thing at once. I'm not an expert on the iostreams, so I don't know if I need to create threads to accomplish what I want. What I'm trying to do is run a loop while …

Member Avatar for dubeyprateek
0
115
Member Avatar for achala

hello, am doing a project for school . it involves a lot of file and string operations and i keep compiling the code over and over again to see if it is working properly ... all of a sudden the code simple stopped executing .. the code ran a number …

Member Avatar for Ancient Dragon
0
226
Member Avatar for CStallion

[code] int r = rand()%2; switch(r) { case 0: string x[] = "Hi."; break; case 1: string x[] = "Bye."; break; } [/code] Will this code produce a conflict on the string "x"?

Member Avatar for CStallion
0
96
Member Avatar for MrLew

I am trying to write a program to convert a roman numeral to decimal. If I define a variable with: [inlinecode]char roman_num[15];[/inlinecode] can I then select individual characters in that roman numeral with: [inlinecode]roman=roman_num[i];[/inlinecode] where "i" is a number value of the character I want to retrieve from 0-14? Also, …

Member Avatar for Dave Sinkula
0
263
Member Avatar for CStallion

I know how to change the console text color using this code [code]HANDLE hConsole; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hConsole, ###)[/code] But suppose I need to change colors frequently and on different output lines. Is there a shorter way to do it, like [code] cout[color=red] << "text"; [/code] ??? Rant: Google searching …

Member Avatar for CStallion
0
309
Member Avatar for aeinstein

Hi all, I'm transistioning from the networking end of things and moving to the programming side, so, even though I've been around here for quite awhile, I have a pretty basic queston: since the char data type has a minimum range values between -127 to 128, how is a letter …

Member Avatar for aeinstein
0
173
Member Avatar for Kiba Ookami

I was on Cplusplus tonight, learning a bit about data structures (which I like). Well, I copied and pasted one example, ran it, learned a bit. Then I tried the same for the second. Here's the code for the second... [code]// array of structures #include <iostream> #include <string> #include <sstream> …

Member Avatar for WolfPack
0
239
Member Avatar for jamezun

Hello! eveyone! I am new in here! But I got some urgent problem need to be solved shortly! please help me! I am designing a simple GUI card game by VC++.NET My game isnt complicated. However, I want to add some sound effect like maybe when I click a button? …

Member Avatar for jamezun
0
149
Member Avatar for Malcolm87
Member Avatar for ifti
0
120
Member Avatar for bkelly

I have "discovered" a need to do some development for an embedded system. We have a PC-104 computer that boots MS-DOS 6. It does have VGA display and regular keyboard input. I need to develop some code to drive a digital I/O board. I can do this is C or …

Member Avatar for bkelly
0
133
Member Avatar for Aenima

First of all, hello everyone. My problem is this. In writing a program which accepts multiple user inputs of type [B]int, [/B]during the first run through the program, after the first [B]cout << [/B]statement prints, I have to press enter twice in order for the second [B]cout [/B]statement to display. …

Member Avatar for Aenima
0
264
Member Avatar for sufi

<<split from: [thread]42172[/thread]>> [QUOTE=weehoong]Hi there guys! Just want to say these communities are great! i've really benefited alot from the forum and its tutorials. Special thanks to [B]FireNet [/B] and his file handling tutorials. It really helped me alot! Not forgetting, thanks alot to all of the members here too. …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for gladiator1919

HI members; This is a memory game with c++ concole application. This is the code: [CODE]#include<iostream.h> //MEMORY GAME. #include <algorithm> //DESIGNED BY GLADIATOR1919. #include<ctype.h> //GLADIATOR1919@GMAIL.COM. #include<time.h> //ALL RIGHTS RESERVED. #include<windows.h> int e,i,j,q,m,n,x=0,row_1,column_1,row_2,column_2,score=0; char rand_1[16]={'a','g','h','j','k','a','s','d','f','g','s','d','f','h','j','k'}; struct mem_char { char ch[5][5]; }; char re_play; mem_char char_1[2]; void end_game(); void input_first_point(); void input_second_point(); …

Member Avatar for SpS
0
3K
Member Avatar for bibo1978

I want to write a c++ code that generates a DLL, the purpose of the exported Function is to do some processing on data on the memory, the main problem here is that I want my code to return also a memory pointer, yet I don't know exactly how to …

Member Avatar for Ancient Dragon
0
76
Member Avatar for nanodano

Hey, I have a problem using Visual Studio 2005. In the MSDN library it says there is a function called SetConsoleDisplayMode. This function though is not in the 2005 library. I'm assuming its an old reference from VS 2003. Does anyone know how to tell a console program to switch …

Member Avatar for SpS
0
830
Member Avatar for newgurl

Hello, Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple: [code]#include <iostream> #include <string.h> using namespace std; ... ... ... int id; string name; int item; float cost;[/code] int is bold, float is bold, but string is not... …

Member Avatar for WaltP
0
272
Member Avatar for tyczj

i dont even know if im on the right track with this one but here it goes. im trying to write a delete function for a BST and this is what i have [CODE]bool BST::delNode(Key key) { BST_Node* node; BST_Node* p; if(findKey(key,root)) { if(root == NULL) return false; if(key == …

Member Avatar for iamthwee
0
300
Member Avatar for newgurl

Hello, I am new at this. I am trying to work with calling functions here. (Eventually I want to do some simple calcs on cost of going through a station...)but am getting an error on line marked with ***** initialise line within main int(). Can someone kindly suggest why it …

Member Avatar for WaltP
0
3K
Member Avatar for complete

This is a little embarassing asking this because I used to know this. How do you create a seperate thread in C++ and have mutexes, semiphores and all that. I have forgotten and I wonder if anyone knows a good example.

Member Avatar for complete
0
119
Member Avatar for deepakkrmehta

hello all group members plz explain me topic in c++ this topic from exception handling 1. constructor,destructor and exception handling. 2. exception and inheritence 3.and also clarify me idea abt proxy class with example because i m 1onfuse with composite class these classes seems to be same 4.container class and …

Member Avatar for Dave Sinkula
0
165
Member Avatar for rontab68

Hi, lets say I have an array of numbers then I want to display a certain array element. the value inside it,that is. in pseudo code that would be.. int array[5][5]; for(x=0;x<6;x++) { if x= array[0][1]; } ; ; ; message output " the value is array[0][1]" I want to …

Member Avatar for rontab68
0
164
Member Avatar for ghadahelal

hi all, i have a program that read a float number, but with in the program i need 2 deal with the integer only ex. 33.78 i need 2 deal with 33 45,01 ----> 45 66.99----->66 and so on

Member Avatar for ghadahelal
0
149
Member Avatar for saman

HEYZ CAN ANYONE GUIDE ME WHCIH PROJECT TO TAKE UP IN C#.... THAT IS MARKS GAININ....NEED UR HELP DEAR PEOPLE OUT DERE...LOOKIN FORWARD FOR SOME NICE IDEAS N HELP RELATED TO THOSE IDEAS....REPLY SOOONNNNNNN :confused: :lol:

Member Avatar for alc6379
0
140
Member Avatar for CStallion

I need to insert a "é" and other such symbols. At first I just tried using é straight out in C++ and it returned Θ. So I looked at my character map and did the unicode version \u00E9 where I wanted the é and it still returned Θ. I guess …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for CStallion

I apologize, the topic of this thread has nothing to do because this post was started about a parse/syntax error but I solved it on my own and now this is something else, hopefully simple! I have this function that goes like this [code] void er(void) { string erbase[] ={"parl", …

Member Avatar for Dave Sinkula
0
252
Member Avatar for pab

:sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: :sad: HiI HAVE TWO PROBLEMS!!!!!!!!!!!!!!!!!!!!! The first problem occurs when I run a virus scan. I contacted EZ ANTI VIRUS and the company said that this problem is a MICROSOFT problem because I ran a scan in the …

Member Avatar for Chaky
0
215
Member Avatar for wwaall2004

hi every one iam new member in your sites and i hope i will find what iam looking for:rolleyes: so my friends i really want ur help iam students in univerisity 3rd level and our teacher ask us to write program in c++ this one below { [COLOR=#000000]Develop an [B]Airline …

Member Avatar for wwaall2004
0
366
Member Avatar for GM2001

I need some help with a program concerning files. a)I have to create a file with the following information: 1. Honda 4000 2.Toyota 3000 3.Mercedes 8000 4. Toyota 3500 5. Honda 2900 create the necessary data structure to represent the above data in a program. create the necessary variables and …

Member Avatar for Dave Sinkula
0
93
Member Avatar for letish

Hello All, I am hoping someone can help. I am working on a project that requires me to create a telephone VDU system. I have done all the hard stuff but it's just some of the easier bits that are evading me like... a) The user must press "enter" to …

Member Avatar for Lerner
0
509
Member Avatar for freemind

Hi to all! I'm writing a simple simulation program for elevators but i get a problem, namely: [CODE] elevator.cpp: In constructor `Elevator::Elevator(int)': elevator.cpp:41: error: no matching function for call to `Button::Button()' elevator.cpp:10: note: candidates are: Button::Button(const Button&) elevator.cpp:16: note: Button::Button(int, bool) elevator.cpp:41: error: no matching function for call to `Button::Button()' …

Member Avatar for freemind
0
394
Member Avatar for Kiba Ookami

There is only so much I can learn from free online sites (though I have learned some important things) and was wondering what books you would reccomend to further my C++ study? Additionally, I've heard bad things about my compiler, Bloodshead DevC++, in that it would be abandoned or is …

Member Avatar for vegaseat
0
140

The End.