Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~74.2K People Reached
Interests
Computer stuff, running and other stuff.
Favorite Tags
Member Avatar for rwkopcke

Dev-C++ v 4.9.9.2 IDE When I compile and run my program as a console project, a window flashes very briefly on the screen and disappears. The compile log says compilation was successful and execution terminated. How to I keep the window (my output window?) from disappearing?

Member Avatar for Mohit_12
0
6K
Member Avatar for superjacent

Hope someone can clarify. I'm self-studying and my question relates to Programming Exercise # 2, Chapter 12, C++ Primer Plus Fifth Edition (pg. 629). I completed the exercise and achieved the desired result but my query came about when I compared my version to the solution. The exercise builds upon …

Member Avatar for Museful
0
244
Member Avatar for superjacent

I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: …

Member Avatar for sheldonrobinson
1
58K
Member Avatar for superjacent

In learning Ruby I've dug out some old C++ exercises and one in particular which can be found [URL="http://prime357.net/node/80"]here [/URL]deals with a for loop. I'm basically converting the C++ code to Ruby code. I won't repeat the C++ code but the exercise is as follows: Write a C++ program that …

Member Avatar for superjacent
0
148
Member Avatar for superjacent

How do I configure SciTE so that when code ( gets() ) asks for user input I can enter that input via the output console. At present, all that happens is a 'Terminate' button appears in the output console. If the code doesn't contain any keyboard input, then all is …

0
102
Member Avatar for superjacent

I dabbled in Ruby quite a while ago but only at the console level. I didn't take it any further at the time. I'm now considering treating it more seriously this time, though I'd have to start from the start. My understanding is that Ruby is a cross-platform development language. …

Member Avatar for fraogongi
0
164
Member Avatar for superjacent

I'm self studying C++ and I'm actually back-tracking a bit in order to clarify things. My question revolves around why in the following code is the [icode]cin.fail() == true[/icode]. [code="cpp"] #include <iostream> using namespace std; int main() { char getdata; cout << "Enter one character: "; cin >> getdata; cin.get(); …

Member Avatar for superjacent
0
293
Member Avatar for superjacent

I've just completed an exercise from a book wherein the task is to display a menu of choices each associated to an alphabetical character. The program is to reject invalid characters and only finishing when a valid choice is made. Below is my solution, it achieves the task but I'd …

Member Avatar for jade09091990
0
171
Member Avatar for superjacent

I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: …

Member Avatar for superjacent
0
171
Member Avatar for Spencicle

You have just purchased a stereo system that cost $1000 on the following credit plan: No down payment, an interest rate of 18% per year (and hence 1.5% per month), and monthly payments of $50. The monthly payment of $50 is used to pay the interest and whatever is left …

Member Avatar for superjacent
0
1K
Member Avatar for Jboy05

I have to write a C++ function named MPG which returns the number of miles a car can travel with one gallon of gasoline. The function should have three parameters: the size of gas tank in gallons, number of miles traveled, and gasoline left in tank in gallons. this is …

Member Avatar for superjacent
0
176
Member Avatar for Jboy05

how do I wrtie a function that takes one argument of type double. The function returns the character value ‘P’ if its argument is positive and return ‘N’ if its argument is zero or negative. [code=c++] double Letter ( double P, double N) if (P = +); return P; else …

Member Avatar for kjc367
0
109
Member Avatar for VIcissitude24

[code=c++] #include <fstream> #include <iostream> #include <string> using namespace std; string getFileName(); int numCharsInFile( ifstream &in, int &nLines ); int numWordsInFile( ifstream &in, int &nWords ); main () { int nLines, nChar, avgCPL, nWords; ifstream textFile; string fileName; fileName = getFileName(); textFile.open(fileName.c_str()); if(!textFile.is_open()) { cerr << "Cannot open file: " …

Member Avatar for superjacent
0
116
Member Avatar for snowy_shoryu

the title says it all.. if any1 happen to see one , can post the link to me? thanx!! i need it to do my assignment .. but i cant find any program as long as that! tq! my assignment task is to find a program written by other ppl …

Member Avatar for TimeFractal
0
228
Member Avatar for shadowfire36

ok i just got my ass chewed by my professor cause he gave us a a program to build and i used visual studio to build it . he told me he wants his programs built in a compiler , i told him i was using visual studio , he …

Member Avatar for WaltP
0
938
Member Avatar for superjacent

