51,593 Topics

Member Avatar for
Member Avatar for kylcrow

Hi all, I am writing a program to make a binary tree. I have all the class/structure part fine, I just want to make the program unbreakable. I am asking the user to input strings, and I am putting those strings into the tree as all lower case (I also …

Member Avatar for dougy83
0
109
Member Avatar for nani_amb

hi.. i'm having trouble with my project.. i keep getting "Unhandled Exception" [code=c++] # include <conio.h> # include <stdio.h> class bank { float x; public: void deposit(); void withdraw(); void disp_det(); }; void bank::deposit() { float more; printf(" enter the amount to deposit: "); scanf("%f", more); x += more; } …

Member Avatar for amitahlawat20
0
115
Member Avatar for aminit

Hello all: I create a simple source file in VC++ , I tried something simple,there is two strings: string1:MICROSOFTCPP string2:HELLO I want to write a code to make string2 is equal with string1,so it must be string1:MICROSOFTCPP string2:[COLOR="Green"]HELLO[/COLOR][COLOR="Red"]HELLO[/COLOR]HEL so it seem the string2 its repeat itself until it's length is …

Member Avatar for amitahlawat20
0
120
Member Avatar for Code.n00b

[code=c++] #include <iostream> #include <cstdlib> using namespace std; double amountSold; double galSold; double price; int start; int pump; int main() { price = 2.85; galSold = 0; pump = 1; while(pump==1) { cout << "Sales Total " << amountSold << endl; cout<< endl; cout << "Gallons Of Gas Sold " …

Member Avatar for WaltP
0
121
Member Avatar for afg_91320

hi. i am working on an assignment where i have a file that has a list of numbers. using those numbers, i should be able to create a program, where when prompted, i can find the mean of the numbers from that file, the biggest numbers, etc. the output would …

Member Avatar for WaltP
0
95
Member Avatar for ngozinyeusi

im a biginner level in Visual C++ version 6.0 "how can i Write the Program ”Minesweeper”. On field by size NxM Computer by casual image places X mines. The user will alternately assign the number of cell but computer gives him amount of mines, residing in nearby cells. If and …

Member Avatar for Lerner
0
229
Member Avatar for CBarr

Hi, I am trying to understand why this bit of code is performing the way that it is. I am a novice at C++ and missed this on my test. The teacher will not discuss anything from an exam so that leaves me to try and hash it out myself. …

Member Avatar for CBarr
0
94
Member Avatar for Majestics
Member Avatar for dreamgirl

Hello, well am just a beginner in c++ n my question is that how to you input in a void function the ranking of a student result?? Ive implement a program where we have to input the student marks and calculate the ranking/grading n calcutale the CPA? Can any1 provide …

Member Avatar for Lerner
0
86
Member Avatar for MasterDucky

Here's this program i write to uppercase proper nouns in a file. It opens three files: 1. is the file to uppercase. 2. is a list of proper nouns to uppercase. 3. is a list for proper nouns preceeding words that excludes proper nouns to be uppercased. I rechecked it …

Member Avatar for MasterDucky
0
150
Member Avatar for artisabang

I know how to generate numbers like 1-20, 1-1000 etc... but Im trying to figure out how to generate random letters from A-Z? any help please?

Member Avatar for WaltP
0
10K
Member Avatar for skatamatic

I'm having some problems dynamically changing the size of stucts. I know there must be a way to do it...but I guess it must be a bit different than with standard variables. I'll put up some code, maybe I'm just being dumb ;) [code=c++] struct SScore { char m_szFirstName[15]; char …

Member Avatar for skatamatic
0
115
Member Avatar for cmoney12051

I suck at C++! like really badly, i just cant grasp it, and now i have to write a program for it that is suppose to input some values from a text file that would create like a gradebook thing. im also supposta use a void function, calculatedAverage to determine …

Member Avatar for cmoney12051
0
111
Member Avatar for jeffige

I was browsing around the web looking for C++ tutorials and I found The Game Institute. I have been thinking about taking their course- C++ Programming for Game Developers - Module I - Introduction to C++ Programming Basics. Has anyone heard any info about this course?

Member Avatar for lAmoebal
0
121
Member Avatar for nannouD

hi please I want sm to tell me about the signification of the following expression: std::complex<float> (*W)[M] = &Z[k][0]; knowing the following declarations: Z[N][P][M]; et 0 <= k < N thanks for answer

Member Avatar for vijayan121
0
88
Member Avatar for Jennifer84

This code should be complete but I cant get it what the problem is. It is a very strange thing that happening. I might need a professional eye to see if the problem could be found :) The problem is this: The mainthing is that I am using a for …

Member Avatar for Jennifer84
0
120
Member Avatar for Barbarrosa

Hello, I am new to C#. What i am trying to do is this: I am taking a screenshot of my desktop (which i have done and stored in a file). Now all I need is to be able to define the parts of the image which I wish to …

Member Avatar for Ramy Mahrous
0
444
Member Avatar for Exenteth

