49,766 Topics

Member Avatar for
Member Avatar for Swemp

Hi, I'm Sven I'm a student from Belgium and one of my classes is about C++ I'm working on a program for such a long time, but I can't find the solution. (First of all : sorry for my bad english) Here's what I'm supposed to do : I have …

Member Avatar for Swemp
0
1K
Member Avatar for Fox5

Alright, I'm trying to learn some basic threading and this is a problem I've been banging my head up against for a while. I'm doing some image manipulation using boost::numeric::ublas::matrix, which I believe is supposed to be thread safe, but as soon as more than 1 concurrent thread is involved …

Member Avatar for Fox5
0
114
Member Avatar for Ronen444

Hi, i'm new in this forum and i have some questions in C++... 1. I have main.cpp, which has [B]int main()[/B]... I also have some.cpp which has [B]int some()[/B]. How do i access/use some() from main() ? 2. Also, how can i use some other (I'm not sure i'm saying …

Member Avatar for Murtan
0
128
Member Avatar for OnIIcE

Hi, im trying to create a image editor and Im currently working on a "history/reopen" image part in my menu. ive read loads into dynamicly creating menu items but have always failed when it has come to adding a function to it, but that is a differnt story all together …

0
68
Member Avatar for I_want_to_lean

Hi every one,i'm following this tutorial and i can't seem to find the Message Maps property sheet in Visual Studio 2008. This is the link of the Tutorial [URL="http://www.functionx.com/visualc/dialog/dialog2.htm"]http://www.functionx.com/visualc/dialog/dialog2.htm[/URL] In the 27nth step says : Click the Message Maps property sheet but i don't find it in VC2008 I will …

Member Avatar for ArkM
0
103
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
107
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
151
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
134
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
128
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
210
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
152
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
224
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
165
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
156
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
82
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
184
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
202
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
94
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
168
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
207
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
380
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
65
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
106

The End.