49,761 Topics

Member Avatar for
Member Avatar for smithss

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 …

Member Avatar for smithss
0
137
Member Avatar for winrawr

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 …

Member Avatar for winrawr
0
107
Member Avatar for robotnixon

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 …

Member Avatar for Ancient Dragon
0
90
Member Avatar for DeboJackson

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 …

Member Avatar for grumpier
0
146
Member Avatar for P.I.M.P

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!!

Member Avatar for VernonDozier
0
140
Member Avatar for rottmanj

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 …

0
54
Member Avatar for noodlecode

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?

Member Avatar for Narue
0
93
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
85
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
88
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
142
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
85
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
131
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
96
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
78
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
68
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
72
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
139
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
60
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
179
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
108
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
113
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
170
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
63
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
391
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
81
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
138
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
125

The End.