49,757 Topics

Member Avatar for
Member Avatar for anuizath2007

:?: can anyone tell me where the error is? [code=cpp] #include<iostream.h> #include<conio.h> void main() { clrscr(); void zero_small(int &,int &); int a,b; cout<<"\n\n\n\tEnter the first no "; cin>>a; cout<< "\n\n\n\tEnter the second no "; cin>>b; zero_small(a,b); cout<<"\n\n\n\tValue of the first no is "<<a; cout<<"\n\n\n\tValue of the second no is "<<b; …

Member Avatar for anuizath2007
0
86
Member Avatar for anuizath2007

This is a program i made..but i wanted it to arrnge the total in decreasing order showin the highest scorer 1st....what more should i do 4 that in this program....??? [code=cplusplus] #include<iostream.h> #include<conio.h> void main() { int n; const int limit=50; int rollno[limit]; int maths[limit],english[limit],science[limit],social[limit],hindi[limit]; int Total[limit]; char Grade[limit]; int …

Member Avatar for anuizath2007
0
111
Member Avatar for rahye

hi there, can someone help me how to write a recursive function that takes the number to the power. Thus, if the number is 2 and the power is 4, the function will return 16. I'm looking forward for anyone to help me with this my problem. I try to …

Member Avatar for iamthwee
0
221
Member Avatar for besktrap

OK, so on my program, whenever I enter in incorrect selection (when I am actually running it), it goes back to the main loop and continually loops! what's wrong with it? here's the code: [CODE]/* Copyright: 2008 Author: Besktrap Date: 13/07/08 09:19 Description: a short buggy calculator I made */ …

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

Hi to all, I need your help/advice. I'll explain my problem: I have to write an aspx page, where the user can upload an entire directory/folder to my server. I did some research and seem that there is no build it component to upload an entire directory/folder, there is the …

Member Avatar for Ancient Dragon
0
166
Member Avatar for Alex Edwards

I am wondering how one would append additional memory to the end of a pointer that already has memory allocated? For example, if I do something like this... [code=c++] int *intPtr = new int[5]; // pointer can be assigned 5 values of type int // Now I want to add …

Member Avatar for Narue
0
139
Member Avatar for zinashamaa

Hi How can i convert code from c++ to VB ....step by step? Thank you in advance

Member Avatar for Jx_Man
0
182
Member Avatar for CoolGamer48

Hey, I'm writing an XML parser in C++. Currently it works, but too much of what needs to be done is left up to the end user. I'm trying to figure out a way to have a clean, more encapsulated interface for the parser, but I can't seem to think …

Member Avatar for dougy83
0
114
Member Avatar for vs49688

Hey, I have created a small application that has music playing when you run it. currently the mp3 file being played is external to the application. I have included the file in a resource script and is compiled into the application, but how do I get FMOD to play it. …

Member Avatar for mitrmkar
0
318
Member Avatar for C_isoundu

Hello, I've got this kind of problem, where I want to change a word inside of a text file. apparently, I can use the char to change the character, however, it can't changes any word or sentence, so can any one help me out. much appreciated. [CODE]#include <iostream> #include <fstream> …

Member Avatar for William Hemsworth
0
100
Member Avatar for 13L4D3

I have a .txt file and need to connect it. So in visual c++ do i need ODBC. if yes then can anyone guide me how to start with it.:-/

Member Avatar for mitrmkar
0
110
Member Avatar for kadajett

[CODE]#include <iostream> #include <fstream.h> #include <string> #include <vector> void input(int, std::string); void output(); using std::vector; using std::ofstream; int main() { std::string filename = "file.txt"; int number; vector<int> tileList(); std::cin >> number; tileList().push_back(number); input(tileList(), filename); output(); return 0; } void input(vector<int> tileList, std::string filename) { //vector<int> tileList; this needs to be …

Member Avatar for iamthwee
0
99
Member Avatar for jack1234

Is this two ways of instantiating class both acceptable?(My intention is to create CBox on stack instead of heap) CBox a=CBox(1); CBox b(2); Definition of CBox is as followed: [CODE]class CBox { public: int abc; CBox(int var){ abc=var; } };[/CODE]

Member Avatar for Dave Sinkula
0
64
Member Avatar for Shadoninja
Member Avatar for Prabakar
0
785
Member Avatar for fmwyso

