49,761 Topics

Member Avatar for
Member Avatar for k59smooth

I have been trying to get my program to ask the user if the want to run the program again before exiting. I have been using he following while loop. It isn't working, any suggestions. char again; again = 'Y'; while (again == 'Y','y') { // // program // cout …

Member Avatar for dr.eu
0
95
Member Avatar for krm08

Hello guys, I have some doubts.I think one of you can solve this.I'm c++ fresher.My doubts are: 1.What's a parser in C++?:?: 2.How to create a parser cum interface window in c++.:?: Help me please.Thanks in advance.:icon_neutral:

Member Avatar for MosaicFuneral
0
105
Member Avatar for Natique

Hi :) I'm using winforms to try to make a GUI on Visual C++ 2005. Now one of the forms deals with a linked list (what's supposed to happen is that when a customer clicks the sign up button, a new customer object is appended to the end of the …

Member Avatar for ddanbe
0
149
Member Avatar for Frederick2

Just downloaded VC++ 8.0 Express and tried to run a simple sdk style program to see what happens. I've been using Dev C++, CodeBlocks, and MS VC++ 6. I've been advised to get up to date. Anyway, to get the program to run I had to change all the Api …

Member Avatar for Frederick2
0
133
Member Avatar for CPPRULZ

OK I'm a beginner at C++ so don't mock me for this question, so when I declare a pointer ptr (int *ptr; ) and then define ptr as 5 by saying *ptr=5; what adress is ptr pointing at-a temporary variable? Thank you-just curious.

Member Avatar for JoBe
0
126
Member Avatar for harryoma

hi everyone ;) i'm am having a problem, can you help me how to save big number into array? i have to input two big numbers (20 digits or less) and sum them. please help

Member Avatar for ddanbe
0
209
Member Avatar for somnathsarode

Hey i have created binary search prograram this progaram search all locations but not first if i give value of other than zero location it gives results but not for zero location please guid me the code is as follows [code]// Program for Binary search #include<stdio.h> #include<conio.h> int a[50]; void …

Member Avatar for ddanbe
0
151
Member Avatar for CagedBeast

Hi... I am a noob, just started to do GUI. I have a button on it. May I know besides clicking on the button, is there any other way I can invoke the function inside the button_click event?? Like an auto button ?? For example, I have a function running …

Member Avatar for ddanbe
0
223
Member Avatar for n321

Hello, I am new to this community but you seemed to be knowlegable with this error so I thought you could help me. I am more of a hobbiest programmer. I get by with doing as little as possible to accent my graphic design abilities. I am currently working on …

Member Avatar for n321
0
161
Member Avatar for CPPRULZ

