51,593 Topics

Member Avatar for
Member Avatar for Clockowl

Hey guys, I'm getting this kinda vague error: Zeal\src\window.cpp|19|error: cannot declare member function `static unsigned int zeal::window::getWindowCount()' to have static linkage| With the following code (only what I think is needed, if you need more please do ask) window.h [code=cpp]namespace zeal { class window : public element { public: static …

Member Avatar for Clockowl
0
87
Member Avatar for nimalka

i wrote a program using file handling tips but still couldent run it there occuring some errors pls help me nn

Member Avatar for Salem
0
91
Member Avatar for a10m84

Hello , I am developing an application in realtime and I need to update some values in an array. What is the best method to add a value to every position of an array? Thank you for your help.

Member Avatar for Salem
0
145
Member Avatar for d0ne

I try to make monthly calendar. I want to join, day and month and year, and it show me just month. For example ; i join 5 Sep 1985. It show me just 1985's September calendar. Anyone can help me ?

Member Avatar for Sky Diploma
0
88
Member Avatar for musava

I am a fourth yera student at the universitynof Nairobi Kenya and currently doing my project on THERE ARE TEN JOBS TO BE ASSIGNED TO TEN PEOPLE SUCH THAT THE THE TOTAL COST OF RUNNING THE KJOBS IS MINIMISED AS THE TOTAL COST OR YANY OTHER VARIABLE IS ALSO MINIMISED …

Member Avatar for Salem
-1
78
Member Avatar for ribena500

Hi, Can a user determine the size of an array through the programme? For example, At the beginning of the programme it will ask the user 'How many students' exams grades would you like to process today' Therefore create the array to be of the size that the user has …

Member Avatar for Nick Evan
0
134
Member Avatar for daviddoria

This problem comes up quite a bit for me. I'll have a project that I work on for a couple months (the point is that it is a large project with multiple classes, etc). As an example, say I made a program that draws a square. So I have this …

Member Avatar for daviddoria
0
100
Member Avatar for ribena500

-------------------------------------------------------------------------------- Hi, I have a calculation (shown below): total[i]=(dogs[i] + cats[i]); I want to be able to store the answer for total[i] I stupidly tried to put a cin statement underneath but that doesnt work. when i used cin, my prog just waits for me to enter a value. What …

Member Avatar for Ancient Dragon
0
80
Member Avatar for deathevan

hi all, could someone help me to make a mfc program that shows what is on a harddrive with treewiew and listwiew controls? i have no clue how to do it so any help is welcomed. Thanks in advance :)

Member Avatar for Ancient Dragon
0
70
Member Avatar for ribena500

Hi, I have a calculation (shown below): total[i]=(dogs[i] + cats[i]); I want to be able to store the answer for total[i] I stupidly tried to put a cin statement underneath but that doesnt work. What would i use?

Member Avatar for iamthwee
0
77
Member Avatar for kentaki

I need help about a question FOLLOWİNG (please use the c++) Question is: 1-) You are given a set witl 10 elements. X: { 23, 13, 25, 43, 45, 26, 10, 2, 27, 44 } or you can choose any 10 elementsç it is not problem. 2-) You are asked …

Member Avatar for iamthwee
-2
146
Member Avatar for ehsan_op

Hi, i'm writing a simple function which Draws a string on a bitmap image, but i have problem with unicode strings , they change to ? Notice : i write my code in brief actually i do not attention to all faces of right programming. [code = c++] main(){ CreatImage("سلام، …

0
62
Member Avatar for altrim
Member Avatar for jimbob90

program read from cin what the user wants to do ("add" a name to list) or ("lookup" a name). in add just add whatever was read in to the file. in lookup print out a line of text with the string that wa read in. hopefully that makes some sense …

Member Avatar for deepglue555
0
183
Member Avatar for cppnewb

Is there any way in a ifstream to change the font it writes in??? Thanks! Im using Microsoft Visual C++ Extended Edition 2005 on Windows XP

Member Avatar for Ancient Dragon
0
110
Member Avatar for RayvenHawk

I'm doing an assignment for class and we're suppose to write a program that pops up a window with YES/NO/CANCEL buttons and when the user pushes a button another window pops up displaying what button they clicked. I wrote up the code and it does work, but it takes several …

Member Avatar for RayvenHawk
0
118
Member Avatar for TasostGreat

I'm trying to write a program which reads a file really small size with two number and a character and ouput another file which can have up to 120.000.000 characters. My answer which is the fastest way to achieve this on Linux compiled with gcc i mean shouls i use …

Member Avatar for TasostGreat
0
1K
Member Avatar for arazum