I'm learning C++ from C++ Primer Plus, 5th Edition, and have come across the following problem. The following class declaration is given as part of the question: [code="cpp"] /* Name: move.h Copyright: Author: Steven Taylor Date: 31/01/08 15:05 Description: Class 'Move' header file. C++ Primer Plus, Ch.10,Prog. Ex 6. */ …

Member Avatar for superjacent
0
202
Member Avatar for grmskrk

I saw few similar problems on this forum, but they didn't match exactly what I need. The problem is: given a file with names of cities, their latitudes and longitudes, a program must calculate distance between them. But, it isn't all. A program must create a database of all this …

Member Avatar for superjacent
-1
197
Member Avatar for tamereth

My program works properly under windows, however, it seg faults when I try to compile/run it under linux. [code=c++] #include <fstream> #include <iostream> using namespace std; int main() { char command; char infilename[80]; char outfilename[80]; char fileline[80]; char nextline[80]; char temp[80]; char temp2[80]; char * location; char sentence[250]; int loc …

Member Avatar for tamereth
0
172
Member Avatar for eesti44

Hey all, I am continuing with my self study and now I have come across classes. I have read about this and read about this but it seems very alien to me.The problem I have selected to do is as follows: Here is a rather simple class definition: [code=c++] class …

Member Avatar for Agni
0
189
Member Avatar for superjacent

Hope someone can help. I'm self-studying from C++ Primer Plus, 5th Edition. I'm having trouble working out why the following two files will not compile. I'm using Dev-C++, under Windows Vista. [code="cpp"] /* Name: bankaccount.h Copyright: Author: Steven Taylor Date: 28/01/08 14:04 Description: C++ Primer Plus, Chapter 10, Programming Exercise. …

Member Avatar for superjacent
0
171
Member Avatar for jonathanasdf

Never mind. That question was solved by myself. anyhow, when I compile my code, I get an error. [CODE] #include <iostream> #include <windows.h> using namespace std; int main(){ for (int number=1; number<=6; number++;){ if (number == 1){ numbersuffix = "st";} else if (number == 2){ numbersuffix = "nd";} else if …

Member Avatar for jonathanasdf
0
213
Member Avatar for guitarrick

Still stuck on this one. I am not back in class yet. This is my personal research/review for the upcoming semester. I am not where I'd like to be with my review, but I really want to solve this one; but I can't seem to get started. Can someone please …

Member Avatar for superjacent
0
248
Member Avatar for bis student

hello ,Im a new member and Im not very good in english , so please excuse me , I have question : write a C++ program that declares an array alpha of 50 component of type double . Initialize the array so that the first 25 components are equal to …

Member Avatar for invisal
0
4K
Member Avatar for Jishnu

Hello, I'm planning to do a project which involoves a lot of GUI. Does anybody know whether there is any IDE available that supports a code wizard feature for C++? For eg in VB, we design the menus, frames, text labels, etc. and when we click on 'generate code', the …

Member Avatar for Jishnu
0
150
Member Avatar for superjacent

I think this is the right forum for this type of question as opposed to the C++ forum. I'm learning C++ via Windows Vista, console stuff, at the moment. I've also got Ubunto installed and trying to figure out which programs I need in order to write simple console type …

Member Avatar for superjacent
0
205
Member Avatar for scholly

Hi to you all, I am scholly from Sydney Australia. I am a retired 65yo. I worked most of my life as an assembler programmer, programming various message switchers for telegrams,telex, private company networks etc then as a senior Unix system administrator of an international network for the Australian Telecommunications …

Member Avatar for jasimp
0
84
Member Avatar for superjacent

A programming exercise I'm doing requires that a program be written whereby functions are used to 1) fill an array, 2) show the array and 3) alter the data of the array. The arrays are to be passed as pointers to the functions and the use of [icode]const[/icode] keyword be …

Member Avatar for superjacent
0
146
Member Avatar for superjacent

[CODE="cpp"]// strgback.cpp -- a function that returns a pointer to char // C++ Primer Plus, Fifth Edition // Chapter 7, Page 312. // Listing 7.10 // 10 Dec, 2007. #include <iostream> char * buildstr(char c, int n); // prototype int main() { using namespace std; int times; char ch; cout …

Member Avatar for superjacent
0
133
Member Avatar for superjacent

So, here is my first post. I'm currently learning C++ and into my 2nd week of self-study. I'm using the book, C++ Primer Plus, Fifth Edition, as my primary source and constantly referring back to other books and the web for a different take on particular aspects. It's the 'different …

Member Avatar for superjacent
0
90