49,757 Topics

Member Avatar for
Member Avatar for Jboy05

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

Member Avatar for Narue
0
83
Member Avatar for experimenter

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). …

Member Avatar for experimenter
0
90
Member Avatar for bigbadowl

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 …

Member Avatar for bigbadowl
0
5K
Member Avatar for Petrock6

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 …

Member Avatar for mitrmkar
0
109
Member Avatar for sunil.adhyaru

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

Member Avatar for Nick Evan
0
65
Member Avatar for hassanawdah

[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

Member Avatar for SamiMarufi
0
97
Member Avatar for tlox

(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 …

Member Avatar for vmanes
0
343
Member Avatar for DJPlayer

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 …

Member Avatar for vmanes
0
85
Member Avatar for Ryano24

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 …

Member Avatar for jephthah
0
2K
Member Avatar for sahil_itprof

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...:?:

Member Avatar for Ancient Dragon
0
139
Member Avatar for amitahlawat20

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 …

Member Avatar for sahil_itprof
0
149
Member Avatar for Waseemn

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 …

Member Avatar for vijayan121
0
100
Member Avatar for mattieu

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. …

Member Avatar for mattieu
0
141
Member Avatar for kako13

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 …

Member Avatar for kako13
0
115
Member Avatar for 666kennedy

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 …

Member Avatar for 666kennedy
0
107
Member Avatar for Waseemn

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 …

Member Avatar for Narue
0
98
Member Avatar for kemarS

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 …

Member Avatar for mitrmkar
0
108
Member Avatar for cbattagler

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 …

Member Avatar for cbattagler
0
92
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
100
Member Avatar for Crazycfk

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 …

Member Avatar for Crazycfk
0
108
Member Avatar for mzdiva041986

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 = …

Member Avatar for mzdiva041986
0
102
Member Avatar for bhoot_jb

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 …

Member Avatar for bhoot_jb
0
256
Member Avatar for Ben10

[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++ …

Member Avatar for Ben10
0
146
Member Avatar for Dulaithol

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 …

Member Avatar for kynt
0
473
Member Avatar for Jboy05

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 …

Member Avatar for Narue
0
111
Member Avatar for mod_motox

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

Member Avatar for Narue
0
3K
Member Avatar for smelf1

Hi, I have not programmed for at least 9+ years and am looking to try to get back into it. How can i implement the encryption and decryption as used in DES. The program should ideally receive a message or open a file to encrypt it or decrypt it. it …

0
76
Member Avatar for Lalarukh khalid

hi!!!!! i just want 2 ask tht how czn i select the topice 4 project.... can somebody give me some examples..... tell me let u one thing tht i am a beginner...

Member Avatar for Narue
0
83
Member Avatar for w2s

(The program below should calculate sine of an angle without using c math library.The angle should be in radian otherwise the program will convert it to radian.The program gives me the wrong output which probably means that it has some logic errors.I think the problem could be with the formula …

Member Avatar for sarehu
0
87
Member Avatar for daviddoria

Last week I asked about this so I tried to write another example to try it out. I have a Line class which needs to have and members of type Point and member functions that return type Point. The Point class needs to have member functions that return type Line …

Member Avatar for daviddoria
0
401

The End.