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

Apparently zbar.h does not define NULL. Did you try including iostream (or some other header file that defines NULL) before zbar.h in dummy.h?

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

You need to post the code.

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

testing

[edit]Alt+S doesn't work for me either on Windows 8/Chrome

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

No such site as SeriouslyCoding.com

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

lines 19 and 22 are wrong. How about other versions of yes, such as yEs and yeS and yES? It would be a lot easier to just convert rndnum to all upper or lower case characters then check for that.

if ( rndnum == "Yes" || rmdnum == "yes")

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

the first mistake is line 13: you are allocating an array of fsize number of pointers -- why??? If the file size is 1 Meg do you really need 1 million pointers? A much better and more efficient way to do it is to use a linked list of lines, something like this would do.

struct node
{
   char* word;
   char* line;
   struct node* next;
}

Now read the dictionary file and create the linked list. After that, the dictionary FILE can be closed.

Next, open the other test file and read it line-by-line. For each word in the line, search the word in the linked list. When the word is found replace it with the 'line' member of the node structure.

You will probably want to use a different char buffer for this, which can be used to create a new line without affecting the contents of the line buffer used to read the data file. It's a lot easier that way because you're just concantinating strings into that temp buffer.

for each line in the file
   for each word on the line
      is the word in the dictionary linked list?
         yes, then copy 'line' member of node into temp buffer
         no, then copy word from the line into temp buffer
   end for word
end for each
write temp buffer to output file
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Press Flag Bad Post button on your post and tell a moderator what you want edited.

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

Here's how to copy files from one computer to another on the same network. Software programs are another thing -- you should just install them on the new computer as mentioned previously by rubberman.

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

I don't work any more, but I use a nearby public light rail train (free parking) to travel to the airport which is about an hour's drive away. It's a lot cheaper and easier than driving there then finding a place to park. I could also use it to go downtown St Louis shopping or attend a baseball game. I wouldn't use electronic devices on it for fear of it getting stolen.

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

move line 11 down between lines 17 and 18.

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

First you need to ask yourself "what are the type rules?" Once you know the answer to that question you can test your compiler out to see if it complies with those rules. I'm not sure myself what is meant by that question, the only way for you to find out is to read your textbook or review the lecture notes from your classes.

Here is an article that most likely describes type compatability rules.

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

In my area there are places where women can get free birth control stuff. And for men, there is always the vasectomy.

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

Unfortunately there isn't. But it's easy to write yourself. Just search the string for the first non white-space characterr (space, tab, newline) and, when found, shift all remaining characters to the beginning of the buffer so that all white-space characters are overwritten. memmove() is a good function to shift everything all at once.

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

GET A JOB was referring to the parents, not the newborn babies! I thought that would be inferred, but maybe not.

If people can't get jobs then do something else with the time instead of making babies. Too many unwed mothers who have nothing better to do then get pregnant.

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

So I guess you're willing to sell the US to China? I don't think so.

According to this research paper, the 1987 estimate was $175 Billion, or $360 Billion adjusted for inflation to 2013 dollars. So where did you get that $320 Trillion from? Most of the land owned by fed government isn't even usable, such as the mountains of Alaska.

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

The us government spends about $60 BILLION per DAY. That cannot go on forever, just like you have to control your own spending the US government needs to do the same. So how are they supposed to control spending? Simple, by reducing the size of government, stop all the pork bills, stop entitlements, and stop foreign aid. Phase out social security administration, require people to get privatized retirement plans. Abolish Obamacare, which is going to cost several Trillion dollars per year. Abolish the War on Drugs -- it's a disaster anyway. Release non violent prisoners, such as those in prison for drug charges and other non violant crimes. Abolish Agriculture department, it's outlived it's usefulness. Abolish Secretary of Interior, which oversees national parks and land management, which can all be privatized. Abolish Secretary of Labor, Secretary of Commerce, Secretary of Housing and Urban Development, Secretary of Transportation, Secretary of Energy, Secretary of Education, and Secretary of Veterans Affairs. Nice to have, but not absolutely necessary. Last, but not least, streamline US military. Why do we need army, navy, marines, air force and coast guard (technically a branch of US Treasure, not the armed forces)? Why not just combine them all into a single military and eliminate all the duplication.

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

It assume you already have the compiler installed on your computer. Just pick the version of QT that matches the compiler and operating system you have.

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

904d0ba34814d8338ad0c4e426ff52fc Maybe -- studies have also shown that there is a direct correlation between the rising of the moon and pregnancy. Conclusion: lets destroy the moon because it causes pregnancy. This chart, from here, shows very little change over the last 50 years.

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

The first for me is the preservation of free speech

That is not available in all countries -- some countries don't have such a thing. So you can't preserve something that doesn't exist.

There is no such thing as "freedome of speech" on forums. In USA it only applies to governments -- forums such as DaniWeb are not bound by "free speech" ethics, and indeed they often do censor stuff we post.

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

Not me -- I don't know the first thing about php.

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

i was hoping someone with government knowledge and the new laws

