51,593 Topics
![]() | |
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 … | |
i wrote a program using file handling tips but still couldent run it there occuring some errors pls help me nn | |
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. | |
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 ? | |
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 … | |
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 … | |
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 … | |
-------------------------------------------------------------------------------- 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 … | |
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 :) | |
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? ![]() | |
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 … ![]() | |
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("سلام، … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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? | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 ){ … | |
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 … | |
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 … | |
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 … | |
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 … | |
i need a random generator. it should be able to generate serial #s along side. any website in mind? please help.:yawn: | |
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. … | |
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 … | |
I really wonder whether the diff command can be implemented in c++.. But i need the code for tht..anyone please help... Sirisha. | |
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 … | |
How can I play sounds under windows? I know about PlaySound() but I want to load the sound by myself, then play. | |
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. … | |
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 … | |
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 … | |
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 … | |
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! | |
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) { … |
The End.