Hello, I've been trying to develop a simple client/server application that uses the bluetooth USB dongles of 2 PCs using windows sockets and the bluetooth support provided in the windows platform SDK I can create the sockets fine, but when I go to invoke "bind" or "connect", the program spits …

Member Avatar for himanshu anand
0
296
Member Avatar for himanshu anand

this may be in any of the three lang i.e c,c++,java i have got the algo but not able to solve it :P the question is that there may be at most 50 ballons in 3D whose coordinats should be enter by the compiler and there is a shooter who …

Member Avatar for himanshu anand
0
168
Member Avatar for CoolFlame

Hi! I'm new to C++ programming. I learn some C++ from my friend, and now I want to learn my self and I don't know where to start. First things is I don't have a software or program to wirte C++. Can I get it free from internet? I think …

Member Avatar for Necrolis
0
144
Member Avatar for maggz

Hi..i need to know how i can make test with time.. I have implemented genric dynamic array with sorting algorith descending ascending and also operator overloading so ineed to test every function + sorting algorithm and it is template i do not know how to do that plz...help...

Member Avatar for Ancient Dragon
0
88
Member Avatar for harishankarb

How can we delete a particular RegistryKey from the registry I want to delete it when the application get closed

Member Avatar for mitrmkar
0
102
Member Avatar for sulabh