You won't find anyone here. Not even members of congress have that kind of knowledge.

Dearden commented: not helpful +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Won't do any good -- here's why

And be awful careful about posting ads in the body of a post, a moderator might just hit you with a spammer infraction.

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

Why do people need WIC anyway? GET A JOB.

Dearden commented: rude +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Can't help you until you show us the code that stores the words. It could be as simple as strcat(word," ");, but might not too. It all depends on how you wrote the code.

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

Thanks a lot for that link -- worked perfectly :) I had always wondered why Microsoft didn't include it in VC++ 2012 when it was in 2010.

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

But i am sure anyone who will search for this matter will be getting help from this thread..

Not likely to happen because you are using a 30-year-old compiler (Turbo C), right?

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

the loop is too busy

while ( num_list >> number && count < 50)
{
    sum += number;       
    if (number % 2 == 0)
       ++even;  // increment even count
    else
       ++odd;   // increment odd count

    ++count;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It depends on the code. Start out by learning C# language then you will know how easy or difficult it will be to convert the code you have.

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

We don't do homework. Here is a hint.

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

what are you entering for the search string? If it contains spaces then cin >> won't work because it stops after the first space. you should probably use cin.getline(a,80) so that it will keep the spaces.

The loop is a little off

while( fgets(b,80,fp1) && strcmp(b,a) )
   ;

notice that feof() isn't needed in the loop because fgets() will return NULL when eof is found.

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

Which version of VC++ do you have? Generally, you start a new project but select Win32 Project instead of Win32 Console Project. You will then get a new project in which you copy your console function(s). You then have to use win32 api functions for the GUI part of the program. Here is a good tutorial.

win32 api is pretty difficult to work with, so new programmers will find it a lot easier to use C# or VB.NET instead.

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

Is it any wonder we are becoming more insensitive?

Not to mention all those violent games! I love Diablo, but in that game we just slauter monsters and grab treasure. When a monster is killed it just simply disappears with little or no blood and guts visible. Many other violent games the player kills humans, and kids enjoy doing that! Not long ago in St Louis, MO where I live near one kid killed another kid imitating what he played in a game. I know that's rare -- at least for now. What are those kids going to be like when they grow up?

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

Note sure myself, but here is one place to start

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

My computer is about 1 1/2 years old and has an 8-core AMD processor -- runs Diablo III online very very well. The more cores the motherboard has, the better (IMO). I also have 2 hard drives, one is 1TB and the other external is 3TB. You need a 64-bit operating system in order to access that much space.

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

look at line 25. See that semicolon at the end??? That is causing an infinite do-nothing loop.

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

A porn video is produced and published with consent from all participants.

Most are, but some are not. Videos of actual rape and child porn are not filmed with the concent of all participants. IMO such films should fall in the same category as murder.

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

what do you mean by "arenot working"?

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

remove the semicolon after main()

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

You tell us how you answered the questions then we will tell you if you are right or not, and if not we will tell you the correct answer.

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

Value is of type Decimal class -- it's not a numeric type. You will have to use some of the methods of the Decimal class to add and subtract two Decimal objects.

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

What error(s) are you getting? Post the exact error message(s).

Is secondTemp a textbox? If it is then you have to convert the Value to an int or float before using it in mathmatical equation.

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

Forgot the decimal point -- you need to add that condition too.

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

This is a duplicate of the same question in VB.NET. You should not create threads in multiple forums for the same question because it just confuses everyone.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
        If (e.KeyChar < "0" Or e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back Then
            e.Handled = True
        End If

Worked ok for me. It only allows numeric digits and the backspace key.

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

You got it :)

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

Which one have you not finished? The keypress event handler? I already told you what you need to do.

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

e.KeyChar contains the key that was pressed. Set e.Handled = true if KeyChar is not a numeric character or a period, that will make the system throw the character away. Hint: see IsNumeric() function.

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

I am done but there I have mistakes

LOL :) That's like saying "I am done building the car but the engine is not in it yet"

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

why would you write a class eith unused, empty functions??? Just delete the functions.

You can't override a class method from outside a class. You have to do it inside another class that is a child of the base class

class base
{
public:
   virtual void create()
   {
      cout << "Hello from base\n";
    }
 };

 class child : public base
 {
 public:
   virtual void create()
   {
      cout << "Hello from child\n";
    }
 };

Now then, if you don't want base to implement the function then make it a pure virtual function, like this:

    class base
    {
    public:
       virtual void create() = 0; // pure virtual function
     };

In this case, you can not instantiate an instance of base. class base MUST be overriden with a child class.

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

in these case case i need the 'test'(line 10).

That is not the place to declare an instance of the class. Although it compiles, it's just not normal prace to declare instances like that. And you don't normally want to declare global objects either. See main() for an example of the correct way to declare instance of a class.

Please post the entire program. I think you are missing something. This compiles without warning or errors.

#include <iostream>
class test
{
public:
    virtual void created();

    test()
    {
        void created();
    }
};


void test::created()
{
    std::cout << "hello world";
}

int main()
{
    test t;
}