51,593 Topics

Member Avatar for
Member Avatar for Manutebecker

Learn how to fully use the windows header with help from [URL="http://www.winprog.org/tutorial/simple_window.html"]Windows.h Tutorial[/URL], I'm pretty well along in the Programming world and was wondering if this would be really useful in becoming a programmer in the future.

Member Avatar for Manutebecker
0
91
Member Avatar for Tmy

how can i use cin.ignore to ignore every character up to and including a specified character – for example a full stop, ’.’ or a comma ',' ?? for example if the person entered Tom Jones. the program needs to igonre the full stop please help [CODE] #include<iostream> #include<string> using …

Member Avatar for Freaky_Chris
1
3K
Member Avatar for agentkirb

I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping …

Member Avatar for agentkirb
0
128
Member Avatar for presario

Where should I include other header files, in header file or source file? What is the difference between the below two: Example: [code] //file1.h #include "file2.h" ... [/code] OR [code] //file1.h class class2; ... [/code] [code] //file1.cpp #include "file2.h" ... [/code]

Member Avatar for grumpier
0
127
Member Avatar for fireballnelson

A pointer points to a memory location containing a specified value right? If a pointer is defined without something to point at, it can point anywhere, right? Here is my question: What are the practical uses of pointers? I mean why wouldn't you just make a reference to the variable …

Member Avatar for ArkM
0
169
Member Avatar for nrupparikh
Member Avatar for Lukezzz

I wonder something about adding a .DLL file to a project I am doing in a Win Form. I have rightclicked the Project ant choosed "Properties". Then under "Common Properties" I have "Add New Reference" and Added the Graph.DLL file to my project. This .DLL is a GraphControl. My question …

Member Avatar for Lukezzz
0
87
Member Avatar for Alex Edwards

Hey everyone! =) I'm starting an Application Development club at my college! However, there are a fair amount of programmers with multiple backgrounds who want to be a part of the club and partake in some of the Software we will create. Most of the people who are joining the …

Member Avatar for iluxa
0
334
Member Avatar for Clockowl

Hey guys, I'm stuck on some undefined references to glut and OpenGL, even when I linked my projects with the correct libraries. Well apparently they aren't correct... I'm trying to compile this: [code=C] /* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees …

Member Avatar for Lerner
0
459
Member Avatar for nrupparikh
Member Avatar for mirfanud

Hi, I use a simulator written in systemc to evaluate the programs written in pthread. so i have to interconnect the pthreads and systemc threads. The connection works fine, but I want to calculate the execution time of the pthreads events in systemc simulation time. I use systemc events to …

0
32
Member Avatar for new2c++

hello, im just learning c++ and was wondering if any one could spare the time to explain to me what each line of the ollowing code does, this is no my code i was just hoping to see what each lines does to see if it wil make it clearer. …

Member Avatar for Freaky_Chris
0
103
Member Avatar for Liinker

I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it …

Member Avatar for Liinker
0
875
Member Avatar for abhi.nalluri

Hi All, I have an application to open a serial port and write commands to it. I have used CreateFile function along with ReadFile and WriteFile. I need to use my serial connection from Network Connections and connect to a device.After connecting to the device I disconnect it. Now I …

0
54
Member Avatar for acardiac

I just need a hint or two to solve this problem. I dont need any coding or something similar just a "hint". Thanx Q.2. A local airlines has three different models of passenger planes: The 101 is a charter plane that carries up to 10 passengers, with the seats arranged …

Member Avatar for acardiac
0
117
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
116
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
130
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
70
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
105
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
109
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
153
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
135
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
130
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
212
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
153
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
225
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
158
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
83
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
83
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
185
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
71
Member Avatar for wallish

Hi. I'm currently messing around with C# and decided to write a small game. One of the first things I am doing is setting up the game's GUI, which I am designing myself with help from XNA (but not Windows Forms). I've already made proof-of-concept buttons that can be placed, …

Member Avatar for Ramy Mahrous
0
212
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
65
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
96
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
23
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
169
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
381
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
67
Member Avatar for reallm

All hi, Is it possible to send messages (SENDMESSAGE/PostMessage...) to HTML controls such as Input Type Text or lists? I am able to get/set the url,title but I can't get to the document. Can it be done? Would you show me how? Your help would be appreciated. reallm,

Member Avatar for Crisboot
0
311
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
107
Member Avatar for changdeoJ
Member Avatar for Ancient Dragon
0
55
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
166
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
89

The End.