I have a c++ com code with source code now want i want to do is use the public class of that source code in my project( similarly the way in which we can add dll in c# and get acces to public class) .The class are not exported also …

Member Avatar for sulabh
0
79
Member Avatar for sfurlow2

Here's a problem we were assigned for homework. It deals with functions, and I'm not entirely sure how they work. The problem is : 1. Write a program that calls the following function. ///////////////////////////////////////////////////////////////////// // function: print_splash // // formal parameters: none // // preconditions: none // // return value: …

Member Avatar for sfurlow2
0
73
Member Avatar for Havik82

Does anyone know of any good C++ software that is free and worth the download? Thanks for Replies!! (if any) :icon_wink:

Member Avatar for technogeek_42
0
179
Member Avatar for jobob64

The compiler gives me a error C2955: 'Node' : use of class template requires template argument list. Some one wanna look it over and gimme some tips? [code] //list.h #ifndef LIST_H #define LIST_H #include "node.h" #include <iostream> template <typename T> class List { private: Node * m_head_node; Node * m_current_node; …

Member Avatar for jobob64
0
111
Member Avatar for gothicmisery85

I have a bank account project using inheritance that I have to do for my C++ class, and some suggestions would be great as how to go about doing this project. Here's what we have to do. "Design a generic class to hold the following information about a bank account: …

Member Avatar for gothicmisery85
0
238
Member Avatar for Jennifer84

I have a vector that contains these elements( std::vector<string> Values(6); ) What I wonder here is how it is possible to remove "dublicates" from Values(6) ? As in this example there is 2 dublicates that are exactly the same. 5,1536 5,1537 5,1538 5,1537 //This is a dublicate 5,1538 //This is …

Member Avatar for Jennifer84
0
346
Member Avatar for maggz

[code] #pragma once #include <iostream> /* * Author: Makhdoom Shah 4872 * Date of creation:22/2-2008 * Date of revision: * Revesion #: 1 */ using namespace std; //typedef double itemType; // need for another type, change it here template<class T> class dynarray { public: dynarray( int s = 0 ); …

Member Avatar for Narue
0
290
Member Avatar for dev.cplusplus

Hi to all, it's been a long time since the last time I participated in the forum, I hope everybody are OK. I need your help with the following issue: I have a DLL that is used in a Web Application (ASP not APS.NET) and I need to debug it. …

0
61
Member Avatar for kittycat07us

I have a random question, but how would you link a string into a char? To explain the program, it reads from a standard input character by character. Then it rewrites the it to make the output characters from uppercase to all lowercase.. if you would like to see what …

Member Avatar for kittycat07us
0
109
Member Avatar for atrusmre

I am currently trying to write a Telnet Client program in Visual C++. I was wondering if anyone knows where I can find a tutorial on how to write the protocals for telnet, or how to connect to a telnet server. I have written a small "chat" program (the one …

Member Avatar for Devoney
0
2K
Member Avatar for Lensva

me and my amateur code again :$ This time if works somewhat fine, but gives a error table. any ideas mates? [code] #include <iostream> using namespace std; long fib_sk(int); int fib_mas(int); //=========================== int main() { int iSk; cout<< "element count- "; cin>> iSk; if (iSk<0) { cout<< "need positive value …

Member Avatar for Lensva
0
93
Member Avatar for smithfield

May I ask you for help, how can I compare the elements of an array. I have to use threads, but I don't know much about it. For every 2 elements I create a thread and it compares them. The thread writes 0 in the element that is smaller and …

0
79
Member Avatar for amitahlawat20

[code=cplusplus] #include<iostream.h> #include<string.h> int main() { int x; cout<<endl<<"enter x:"; cin>>x; int temp=x; int count=0; while(temp!=0) { count++; temp=temp/10; } char *p=new char[count+1]; for(int i=0;i<count;i++) { *(p+i)='\0'; } for(i=count-1;i>=0&&x!=0;i--) { *(p+i)=x%10; x=x/10; } *(p+count)='\0'; cout<<endl<<"converted string : "; for(i=0;i<count;i++) cout<<(int)*(p+i); // int type cast used , if not used then …

Member Avatar for Narue
0
127
Member Avatar for gast74830

Is it possible to find out the number of signals which are in the signal mask. If so, how?

Member Avatar for Narue
0
68
Member Avatar for asadullah

How to make your program to be fast. 1. Use Pre Increment or Pre Decrement in place of Post Increment or Post Decrement operator. i.e. use ++i or --i in place of i++ or i--. Because ++i operator take increment and save it i.e. One CPU Instruction is required for …

Member Avatar for Narue
0
354
Member Avatar for Jennifer84

If my startform is Form1 and I will open Form2 from Form1 and press a button with this code on Form2. Form2 will close. Is it possible to write something here so the whole application will close wich meens both Form2 and Form1. [code] this->Close(); [/code]

Member Avatar for Jennifer84
0
100
Member Avatar for begyu

Hi, I would like to define a function, but I get errors... What's wrong with this? [CODE] #include <cstdlib> #include <fstream> #include <iostream> #include <ctime> #include <cmath> #define N 5 using namespace std; const float M_2PIf = 6.283185307179586476925286766559f; const float M_PIf = 3.141592653589793238462643383279f; const float epsilon = M_PIf/(1e-06f); /* -----------------RANDOM_GENERATOR------------------------------- …

Member Avatar for Narue
0
149
Member Avatar for ravipawar1

i am new to the c++ prog. the main problem with me is that i have no teacher to teach me c++ prog. so i am doing it by myself. so i want to ask u that which kind of book should i use to understand the c++ and do …

Member Avatar for codeaa
0
81
Member Avatar for amitahlawat20

[code=cplusplus] #include<iostream.h> class mat { int **matrix; int row,col; public: mat(int r,int c); void get_element(int a,int b,int value); int &disp_element(int a,int b); int getrow() {return row;} int getcol() {return col;} friend mat operator + (mat &m1,mat &m2); friend mat operator - (mat &m1,mat &m2); ~mat() { delete matrix; } }; …

Member Avatar for Narue
0
81
Member Avatar for rahul.b123

I have undergone a basic course in C Programming and I wish to enrich my programming skills by learning how to code for graphics in C and my main interest is to learn to write virus and so on. Could you please guide me what books should I need to …

Member Avatar for DangerDev
0
94
Member Avatar for dougy83

Hi, I have a problem compiling a project in Dev-C++ (MingW32). For some reason I can't assign an iterator from map::erase(iterator). My sources (MSDN) for map::erase(iterator) says that erase(iterator) returns an iterator... Does anyone know what I'm doing wrong? [code] bool TCPIPRedirectManager::poll(){ bool haveMsg = false; for(map<ConnHandle, TCPIPRedirect*>::iterator it = …

Member Avatar for vijayan121
0
223
Member Avatar for littlestone

There are two way to define a character array constant: 1. const char* const OUT_STRING="hello world"; 2.const string OUT_STRING="hello world"; which one is better? why?

Member Avatar for vijayan121
0
62
Member Avatar for Lensva

new guy in this sphere, dont bash too much :S [code] #include <iostream> using namespace std; int main() { int x,y; cin>> x; cin>> y; if (x==0) cout<< "x = 0"; else cout<< "x isnt 0"; return 0; } [/code] this piece works ok but if i add 1 more …

Member Avatar for Lensva
0
107
Member Avatar for technogeek_42

can any body here knows how to create a program that will count the vowels and constants for example: the quick vowels:3 constants:5 can any one help me or can any one have idea on doing that using #include <string.h>

Member Avatar for technogeek_42
0
67
Member Avatar for fluidtype

Hello there! I was asked to replace the bitmaps in an existing software. The software was compiled using Visual C++ 8. Do you guys have any idea how to go about this? Cheers!

Member Avatar for fluidtype
0
123
Member Avatar for varsha0702

hi... I have been assigned a task of porting Windows DLL on Linux... DLL is being created using C++ and IPP (Integrated performance Primitives,set of libraries). VC++ IDE has been used for wring the DLL... I know that in Linux Shared Object is being used in place of DLL... But …

0
69
Member Avatar for cseale03

Hey everyone! I have been working on this project for about a week now. It reads in a text file and outputs how many times the top five characters are used, what the percentages are for the top five compared to the rest of the ASCII characters, and shows the …

Member Avatar for cseale03
0
107
Member Avatar for teked

Hi i have just begun to develop a calculator in C++.net. I have created 10 buttons on the form 0 to 9 and the usual operands + - * / = etc. I want the code to work out the preceidence i.e. * before / etc but cant seem to …

Member Avatar for priyad2
0
166

The End.