49,761 Topics
| |
[QUOTE]Hey all, i'm having a bit of trouble with this - it's a program that should display the factorials of all numbers from 0 to k in the range 1-10. here's what i keep getting: Enter a number to see factorials for: 10 10! = 100 9! = 90 8! … | |
My instructor at my engineering institute has given the following assignment question: Create a database of scientists and labourers and maintain the same by making use of inheritance. We haven't been taught the database connectivity with program execution, so that's not to be used. I wrote the following code: [code] … | |
[COLOR="Red"][B]Plz help me tell me how we can convert the C program in C++ I working on OCX(Active X controls) plzzzzzzzzzzz...............reply[/B][/COLOR] | |
in need your help on how to write a source cod program in c++ to output the sum of natural numbers of 45 using the go to statament | |
how do i write a C++ function called RepeatingWords that displays a word (passed in through a string type parameter) N (also passed through a parameter) times. Then, write a calling statement for the function | |
Hello, I need a program that calls out some code after every x milliseconds and in the same time it waits for keyboard strokes to change the interval time and code what is called out. I should use threads (one for waiting for keyboard input and others for intervalled wake-ups). … | |
Hi All Based on the information below. When I call gradeArticle(myArticle, text) I get an error (free(): invalid pointer). The code works the first time and seems to error when called again. Even with all the code commented out of the gradeArticle method I still get the same error. I … | |
Well, I'm starting to get into C++ and well.. The only commands I know are simple I\O commands, so, I've programmed in C and if you know C you know that in windows.h you can do say System(""); to execute somthing in the command prompt. The thing is, I don't … | |
Hi All, I am getting following error message while converting my project from VC++6.0 to VisualStudio .Net2003. Command line error D2016 : '/RTC1' and '/clr' command-line options are incompatible Regards, Sunil Adhyaru | |
[URL="http://www.fatayat.net/ccsi/preview.php?pre=slove&id=1146"]http://www.fatayat.net/ccsi/preview.php?pre=slove&id=1146[/URL] please im new in this language thank for us | |
(I am trying to write a c++ program which computes sine of an angle without using c math library.I came up with a formula for this problem.The formula should use a factorial function in the program.I have a problem in doing this and hence i posted my code here for … | |
I think I have most most of this correct at this point. Getting a couple errors when compiling via G++ . Just trying to finish this up.. [code] #include <iostream> using namespace std; int main() { int array_size = 0; int number; int* list = new int[array_size]; cout << "enter … | |
I have to do a code in De Morgans law show that 2 expressions are equivalent. I not even sure if I am going in the right direction. Can somebody steer me right original expression - ! ( x < 5 ) && ( y >= 7 ) De morgans … | |
Hey frnds.... I am a noob to the world of programming.... Can you plz give me info about all the member functions of istream class used with the cin???? For eg. cin.getline()... And plz provide the brief intro of each and every functions...:?: | |
I am facing a problem in void pointers in c++. Have a look at the following code: [code=cplusplus] #include<iostream.h> int main() { void *ptr; int x=3; float y=2.35f; char c='A'; ptr=&x; cout<<endl<<*ptr; //line 1 ptr=&y; cout<<endl<<*ptr;// line 2 ptr=&c; cout<<endl<<*ptr;//line 3 cout<<endl; return 0; } [/code] I am getting the … | |
Hello All I am trying to format my program's output to be nicer than what it is doing now, and am looking for something equivalent to the noshowpoint that would act on the fixed manipulator. Here is the story: I have a sequential integer number that is acting as a … | |
I am having with some problems with a project I am working on. I need to output simple statistics of the "ps -ef" using the line "ps -ef | a.out", a.out being my program. To store the information I need to use a Hashtable of Linked Lists, without using STL. … | |
Hi, I have to implement a class called linked list that must read from file the following information about persons: name, social security and age. Then I have to implement some methods for manipulate the data. The problem is that I don't know how to start the implementation, because I … | |
hey there guys. this im officially my first post on this forum. seems pretty impressive how much there is on offer, however its only C++ im looking for assistance with today. i have two questions. i am creating a program with lots of variables, most of which should be random … | |
Hello All I an taking a class in C++. Though I have had many years programming, it is an introductory class because one needs to learn the syntax and rules of the new language. I am writing a program that stores data in a file, and retrieves data from a … | |
Hi guys Does anyone here have any C++ tutorials on how to use the "CMap" function ? I need to use a CMap but I have not the SLIGHTEST idea where to start, I just basically understand why I'm using it.... So any links to websites are welcome. If they … | |
Hello, I am trying to send directory names through the command line to program I am writing. This works perfectly until I add a space to the directory. I have tried adding Quotes around the directories and everything. The problem is then with the \ at the end of the … | |
I wrote a simple class: c:\geometry\Point.h c:\geometry\Point.cpp I made a VS2005 project and added a Source File test.cpp which contains main(). In test.cpp, I #include "c:/geometry/Point.h" When I build the project I get: Unresolved external symbol "public: __thiscall Point::Point(double,double,double)" referenced in function _main. However, if add Point.h to my Header … | |
someone showed me their code for their conversion program and left before I could ask question about how his program works q1:how exactly does "*" this work when not applied for mutipling? q2:does "a_base" and "b_base" work with this function unsigned long base2dec(char str[],int base) and does it have to … | |
This is the program and I have 5 errors that I can't seem to get rid of, it was a Fortran 95 program that I had to translate into C++. could somone please help me. [code=cplusplus] #include <iostream> using namespace std; int main() { //Declaration and Intialization float XL = … | |
i hav coded a matrix class and its member functions (many of them are overloaded ones)...now in a function..for eg. function of matrix addition.. [B]after the addition i want to return the local object "result" through a pointer (and not call by value)..however i aint getting d values of the … | |
[B]a. Write a pseudo-code that prompt the user to input number of sold items and then receive the sold value for each item, calculate the average value, display the items numbers associated with its values and display also the calculated average value on the screen. b. write down the C++ … | |
I'm new to c / c BUT not new to programing, I know php vary well. Well, on to my question. I'm writing a physics calc, the user enters a Vi and Angle and it gives them the rest of the info, [url=http://www.kc8onw.net/~jacob/calc.php]here's[/url] my php version. I got my c … | |
I need help with a conversion this to a switch statement, I haven't done one before that is why im asking [code]Convert the following C++ if statement to equavalent switch statement: if (SalesType >= 4 && SalesType <= 5) { TypeName = "Weekly Special"; DiscountRate = 0.45; } else if … | |
Hi I am wondering why size_t is used when it has the same functionality as an int and assigning size_t type variable to int works fine. Any one ? Thanks |
The End.