Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

older doesn't equate to better. The only reason Mayans bowls are so expensive is because they are very very rare, most of them are probably in musems. A few of the very old compilers/computers (e.g. built before 1980), as well as many typewriters, are also expensive if you wanted to buy them now for the same reason (rare). However it would be a joke if anyone wanted to use them in today's business.

Learning how to use Microsoft compilers is a long learning curve -- you won't learn it over night, and its not really intended for beginners. Code::Blocks is a lot easier to learn, and its portable between operating systems. That doesn't make CB a better IDE than VC++, its just easier to learn.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There is another thread here about the cursor problem.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Do you guys miss having views?

No. I can live quite nicely without them.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Dev-C++ may well be the best IDE/compiler for Windows 2000. That os is to old that I'm not sure if any current compiler/IDE will run on it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

No, I'm using Chrome

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Just happened to me again.  I was half way typing a response to a question when the cursor moved to the wrong location in the edit box.  The only way I could regain control was to save what I had typed then edit the post.
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Is there any KEYWORD in C++ (may be advanced C++) to replace a value or variable??

No c++ itself doesn't support GUI programs, but if you have the express version of vc++ you can create Windows Forms application in CLI/C++, which is a superset of c++. If you have the standard or pro editions of vc++ then you have other options, such as MFC and ATL. All those languages require a working knowledge of c++.

Can this be done on the console window of visual studio ??

To some extent, yes. You will have to use the win32 api Console functions to move the cursor to the screen location where you want to display the number.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You need to look at the class constructor to see why it need a char*. argv[1] is just whatever you type on the command line folowing the program name.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Use the mouse and pull the scrollbar down about half way. At that point the scroll bar immediately jumps to the bottom then starts bouncing up and down about the height of the scrollbar.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Its the only thread I've seen that acts like that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It could be, but I have ads turned off in my profile. Workd ok for me with IE9 but not Chrome. I think the problem is the right side of the windows where the tweet and Line buttons are becaue I see them flash on and off very rapidly.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You have to learn how to write the file in jpeg format, as in this link and this wiki article

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Go to Project-->Build Options-->Linker Settings tab, then click the Add button so that you can add the name of the file. Libraries must be in the format libXXX.a, same as in unix gcc or g++

After looking at the link you posted all you will get is the source files -- no libraries. So you will have to compile and build it yourself. There should be a doc file that tells you how to do that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Chrome on Windows 7 goes crazy when trying to scroll in this thread. Use the mouse to use the scrollbar on the right.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You have to test for folders. Here's a code snippet that will show you how that's done

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

never heard of it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It looks like SHFileOperation() does create the directories

Copy and Move operations can specify destination directories that do not exist. In those cases, the system attempts to create them and normally displays a dialog box to ask the user if they want to create the new directory. To suppress this dialog box and have the directories created silently, set the FOF_NOCONFIRMMKDIR flag in fFlags.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Another way to do it is to call CopyFile() instead of SHFileOperation(), its a lot easier to use.

To answer your question, you have to call a conversion function such as one of these to convert char* to wchar_t*

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Yes, that fixed it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It's not fixed. I see problems with the cursor in Chrome.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Anybody else excited about this?

Not really. Its about as exciting as a wet noodle. The discovery of DNA was indeed very exciting because it affects our every day lives. Maybe in a few years my attitude about it will change once we know how, or if, it has a similar affect as DNA had.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There is no solution using standard C/C++ variables such as long double because they have a finite limit before overflow occurs. Check your compiler's limits.h header file to find out what your compiler supports. If you need that large of numbers then I'd suggest using one of the huge number libraries such as one of these.

Also check limits.h to see if your compiler supports long long and long double, some compilers support the names but their sizes are the same as long and double.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What about the value of n that I mentioned? Also, the array is not being initialized. The program gets a random number but does nothing with it except display it on the console screen.

Another problem -- rand() does not return negative values, so all you will get are a list of 1000 positive numbers.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

random_number = (rand()%0)+1;

Why %0 ? That's a do-nothing statement.

