49,761 Topics
| |
Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char … | |
what would I use pointers for? I used to have a vague understanding of a pointer... like, *ptr is the value pointed to by the pointer, ptr is the address the pointer is pointing to, and &ptr is the address of the pointer itself? or something? the one example I … | |
So I'm working on a C++ program and part of it involves converting decimal numbers to hexadecimal. I have been using printf("%02X",number) to do this, but I'd like to print to a text file. Just wondering if anyone knew of a way to send formatted text to file rather than … | |
Ok I have this problem which is very simple yet I can't find the solution anywhere. I have a simple function: [CODE] bool MyClass::close(int fd) { // code shutdown(sockFd, 2); close(sockFd); //code } [/CODE] This function does a lot of work and one of the things it needs to do … | |
3. Using User Defined Functions do the following question: my_array = { 3, 61, -5, 38, -17, 21, 92, -64, 41, -6} Find the sum of odd and even numbers in the array !!please help me to answer this question!! | |
I am working on an application that requires me to connect to a remote odbc connection. Right now I am currently using an external application called dbtcp that allows me to do this. I would prefer to not have to do it this way. Does anyone know of an existing … | |
is it correct to say that to take advantage of polymorphism at runtime, all of the base class functions that will be overriden must be virtual. If they are not, then you are really utilizing polymorphism at compile time? Do you guys use virtual sparingly, or frequently? | |
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] … |
The End.