How to initialize a const array with size defined in template before the constructor call?? [CODE=c++] template<int s> class something { public: const int array[s]; something(void) // uninitialized member `something<s>::array' with `const' type `const int[s]' { } }; [/CODE] razum

Member Avatar for arazum
0
175
Member Avatar for Phil++

Hey I need to create a test plan, I am using Black Box and White Box testing, what is the difference between the two please?

Member Avatar for VernonDozier
0
64
Member Avatar for massivefermion

Hi ladies and gentle men I wanna use bloodshed dev-c++ 4.9.9.2 but when i wanna launch it,before anything happens,a dialog box comes up and says: [QUOTE]There doesn't seem to be GNU Make file in PATH or in Dev-c++'s Bin path.Please make sure that you have GNU Make and adjust Bin …

Member Avatar for VernonDozier
0
400
Member Avatar for cozzoli

Hi there, I am learning more about C++ to help my company bring on a team of software gaming developers and have a few questions for your forum. Is the latest operating system critical for C++ developers in making a job change decision? Is NT still attractive? Would experience coding …

Member Avatar for Narue
0
84
Member Avatar for Mahsa_C++

Hi every one here, I am a university student of computer engeneering...altough still in the very begining i've got great interest making head or tails of programming stuff. I am new to c programming ..it's around months from the time we started learing & coding with that, We have entered …

Member Avatar for Ancient Dragon
0
142
Member Avatar for bita

Hi I have a problem with linked list,i want to delete a node.q is a node that i want to delete and p is the node before q,i signed my problem in the code below could you plz tell me whats my problem,because it doesnt work?(it's a Circularly-linked list) [code=c] …

Member Avatar for Freaky_Chris
0
127
Member Avatar for Cyberbanana1

In our class we have usually been just programming with the command prompt, no visual stuff. but now, in what my teacher calls "making pretty pictures" we're supposed to make a graph. The only this is, i have no idea how to make actual pictures or colors come out. I …

Member Avatar for Cyberbanana1
0
93
Member Avatar for xtremerocker

I was viewing the practice problem section and decided to give a go at them, anyways, this is my Palindrome dector code. Could someone just take a look at it and explain to me if there is a better way to execute this problem? - michael [ICODE]// Palindrome check by …

Member Avatar for xtremerocker
1
115
Member Avatar for Bladtman242

Hi again, first; i realise this peace of code is stupid, it has been taken out of context, altered for the sake of simplicity etc. I wonder if the problem is the quite large number stored in int to (changed to unsigned long int) i have read on cplusplus.com that …

Member Avatar for Bladtman242
0
162
Member Avatar for smithss

Hi i have written a standard library function 'strcat' on my own, even though the output seems ok, can someone please verify if what i'm doing is right? i get confused using pointers. [code] void mystrcat(char *a,char *b) { while (*a++ != '\0'); *a--; while (*a++ = *b++); } [/code] …

Member Avatar for smithss
0
115
Member Avatar for pete08

Hi, I have written small client/server application, using TCP/IP protocol. When I test this on my machine, it works ok. When I use LAN with 2 computers it bloks. What might be the problems? I have configured the LAN properly (I have tried with ping and it works). Also, no …

0
43
Member Avatar for ribena500

Hi, I have this code for an array: [code] { cout << "how many tins sold? " << (i+1) ; cin >> tinssold; cout << "how much is each tin?" << (i+1) ; cin >> tinprice; value=(tinssold*tinprice cout <<"total value of tins is " <<value; } [/code] IF I WANTED …

Member Avatar for Comatose
0
98
Member Avatar for alfred210989

excuse me, i want to make explosion in c++. n i got trouble.. i really dont know the psudocode after i try to make it in paper a whole day. anybody can help me? i will specially give a thank you if can give me the real program of explosion …

Member Avatar for alfred210989
0
1K
Member Avatar for animefun2

THIS IS WHAT I HAVE DONE SO FAR (QUESTION BELOW IT) [CODE]class Customer { public: int noOfCalls; String custName; virtual Compute_Bill(); }; //define function, contructors etc by Customer::Customer() etc class Premium_Customer: public Customer { //premium specific function that inhereit from customer }; [/CODE] HERE IS THE QUESTION I need help …

Member Avatar for Murtan
0
111
Member Avatar for Phil++

So basically, I'm creating a switch statement that if the user enters a p or if they enter a P it will still work, any ideas? Thank you

Member Avatar for grumpier
0
117
Member Avatar for Phil++

Basically what I am trying to do is get the width and height of the doors in a room. The user enters the number of doors in the room, it then goes into a for loop which then asks for the width and height of each wall. The problem is …

Member Avatar for Phil++
0
92
Member Avatar for tomtetlaw

i am doing the 'getting started' tutorial that comes with the dark gdk, and i ran into this error: c:\documents and settings\tom\my documents\visual studio 2008\projects\hello world\hello world\main.cpp(6) : error C2065: '“animatedsprite' : undeclared identifier heres my code(that i copied from the pdf): [code=c++] #include "DarkGDK.h" void DarkGDK ( void ){ …

Member Avatar for springwater
0
170
Member Avatar for dparas

Hello guys, I ve been searching for a long time for an algorithm (in c++) that would take the number of digits and give all the possible combinations between 0 and 1. For example for number of digits 3 will give 100 010 001 110 101 011 111 The funny …

Member Avatar for ArkM
0
1K
Member Avatar for noodlecode

Ok i have a few questions. I'm fairly new to programming. Im starting to get a little functional with java, i can handle GUI's, threads, exceptions, 2d graphics, JDBC etc. I took a class in C++ only to find that I am not even close to producing graphics or GUI's …

Member Avatar for Freaky_Chris
0
161
Member Avatar for ace_dman

I just want to ask something about using a stack in maze Im confused about implementing stack in c++.is it possible that I can insert a multidimensional array in a stack,how?:S (can you please give me some little bit of codes in order to do that) I did already a …

Member Avatar for ace_man
0
2K
Member Avatar for guest7

Hi, i have few programs which i have compiled using "make all". When i debug the main program, during debugging i get the following message : ****Stepping over inlined function code.*** As a result i am unable to debug the program line by line. The debugging is random. I am …

Member Avatar for StuXYZ
0
97
Member Avatar for dannybarh

i need a random generator. it should be able to generate serial #s along side. any website in mind? please help.:yawn:

Member Avatar for StuXYZ
0
137
Member Avatar for LucyB

Hi all... Basically I'm wondering how I complete a loop based on the number of times a user requests it. For instance, I'm doing an employee system that works out pay based on hours. There are lots of rules/criteria about what they pay is recieved based on the input hours. …

Member Avatar for LucyB
0
86
Member Avatar for lameassthemity

I'm writing a class planner, where the user is given the opportunity to enter certain information about their classes and have it printed back to them upon request. The problem I'm having is that whenever I enter any text into the input with a space in it, it returns me …

Member Avatar for zalezog
0
135
Member Avatar for sirihoney

I really wonder whether the diff command can be implemented in c++.. But i need the code for tht..anyone please help... Sirisha.

Member Avatar for Salem
0
50
Member Avatar for DmD

hey, im trying to use the mpg123 library to extract the sound data from the mp3 file.... ive used this example to decode the file: [url]http://mpg123.de/api/mpg123__to__wav_8c-source.shtml[/url] i can extract the info about the file but the actual sound data im having troubles.... because it doenst give me the whole data …

Member Avatar for Salem
0
285
Member Avatar for MrPickle

How can I play sounds under windows? I know about PlaySound() but I want to load the sound by myself, then play.

Member Avatar for Comatose
0
43
Member Avatar for ribena500

Hi, I am using this code: int total = 0; for (i = 0; i < 3; i++) { total+=hours_run[i]; cout <<"\n"<<total; } The aim of this code is too add up the hours run by the 3 people who enter the values. The code above produces some weird results. …

Member Avatar for ribena500
0
92
Member Avatar for jimchong

Hi, I am just start programming by using C# not longer time,there are few thing i don't understand. 1) I have a task that need me to access to the database in the server. Can i know what coding what i should use in the C# webform for me to …

Member Avatar for LizR
0
120
Member Avatar for vikashkumar051

Hi, I am pasting here code for finding path using Dijkstra algorithm. [icode] #include <stdio.h> #include <limits.h> #include <assert.h> typedef enum {false, true} bool; /* The order is rather important to get the boolean values right. */ typedef char *string; #define oo UINT_MAX /* infinity is represented as the maximum …

Member Avatar for vikashkumar051
0
764
Member Avatar for cppnewb

Hi. I was just wondering what you thought about C++ and windows development. I'll post a pie chart daily as long as people continue to respond. The Question: What do you think about C++ and windows development.? A - You should only learn C++ B- You should only learn Windows …

Member Avatar for Rashakil Fol
0
112
Member Avatar for cppnewb

Hi. I'm beginning to wonder if youre dreading my posts - they are so dumb but.... Is there a way in Microsoft Visual C++ Express Edition to compile the program and save it as a [b].exe[/B] file? Thanks!

Member Avatar for VernonDozier
0
77
Member Avatar for guest7

Hi, I am getting the following error while compiling: "Undefined symbols: "main_class::binary(int, std::vector<int, std::allocator<int> >&, int)", referenced from: main_class::identity(int, int, int)in test_sat.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [test] Error 1" Following is the code : [ICODE]int main_class::identity(int rowno, int size_row, int loop_iterate) { …

0
50

The End.