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

Why allocate new memory for those links? You can just move the link from the original linked list to the new linked list and adjust pointers accordingly. No need to allocate new memory or delete old nodes. Your function is causing a lot of memory leaks because none of the nodes are getting deleted. Just move the node from one list to another solves that problem.

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

Dani applied voting flooding control a couple years ago when DaniWeb was under vBulletin because another member did something similar. Maybe you need to implement it here.

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

The consequence of that 1 downvote cause this person to downvote me 930 times for what?

I thought there was a limit for the maximum times a member can up/down vote another member in the same day? Were all those downvotes on the same day?

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

Maybe I'm just the only one that turns off automatic watching as a matter of course

I started doing that years ago.

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

why not just use your browser's bookmark feature?

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

if ("symbol = +")

When doing comparisons you have to use == operator, what you have above is an assignment operator. Don't get the two operators confused even though they look alot alike.

Second problem with the above line is remove the quotes and put ' around the + symbol. Here's how it should look.
if( symbol == '+')

Next, use { and } to enclose multi-line statements such as those if statements in your program.

if (symbol == '+')
{
     result = numb1 + numb2;
      cout<<"the sum is :"<< result <<"\n";
}
GokuLSSJ4 commented: I tried it is still the same +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The reason yours won't compile is because two stars means a 2d array, but the array you declared is a 1d array.

int array[] ={1,2,3};
int *p_array = array;
p_array[1] = 99;

// or the last line could also be
*(p_array+1) = 99;

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

My guess is (c), Overflowing Pie-Hole :)

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

line 11: i+4 should be i+=4, the value of i is not getting incremented in your program.

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

You need to check the ocx versions before replacing it, you could render your computer unusable if you replace an existing ocx with an older version.

Have you tried to re-register it? Here are some tutorials on how to do that.

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

If you handle the event in your derived class then your derived class will get the event, not the parent(s). Parent class will only get the event if your derived class calls it.

If you have supplied a handler for a specific message, or for a range of messages, in your parent window's class, it will override reflected message handlers for the same message provided you don't call the base class handler function in your own handler. For example, if you handle WM_CTLCOLOR in your dialog box class, your handling will override any reflected message handlers.

See more at this link

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

gd=DETECT,gm,errorcode;

Line 23: What is that trying to do?

if I enter 500,600,180,250 i am getting BLANK SCREEN.

Print out the value of the calculations, x and y are probably off the screen.

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

From Microsoft about PreCreateWindow():

Never call this function directly.

See the comments in this link

You have to override that function in your CListBox-derived class.

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

You're going to use both compilers/IDE's? win32 api is probably as fast as you can get for writing native MS-Windows programs. .NET compilers might be a bit faster, I don't know.

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

what compiler do you want to use? If you use C# and Visual Studio 2012 the IDE will generate a lot of the code for you. If you use Visual Studio 2010 you can create a CLR/C++ Windows Forms project which will also generate most of that program. For some reason Microsoft dropped support for Windows Forms templates in VS 2012 CLR/C++.

If you want strict c++ then you can use any c++ compiler for MS-Windows and win32 api functions. Here is a starter tutorial.

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

The requirements for any given degree varies from one college/university to another. You have to ask the school you want to attend about its requirements. Most schools I know about have catelogs that describe the requirements for a degree.

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

You are probably trying to create the list box before the dialog box is created. Move the code to just before the return statement in OnInitDialog() as shown here.

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

To extend a little what phorce wrote, the pointers don't have to be pointers to arrays, but can be pointers to a single object such as a single integer. What exactly to pass to Func depends on how Func() is written. It could be either of the following, depending on the content of Func().

The second example below is very similar to the first example that phorce posted, except phorce allocated the array dynamically and I did not. Allocating the arrays dynamically is usually done when the size of the array is not known then the program is compiled, something else determines its size. Each approach is ok, as long as you realize that dynamic allocations is baggaged with the cause of many bugs and long hours debugging.