Hey, I googled it and found TONS of pages, but most are for linux/C#/VB and I can't seem to get any C++ code for this X_X. I did a search on the forum, and couldn't find anything either... Anyway, I would like to have my program "ping" a host name …

Member Avatar for Ancient Dragon
0
205
Member Avatar for TeCNoYoTTa

hello all I wish i find a solution for my problem what i want is some information and some recommendations what i want is a C++ library that i can use to download files from web and also i want to do some GUI (Including tray icon) and please please …

0
80
Member Avatar for Shadoninja

I ran into a bug on my program that I couldn't find on my own so I decided to transfer my project from Dev C++ to Microsoft Visual Studio. In Dev I got away with [code] string sName; cin >> sName; [/code] But MVS doesn't like doing that. What is …

Member Avatar for Narue
0
175
Member Avatar for brk235

Hi friends i have one question about OOP. I have [CODE]class A { /function body here }; class B:public A { /function body here }; class C:public A { /function body here }; int main() { B b[20]; C c[40]; } [/CODE] Each object of the derived classes(B and C)has …

Member Avatar for vijayan121
0
122
Member Avatar for zhouj

In the following code, f1 is an overloading function. In what situation will be the first called, in what situation will the second be called? #include <iostream> using namespace std; class A { public: void f1(){cout<<"f1 "<<endl;} void f1() const {cout<<"f1 "<<endl;} }; int main() { A a; a.f1(); return …

Member Avatar for vijayan121
0
169
Member Avatar for abhimanyuancha
Member Avatar for Shadoninja

I have read quite a few tutorials that try and explain these but they just aren't making sense. Could someone try to explain what they are and why they should be used?

Member Avatar for Salem
0
73
Member Avatar for mhil_joy

Please help me guys.. i need all your knowledge about this program.. kindly check where's the wrong here.. i need to program a tic tac toe. ONLY user can input.. i dont have any idea.. tnx.. have a great day [code=cplusplus] #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <graphics.h> #include …

Member Avatar for William Hemsworth
0
169
Member Avatar for Shadoninja

I am making a text game where at each situation the user may type in his/her choice on what action to do. Is there a way to make it where if someone were to type "save" or push the "s" key to have the game save or go back to …

Member Avatar for Prabakar
0
117
Member Avatar for Zozel

Hi...I'm Zozel...I am trying to make a program and to use the cleardevice() function to clear screen...but I'm not satisfied of this function...calling it, it flashes the screen...it "blinks" my whole screen.....how could I avoid this flash?...please help!...I appreciate any answer ...:)

Member Avatar for Zozel
0
3K
Member Avatar for mengmarc

Pls.,, help me to find the error in ths program... this program should accept white space,so i use string and getline...it doesn't have error detected but it doesn't come up with the desire output. thank you in advance... [code] #include<iostream> #include<string> using namespace std; struct node { string name; node …

Member Avatar for Narue
0
225
Member Avatar for sasikala123

I need some simple c++ codings for the below program. A book shop maintains the inventory of books that are being sold at the shop the list includes details such as author, title and publisher and stock position. Whenever a customer wants the book, the sales person inputs the title …

Member Avatar for Sky Diploma
0
129
Member Avatar for 2008macedonkon3

Hey, i have been making a program in c++ and it got to the part where i need to make a dialog box but i dont know how. I want to make for example when you click on a botton it display's a dialog box or a second form and …

Member Avatar for William Hemsworth
0
67
Member Avatar for Black Magic

Hey, I decided to make a little visit to [URL="http://winprog.org/tutorial"]Winprog[/URL] and decided to go on the page "Menus and Icons" and so i copied and pasted the code from the website to give me.. [CODE=C++]#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM …

Member Avatar for mitrmkar
0
165
Member Avatar for l2u

Hello I've been wondering what would be the best way to manipulate with my application - server (send commands, etc.). I've come accross SSH but this would take too much work to implement it and I dont want to use openSSH - 3rd part source code which is compilable only …

Member Avatar for l2u
0
189
Member Avatar for camproject

I am doing a project in vc++,mfc.what i have to do is,identify static objects in a scene and track them for changes(in position).for that i have to get the pixels of the objects.is there any method to detect all objects and identify their pixels.i have to use the frames obtained …

Member Avatar for vmanes
0
77

The End.