49,761 Topics

Member Avatar for
Member Avatar for eduard77

Hello I am really new in c++ but I read a lot of books. But I haven't found in any book how to add an interface to my program. So, what is necessary that the program to not run in the windows console?

Member Avatar for eduard77
0
198
Member Avatar for abel kaleab

write a programm which out put is a triangle example 5 4 4 3 3 3 2 2 2 2 1 1 1 1 1

Member Avatar for restrictment
0
105
Member Avatar for baron919

Hi guys. Just joined the forums. I was quite an admirer for this community and the source codes here really helped me in learning process and for that i thank you. I am a student of 1st semester in BS(CS). I want to become a Game Programmer and am trying …

Member Avatar for mrnutty
-2
136
Member Avatar for Silvershaft

Hello I got a little problem with winapi programming I can edut dialogs graphically with resource editor but is there any way to edit mainform in similar way? Writing on iPod so there may be typos

Member Avatar for Ancient Dragon
0
75
Member Avatar for bhas_purk

Hi guys, Im doing this project in VC++ 2005. I cannot seem to get the size for my directory. No error is returned when I use GetLastError(); Both Low and High are coming out as 0. I do get a handle value for MF ( dunno how to verify if …

Member Avatar for Rajesh R Subram
0
142
Member Avatar for new programer

hello all please help .. whenever I enter a path it tells me it cannot open the file here is the code: [CODE]# include <iostream> # include <fstream> # include <iomanip> using namespace std; struct count_type { int count; double percent; }; void intial_struct(count_type count[]); void open_file(ifstream&, ofstream&); void counter(count_type …

Member Avatar for nezachem
0
76
Member Avatar for gretty

Hello I have made a simple win32 application that converts temperatures. [B]Problem:[/B] I am displaying a bitmap image in a static control that is scaled using StretchBlt(). But when the application runs it goes into an [B]infinite loop, doesn't display the bitmap & crashes[/B]. I believe the problem is either …

0
70
Member Avatar for tkud

Hi everyone , I have an edit control and 2 APIs for saving text from and loading text to the edit respectively. However, when I load text, instead of giving out the exact alphabets in the text, it gives chinese!! Please, I need help to tackle this problem,any psitive help …

Member Avatar for Frederick2
0
918
Member Avatar for DTV

I'm trying to make a 50x50 board of 50 pixel by 50 pixel squares. However, when I run this code, it only gives me one square. Does anyone have any idea what I'm doing wrong? [CODE] #include <iostream> #include <allegro.h> using namespace std; int xgen = 0; int ygen = …

Member Avatar for DTV
0
109
Member Avatar for eduard77

Why do I have a syntax error in this line ? I think that everything is correct fMaxElem = fabs(double pfMatr[k*nDim + k] , int k); // error C2059: syntax error : ')' m = k; for(i=k+1; i<nDim; i++) { if(fMaxElem < fabs( double pfMatr[i*nDim + k], int k) )//error …

Member Avatar for VernonDozier
0
60
Member Avatar for eduard77

Can anyone tell me what to do to solve this error? [CODE]#include <iostream> #define MATRIX_DIMENSION 4 int WSACleanup (void); int main(int nArgs, char** pArgs) { int nDim = MATRIX_DIMENSION; double fMatr[MATRIX_DIMENSION*MATRIX_DIMENSION] = { 1.0, 2.0, -1.0, -2.0, 1.0, 3.0, -1.0, -2.0, 2.0, 1.0, 1.0, 1.0, 3.0, 1.0, 2.0, 1.0, }; …

Member Avatar for eduard77
0
74
Member Avatar for esmeco

Hello! I'm having some problems with constructor initialization,mainly because I have object members and vectors within classes. I have a class Factory in which i have 2 object members(base and dumpster),a vector of Floors and a set of Robots. Each Floor has a size(lin,col) and a member object Cell which …

Member Avatar for Agni
0
107
Member Avatar for hussamo

[CODE]#include <iostream> #include<string> using namespace std; long int NN; int x=0; class node *temp, *temp2 ,*start; class linked_list { public: class node { public: char name[20]; long int national_number; char residance[25]; node *nxt; }; //---------------------------------> linked_list() { node *start; start=new node; cout<<"NAME : Hussam Adel Abu Lubbad"<<endl; cout<<"nathiona number : …

Member Avatar for Ancient Dragon
-1
115
Member Avatar for Excizted

Hi everyone... I have a silly problem.. Somehow I managed to faceroll or something, hitting a shortcut which shows all indents as arrows and all spaces as dots. Here is a picture of the problem: [url]http://img97.imageshack.us/img97/8789/problemyf.jpg[/url] I've looked the options through, but since I don't know what this thing I …

Member Avatar for Excizted
0
85
Member Avatar for yup790
Member Avatar for William Hemsworth
-2
79
Member Avatar for hattisaeed

[code]#include<iostream.h> #include<string.h> struct node { node*next; int data; }; class stack { private:node*top;node*top2;char c; public: stack() { top=NULL; top2=NULL; } void push(char c) { if(top==NULL) { top=new node; top->data=c; top->next=NULL; } else { node*temp=top; temp->data=c; temp->next=top; top=temp; } } void pop() { node*temp=top; char x=temp->data; cout<<x; top=top->next; delete temp; } …

Member Avatar for jonsca
0
90
Member Avatar for shishio1014

i would like to ask for help regarding my problem, it's like this... I have a txt file and inside it looks like this OL001 bob red 13 OL002 jack blue 13 OL003 paul yellow 14 so if my program starts it will ask for the OLXXX and return each …

Member Avatar for jonsca
0
134
Member Avatar for samsons17

What does this cin.clear() and cin.ignore() means? this is the part of the code : [CODE] while(1) { cout<<"Enter the Product ID :"; cin>>product[i].id; cout<<endl; if(cin.fail()) { cout << "\t\t\t\t\WRONG ID DATA!" << endl; cin.clear(); //what does it means?? cin.ignore(1000, '\n'); //why 1000?? continue; } break; } [/CODE] thank you …

Member Avatar for jonsca
0
389
Member Avatar for BobFX

Hi, I'm using a Form generated application. Its definition starts with: [code]public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) {[/code] When I'm inside one of its method, I can use calls like: [code]this->StartPosition = FormStartPosition::Manual;[/code] thanks to the this pointer. How can I do this kind of calls …

Member Avatar for BobFX
0
123
Member Avatar for monkey_king

Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate more that 2.1gig memory. [CODE=c++] #include <stdio.h> #include <stdlib.h> #include <err.h> #include <fcntl.h> #include <sysexits.h> #include <unistd.h> …

Member Avatar for monkey_king
0
142
Member Avatar for pink24_ann07
Member Avatar for jonsca
-4
122
Member Avatar for kizzer

can you please do me a c++ program that convert bi to dec and so on

Member Avatar for Ancient Dragon
-6
87
Member Avatar for LemonLemon

I am a beginner of c++ I just built a very simple Hello World program but nothing output to the screen what's the problem? Thanks in advance. Here is output message: 'HelloWorld.exe': Loaded 'D:\Visual Studio 2005\Projects\HelloWorld\debug\HelloWorld.exe', Symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. …

Member Avatar for restrictment
0
145
Member Avatar for Carrots

Hi, I'm trying to construct my first Doubly Linked List, but am having trouble compiling. This is my program: [B]main.cpp :[/B] [code=c++] #include <iostream> #include "node.h" #include "doublylinkedlist.h" using namespace std; int main() { system ("PAUSE"); return 0; } [/code] [B]node.h :[/B] [code=c++] class Node { public: Node *pointertonextnode;//pointer to …

Member Avatar for jonsca
0
353
Member Avatar for CppBuilder2006

when I right click a file ( with .ghh extension) a menu appears in Windows. How can I add a tab to it? when I select the tab my program runs & processes the file. (API programming)

Member Avatar for William Hemsworth
0
67
Member Avatar for Amonod

Hello. I am currently reading c++ primer plus 5th edition and I've become stuck at Chapter 13, Exercise 1, which is on class inheritance. The classes looks like this: [CODE] class Cd { ..... public: ... virtual void Report() const; .... }; class Classic : public Cd { .... public: …

0
74
Member Avatar for new programer

hello all, I've posted an old version of the following code before but I was not clear on my question or the title of the problem [for that am sorry] I did changes on the code now I have no errors but it does not do what I want .. …

Member Avatar for new programer
0
100
Member Avatar for ayesha91

Hey everyone,,, I am new to c++ and to reading from files especially... I wrote a code where I am filling an array of strings with strings from a file and there is an error that happen during the run of the program, please have a look at the reading …

Member Avatar for GrubSchumi
-3
139
Member Avatar for CrazyProgrammer

Hi, Could somebody please show me and example of how to iterate through an n-nary tree, where I do not know what n is and n could be different for every node ie the root node could have 3 children and each child might only have 2 children etc, I …

Member Avatar for john.double
0
219
Member Avatar for maiar

Hi how are you i needyour help pleasE i wanted to do this programme with C++ languge by visual C++ Hotel Reservation System – HRS In this project you have to design and implement an HRS that can be used by a small hotel. Your program should provide the following …

Member Avatar for tkud
-4
286

The End.