// pass pointer to a single integer
int main()
{
   int num = 1;
   Func(&num));
}

// pass an array
int main()
{
   int num[5] = {1,2,3,4,5};
  Func(num);
 }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There is no such thing as Windows 2008, you probably mean Visual Studio 2008? If you want to write plugins for Visual Studio then read some of these links. Note that this is not for c++ language or compilers, but to extend the Visual Studio IDEs. If you want to extend the c++ language then you have to write libraries or DLLs, not plugins.

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

I get an error message saying that 'the size of result can't be determined'.

That's because you declared it with unspecified array size on line 5 and that's illegal in c++. Change it to this: char **result = NULL;

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

it's my understanding that IMissile* Create() (line 5) just points to the location in memory where a missile is created i.e IMissile* IMissile::Create() is that correct?

No. The static keyword says that there is only one copy of the function that is used for all instances of the object. All instances of the object will use the same instance of the function Create(), and the function will return a pointer of type iMissile.

First off when you set virtual void setDestination(double,double) = 0.. does that just initialize it to zero?

No. That was my first impression too many years ago when I first started to learn c++ classes. You need to read up on "pure vitural functions". A pure virtual function is used in base classes with the intent that derived classes implement it. As a simple example lets say you have a base class named Animal and a derived class named Dog. Animal contains a pure virtual function named Speak. Now then, Animal can't possibley know how each animal type speaks so it leaves it up to the derived class to implement that. A Dog class will Speak by saying "Bark". A Cat class will say "Meow", etc. So whan Animal class calls Speak() the call will be passsed to the derived class.

class Animal
{
public:
   void SayHello() {Speak(); } // call pure virtual function
   virtual void Speak() = 0; // pure virtual function
 };

 class Dog : public Animal
 { …
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You are using a function that has been depreciated, not intended to be used in new programs. http://www.sqlite.org/c3ref/free_table.html

This is a legacy interface that is preserved for backwards compatibility. Use of this interface is not recommended.

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

The problem is that all those macris the rc file are not defined. Create a file named english.h and define them there. It doesn't matter what numbers you assign to them as long as there are no duplicates.

// english.h
#define IDM_NEW 1
#define IDM_OPEN 2
#define IDM_SAVE 3
#define IDM_EXIT 100
#define ID_OPTIONS_SHOWTOOLBAR 500

Then include english.h at the top of english.rc

#include "resource.h"
IDR_MENU MENU DISCARDABLE
{//BEGIN

    POPUP "File"
// rest of the rc file goes here
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Gone with the Wind

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

I thought it was just my isp, but apparently not. It's working normally now.

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

I think you've just agreed with me about the lack of morals in Hollywood.

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

@AD strEmployeeCategor is an STL string not a char[].

You are right, I was looking at strEmployeeName

why is nNoofhoursPerWeek declared as a float instead of int?

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

You have to compile that with a resource compiler, not a c++ compiler. What filename did you give that code? It needs to have .rc extension.

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

if you want to read all the lines in the file then make line 26 a while statement, not an if statement.

strEmployeeCategory == "J")

You can't do that with character arrays. You have to call strcmp() to compare two character arrays like this
if( strcmp(strEmployeeCategory, "j") == 0)

strcmp() returns 0 if the two strings are identical, or something else if they are not the same. If all you need to do is check the first character in strEmplooyeeCategory then you can use this instead:
if( strEmployeeCategory[0] == 'j')

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

post your attempt to solve the problem.

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

The problem is not that there is violence, cursing and sex in the movies, because these things are sometimes necessary to make meaningful points about related topics / moral issues.

Bullshit! I don't have to watch two or more people having sex together to know about the problems of sex. I don't have to listen to commedians using the F word whenever it suits him to know about ghetto problems. I don't have to watch one person cutting off another person's fingers to know about drug deals. Hollywood puts all these things in movies purely for profic, just for the $$$.

<M/> commented: Good use of language and a good point with it :) +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You shouldn't say "Hollywood" and "morals" in the same sentence :) Hollywood lost all morals years ago when they started producing R rated movies which contain lots of violence, cursing and sex.

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