line 31, main.cpp. The value of variable n is 0

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Matlock was one of my favorite shows, right up there with Diagnosis of Murder and Perry Mason.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I just learned about the death of Andy Griffith and it was like loosing an old close friend. May he RIP.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Your namne change is not complete. Look at the far-right column on this page (and others just like it) It still shows cscgal

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you have to allocate memory (see malloc or new) for nameBuffere before you can copy something to it. Also, I don't see any * in the example you posted -- maybe because DaniWeb editor deleted them. If you want a star then you will have to escape it, such as \*

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

They show different colors on chrome. Join date is light grey and the date itself is purple. I actually wish all the text throught DaniWeb were a darker color to make it easier on the eyes to read. I have to strain to read it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I think I'm going to go ahead with it

with what? Did I miss something? Your name change to Dani would be better IMHO :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Just change the loop so that i is initialized to sizeOfArray-1, and loop until i == 0

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You just don't notice all the differences ;)

Are you talking about the link Edit Profile??

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It worked ok for me, using this thread as test, then pasted it into Visual Studio and Notapad. How did you copy it to the clipboard? I just double clicked the code, then after seeing it turn blue I right clicked and selected copy from the popup menu.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The title should be "Whether", not "wether"

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't see any changes to my profile page.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

C is a 2-dimensional vector. In c++ you can represent it like this:
vector<vector<NS>> C;
C.resize(NE);

There are other ways to do it as well, such as this boost library

Or you could just use a simple array such as int C[NE][NS]; assuming NE and NS are constants, or you are using a compiler that supports the new c++11 standards.

NS and NE can be either input using cin, read from a file, or just int constants.

Also, if cos and sin are in C++, is there a -sin() in the math library?

Yes, sin() and cos() are part of the standard math library. Look in <cmath> or math.h for others.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Line 15 fails because Node_B has not been declared yet. Reverse the order of Node_A and Node_B and it should compile.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Just before doing line 111 for example you need to call free() to release the memory for the deleted node.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm shocked! You should have been horsewhipped for writing that horrible stuff :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The code you posted doesn't really delete anything, all it does is return one of the nodes in the linked list. You need to post the code that calls those two functions so that we can see what it does with the pointers. And yes, if you used malloc() to allocate memory for the nodes you will have to call free() to release that memory.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Hydrogen cars are a red herring. I remember my first class in thermodynamics (back in my second year of my Mech. Eng. degree), as a basic introduction to thermodynamics analysis, the prof proved how idiotic it is to even attempt to use hydrogen to power cars

That's what people told Christopher Columbus in 1492. They also said the same thing about people who tryed to learn how to fly, or others like Henry Ford and his horsless carriage. Just because current scientific knowledge doesn't know how to do it, doesn't mean someone someday won't figure out how to do it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't like it, I find it confusing. The toggle idea is a good alternative, maybe put it in our profile page.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

AIstruc_word

Add a constructor which initializes the two pointers to NULL

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There are probably lots of ways to do it, but I would start out with a structure that contains two items: command and count. Then put the structure in an array or linked list. Once that is done it can be evaluated in a loop by iterating through the array or linked list.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You know you're old when you start writing a bucket list.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

cout << "The frequency of letter" <<stats ['A' + i]<<"is"<<stats[i]<<endl;

That line is incorrect -- there is no such element as stats['A'+i] because that's the same thing as stats[64+i]

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

lines 8 and 9: remove the typecast because it isn't necessary. If all you want to do is display all the alpha letters A-Z and a-z then the two loops should not be nested. What does your book say how the letters should be displayed?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

if (ch >= 'A' && ch <= 'Z')

header file: you didn't finish the if statement.

Those two functions in that header file need to be moved to the *.cpp file becuse it will cause duplicate link errors if you include the header file in more than one *.c or *.cpp file. You can safely put function prototypes in header files, but not the entire function.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

put a loop in main()

int main()
{
    while(1)
    {
       gi();
       display();
       eval();
    }
    return 0;
}