Hi, I was making a pogram to demostrate static variables and I don't know why my compiler (VS 2005) is giving me these crazy errors that my book im using said I shouldn't be getting. Here is my program, please help: header: [code=C++] class number{ private: static int num; public: …

Member Avatar for grumpier
0
155
Member Avatar for rajesh_pec

[B]can someone kindly help to do this problem:[/B] Write a program use C++ language with Recursion algorithm to do this exercise. Prefer compile with Visual C++ or DevC Snowflake.h and image included in attachment file 2. What changes have to made in the program in snowflake.h to draw a line …

Member Avatar for Murtan
0
81
Member Avatar for uppibhay

Sirs,I w'd like to build on a website wherein i've a text box n accept code from user.I then w'd like to run code and display output in page. Something like [url]www.codepad.org[/url]. Plz help me with this....

Member Avatar for Salem
0
81
Member Avatar for athar89

I have written this parsing algorithm in c++ and compiled in visual studio.On runtime after giving the value it gives an assertion error. The logic is correct bcuz ive dry runned it but i think there's a problem with memory allocation.I need urgent help.Please. // sas.cpp : Defines the entry …

Member Avatar for Murtan
0
183
Member Avatar for DemoNMinD

Hi i get a home work at uni in C, but i have difficulties with this programming language.I don't know a lot.Below i wrote the request.Can someone help me from where to start,please. Chat Create a chat system throught internet.One process in the server machine manage a bunch of processes(resident …

Member Avatar for Salem
0
68
Member Avatar for manzoor

How to find the top n elements without sorting the array? Is this possible??? Well I don't want to sort the array because the order is mandatory? After I have found the top n elements I want to modify them? Is there any certain algorithM?? Help ??? this is no …

Member Avatar for Salem
0
200
Member Avatar for mostermand

Hi i am trying to make a notepad like program. The problem is that when i try to display some text nothing happens. If someone could help me i would really appreciate it. The function call: [code=c++] ... SetWindowText(edit, "TEST"); ... [/code] Creation of edit: [code=c++] ... HMENU Menu, SubMenu; …

Member Avatar for mostermand
0
4K
Member Avatar for MARIA HINA

HI me a beginner in C++. i got a paroject to design a menu bar in torbo C 3.0. i faced 2 much problems. i have design the main menu bar but the further sub bars of each counter r not working. plz any 1 can help me plzzzzzzzzz me …

Member Avatar for ajay.krish123
0
64
Member Avatar for berting

i need to write a program which inputs an integer value, checks that it is possitive, and outputs its factorial,using formulas factorial(0)=1 factorial(n)=n*factorial(n-1) sample output: input possitive number: 6 factoral of 6is: 720

Member Avatar for ajay.krish123
0
93
Member Avatar for icemori

i started this code for the binary seach tree but i'm going crazy i cant draw the tree 9 7 12 5 8 15 i need any help that could be provided even if like the level order way 9 7 12 5 8 15

Member Avatar for sillyboy
0
22
Member Avatar for chound

In Borland C++ Builder 6, I used forms. I created a button and clicked on it. It went to the editor. I typed "form1. " waiting for autocomplete to work. But I got "error in source code". The source code was generated by the BDE. Why doesnt it work. I …

Member Avatar for spiriad
0
163
Member Avatar for orwell84

There was no forum for just general programming, so I decided to put this here. Just out of curiosity, does anyone know how you get from your programs running in terminal or command prompt to having them opening in their own window, with their own GUI? If anyone could shed …

Member Avatar for orwell84
0
205
Member Avatar for bugmenot

Hy, I am trying to encode an X509 certificate into base64, and since the encoder I'm using takes only char*, and typecasting doesn't work, i find a different way to do this. I'm sure there is a simpler way, but i just can't find it. Here is the code: [CODE]BUF_MEM …

Member Avatar for bugmenot
0
378
Member Avatar for NewtoC++

Okay I am writing a database type of program, which will store data about people. I want to create a class: class Person { public: int age; int weight; int height; }; Okay now I want to do something like this: cout << " Enter name of person.\n"; cin >> …

Member Avatar for NewtoC++
0
18K
Member Avatar for serkan sendur

can you guys provide me with an example as to when do i need to use virtual inheritance?

Member Avatar for cikara21
0
63
Member Avatar for oky20

can anyone help me? I've made an address book. But I don't understand how to sort the information in alphabetic order. And also the information which is written in information.txt is not neat. Does anyone know how to fix it ? here is my code.. [code=C]#include <stdio.h> #include <stdlib.h> #include …

Member Avatar for oky20
0
105
Member Avatar for changdeoJ
Member Avatar for Ancient Dragon
0
52
Member Avatar for scrypter

Hi there, I hope this is not a major repeat question. I have a big class and inside it has smaller classes. What I am trying to do is call a function of the outer class from the inner nested class, such as: [CODE]class BigClass : public evenBiggerClass { int …

Member Avatar for ArkM
0
163
Member Avatar for mrnutty

Can i call a class on another class. ex. class a { public: void add (int,int) ... //maybe call class b here.../// }; class b{ public : void mult(int,int)... };

Member Avatar for ArkM
0
86
Member Avatar for adily
Member Avatar for Salem
0
96
Member Avatar for Emmily

Hello everybody. I'm new in C++ Builder and I have problem with my application. I have some files on input and first I add files in ListBox1. I try to sort them by 3 conditions (firts is date, second is some secc. number and thirt is const. number) for example …

Member Avatar for Emmily
0
209

The End.