I'm trying to figure out how to set up RSS feeds for specific DaniWeb forums. How can I find out what valid forum ID numbers are? This page says to set it to 0 for all forums, so what if I only want C and C++ forums?

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

I'm just having a heck of a time trying to figure our the answer(s) to the following questions

Those aren't questions -- they are problems for you to do. Start by doing the first problem, then when that is finished do the second, etc. When you get one that you can't complete then post the code you have tried here at DaniWeb and ask some questions or explain what it is that you have a difficult time figuring out. That's the only way we can or will help you. No one is going to just hand you the solutions to those problems.

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

i need turbo c soft for 64 bit..

There is no such thing. Turbo C was written only for MS-DOS 6.X and earlier (mid 1980s). It will not run natively on any modern version of MS-Windows. But not all is lost, you can get DoxBox and run Turbo C in that environment.

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

windows 8 is still almost unusable for me.

Update: This is no longer true. I called a Microsoft tech support, the technician took remote control of my computer, and fixed the problem. The problem was incompatible 3d party software that I had installed, not Windows 8. Everything is working ok now.

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

It seems the only place where that would be useful is in the Community Center forums. I don't see any threads on the first page of any of the other forums where anyone with more than 0 checksmarks have started threads.

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

If you put car.h in the same folder as car.cpp the compiler should not have a problem finding it. If you put car.h in some otherr folder you will have to tell the compiler where it is, as stated by other members who have posted here. For small projects just put everything in the same folder unless you are instructed to do otherwise by your teacher.

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

please post the first few errors.

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

You don't want to do that scanf() stuff because the array has already been filled in the TableFill() function. All you want to do here is just use a loop that counts from 0 to n and sum up the values that are in the array.

variables named sum and average will need to be double instead of int because the array is an array of doubles.

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

Here is a link to some texting acronyms for senior citizens and their friends/loved ones.

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

I don't see how to endorse someone any more. I think it was yesterday that there was a link in the member's profikle just above Rep grap, but that's gone now. When I click Skill Endorsements all I see is a list of people who have endorsed that member.

[edit]Nevermind. I found the answer here

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

I want to have enough money so as not to work anymore in my life

Be careful what you wish for -- rich people actually work harder then poor people because they have to keep what they have and that's not an easy task. Bill Gates can lose Billions $$$ very easily, I don't have to worry at all about that :) :)

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

I notice Ancient Dragon is the only member that has 5 checks.

Look again. There are several threads here in Community Feedback with 5 checks that I did not start.

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

put lines 1 thru 8 in a header file
put the remainder in a .c file
at the top of the .c file include the header file that you created in the first step
create the make file

Once you do the above you need to finish writing the functions in the .c file. For example function tableAverage() is incomplete. You need to sum all the values in the array then divide the sum by the number of elements in the array.

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

I'm watching Dr Who right now with Tom Baker from the 1970s. He was my favorite Dr.

and Ancient Dragon, I remember monochrome TV!

My dad bought the first TV I saw which had a round screen in B&W. I still remember him watching boxing at Madison Square Guardens.

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

Just wondering how 'easy' it is for non-mods to endorse somebody not in the 'suggestions' list.

Just as easy as it is to endorse anyone else. Just click the member's/mod's avatar then his/her name appears in the list.

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

If the user has to enter integers why are you using a std::string array? Why not an int array?

The loop on line 8 is incorrect. Arrays are always numbered from 0 to the number of elements, for example if the array has 5 elelements then they are numbered 0, 1, 2, 3 and 4. There is no element #5. Your loop should look like this:

for(int i=0;i<size;i++){

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

You mean the new version:

Yes.

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

Just finished watching Star Trek again on DVD, the one which shows the cred of the Enterprise while they were cadets. Very good movie, I hope they make a sequel.