Thanks - got it. Steve
Type: Posts; User: smitsky
Thanks - got it. Steve
Hi. Thanks. No such option in either case. Steve
I don't have this folder in my folder list.
I am probably being exteremly inept here, but I do not see anything in Options that would allow me to do this. There is an "Auto Archive" button, but I...
Hi. Can someone help me with the fact that MS Outlook 2000, which is my email client, archived an important message that I need to retreive. I need some resources. Thanks, Steve
Hi. I recently took a first course in C++ a year or so ago (I had some prior experience).
The professor used this book:
Programming in C++: Lessons and Applications by Timothy D'Orazio of SF...
OK, here's my attempt at "using pointers and value return:"
#include<iostream>
using namespace std;
int f(int* i)
{
*i=(*i)+=40;
Well, as a beginner-to-intermediate student, I was surprised to read this. I guess because I am moving into an intermediate level in my studies, I am coming across this. It doesn't seem to me (of...
Hi. I read something interesting in Bjarne Stroustroup's book. He discourages using functions that modify call-by-reference arguments. He claims that they make programs hard to read.
I was...
I appreciate it. I'll try my best to learn from and understand this. ~Steve
Thanks. Yes - I used Mr. Stroustrup's code. I just didn't understand the concept. I'm still not sure I do. What exactly is happening here? I'm not used to seeing a function incremented. Why does it...
Thanks... but once I remove the ampersand from:
double& value(const string& s)
...
As in:
double value(const string& s)
I'm using Dev-C++ 4.9.8.0
As soon as I remove the ampersand, I get that error message which points to:
value(buf)++;
Thanks, Steve
Hi. I am studying Bjarne Stroustrup's book. He gives the following code while explaining references:
#include<iostream>
#include<vector>
#include<string>
using namespace std;
struct Pair
{
Hi. I am trying to write a program that outputs Polish language characters to the ms-dos console, but am running into trouble. Evidently, I have to use something outside the 256 ascii character-set....
Thanks folks. I got it eventually. Best, Steve
Well, I'm still stuck here. I thought that I would be able to create a copy of my values vector of Huff pointers, and start on them as a method of going from the leaves of this budding Huffman tree...
Hi. Thanks jlou ("hi again"), and terran9. I will try what you have said. terran9, just so you are aware, this program is meant to run from the command line. It does this fine. I could use debugging...
Hi. I just wrote the traverse function. No compile-time errors. The program crashes at run-time. Any idea why? I thought it should work. Thanks always, Steve
#include<iostream>
#include<vector>...
Glad you could see that! Wish I could have. Thanks again. Steve
Hi. I have a vector of pointers. When I try to return v[i] from the following function and then try to output the values to the console, the program crashes.
Huff* findMinimum(vector<Huff*>& v)...
Thanx Prelude. As always, I really appreciate it.
~S.
Hi. I am getting the following error message when I try to call the function I have outlined below. Any one know what the problem might be. Can I write this stand-alone function: Huff*...
Hi Emotions. Do the following:
Add this to your list of includes:
#include<string>
Then change the type of "username" to string:
string enteredname;
Hi Emotions. Let's take things one step at a time here. For one thing, if you expect a user to enter his sex as either male or female (M or F), you need to add single quotes around M and F like this:...
Hi Barfchunk. I see that you have an error here:
float readData(ifstream &inFile, float customer[], float balance[], float size)
{
for (int i = 0; i <size; i++)
{
if (!(inFile>>...