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

maybe you should browse around here.

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

all you want to do is save the digits and/or characters of the barcode, not the graphics itself. When the scanner reads a barcode it sends the info to the pc. All your program has to do is look it up in the database. The barcode digits/characters itself is the key field in the database so that searches are very easy. I assume there is other data in the database as well that go along with the barcode -- for example the barcode could represent product codes and used to look up the product price/description in the database.

To create the record in the database table your program needs to display a screen in which the user enters the barcode value (or scan it with a hand scanner) and product information. That is a very simple application to write.

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

Ill suggest getting youre A+ basics first to firmiliarise yourself with terms that you will need to know.just to make life easier for yourself

Great idea :) Here are a bunch of google links that will get you started on that.

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

>>my CreateDirectory call is completed success fully
Doubtful. See my previous post.

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

He-he that will be because Java phones don't have such things ;)

Web development is still tricky for all mobile platforms as not many websites have portal for mobile access like large companies such as BBC, London Transport, Google, Yahoo etc.

Then the OP should have been more specific about the type of mobile hardware he is targeting. I didn't realize cell phones software was written in java. But then I know next to nothing about Java anyway.

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

That function requires twol parameters CreateDirectory(_T("c:\\program files\\Testing", 0)); That worked for me on Vista Home. You most likely failed to correct the error(s) and warning(s) produced by your compiler. Always treat warnings like errors in your code because most of the time they are indeed errors.

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

I've developed over 40 applications for Mobile 5.0 and Pocket PC using Visual Studio C++. I was able to accomplish a lot of things that most likely are not possible to do with Java, such as forbidding users to access the Today screen, disabling the Start button and the big X in the upper right corner of the screen. None of those programs involved the Web, so if what you're trying to do is web based than java is probably better.

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

Tech support for what? hardware ? software? If hardware, then you might investigate what local junior colleges have to offer. You will have to become intimetly familar with computer hardware if you want to get a job as a tech support representative for some manufacturer or other company. Junior college in my are offers a couple courses for computer repairs.

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

Scientists normally have Ph.D. in one of the fields of science, such as math, physics, chemstry, biology, etc.

Laws exist in all U.S. states, Canada and in South Africa which limit the use of several engineer titles, particularly the title of "Professional Engineer," and often also titles indicating a specific, regulated branch of engineering, such as "civil engineer" or "mechanical engineer." Most U.S. states prohibit unlicensed persons from calling themselves an "engineer" or indicating branches or specialities not covered by the licensing acts. The IEEE's formal position on this is as follows:

Almost all people in the IT fields in USA who call themselves "Engineers" are lyers -- they must have an IEEE license as mentioned in the above quote.

Also this quote

Scientists versus Engineers
Engineers and scientists are often confused in the minds of the general public, with the former being closer to applied science. While scientists explore nature in order to discover general principles, engineers apply established principles drawn from mathematics and science in order to develop economical solutions to technical problems.[9][10] In short, scientists study things whereas engineers build things. However, there are plenty of instances where significant accomplishments are made in both fields by the same individual. Scientists often perform engineering tasks in designing experimental equipment and building prototypes, and some engineers do first-rate scientific research. Mechanical, electrical, chemical and aerospace engineers are often at the forefront of scientific investigation of new phenomena and materials. Peter Debye received …

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

Please see other thread.

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

As a former tech lady you obviously know it is illegal for anyone to give you a key. The only way to get it is either 1) from HP, who refuses your request, or 2) buy another copy of XP.

And thanks for the info about the Trojan.

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

still use strtol()

int main()
{
    char hex[]= "ABCD";
    char* end = 0;
    unsigned int num = strtol(hex,&end,16);
    cout << num << "\n";
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb. There several of us old farts around.

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

strtol()

If you want to use pure c++ then use stringstream c++ class.

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

For those of you who have been working for some time I'd like to find out what practical uses you have seen for recursion. I'm not talking about college courses or what you see in tutorials, but what programmers use it for in real-world programs such as system, applications, etc.

There are only three reasons that I have ever used it in my c or c++ programs

  • To navigate through disk directory trees
  • Parse binary trees
  • Some sorting algorithms

Can you add to the above list?

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

read all about binary search algorithms from these google links.

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

Impossible? I would call the below a 2d array.

int main()
{
   const int rows = 25;
    const int columns = 255;
    char ** array = new char*[rows];
    for(int i = 0; i < rows; i++)
       array[i] = new char[columns];
   foo(array);
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Sorry, but char* ay[][255] declares 2D array of pointers to char.
You are right -- I should not have included the star.

We don't know how the OP declared the 2d array, so it could be either method.

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

Your program doesn't work because of several problems:
1) line 25: The array is too small. Your file contains 15 student records, but the array can only hold 10. Increase the size of the array to at least 15 (or the maximum in the data file). One way to resolve the problem is to use c++ vector class and you don't have to know how many student records are in the file.

2) line 104 is wrong. see previous posts

3) line 75: the value of i is wrong at that point because you previously used that variable on line 64. Declare a different variable that contains the number of records that were read in the data file and don't use it for anything else (except to pass to other functions).


4) line 95: The sort function has hard-coded the record count and ignores the integer that was pass to it. You need to correct that problem.

After correcting the above errors I get this outout:

-Student Name   ID    SUB1  SUB2  SUB3  SUB4  SUB5  SUB6  SUB7  SUB8 AVERAGE-
----------------------------------------------------------------------------

Lowery, frank 1234575 78.0 55.8 60.3 39.7 53.0 64.5 57.9 49.1  57.3
Smith, Joy 1234545 57.4 88.4 54.0 97.1 49.5 78.4 91.3 39.4  69.4
Ronald, Mike 1234567 54.8 58.4 94.6 44.5 84.0 67.7 84.6 78.9  70.9
Francis, Todd 6789087 74.8 73.0 98.0 57.6 88.0 46.8 73.6 58.3  71.3
Kurosawa, Odd 5678355 65.7 78.9 45.9 65.4 33.9 74.9 47.9 78.0  61.3
Crane, Don 2345676 57.6 75.4 87.4 76.4 44.4 75.6 65.7 67.0  68.7
William, Jay 6789754 67.9 45.7 45.7 78.7 75.4 45.7 49.6 85.7  61.8
Lorenzo, Franny 1345789 84.7 74.8 44.9 75.3 84.3 23.0 87.3 43.8  64.8
Lakeshore, Sarah 6789096 89.6 74.9 78.3 78.3 37.5 82.4 79.6 98.0  77.3
Lenny, Joker 1234566 44.3 84.9 43.7 39.0 43.9 74.6 74.0 74.2  59.8
Fifa, Louis 1234545 67.8 83.7 73.0 78.3 69.7 74.5 66.9 73.9  73.5
Fooly, Cooly 7544588 78.9 33.8 47.7 65.9 23.8 78.8 48.4 45.8  52.9

SUBJECT AVERAGES ARE: 68.5  69.0  64.5  66.3  57.3  65.6  68.9  66.0


AVERAGE SCORE USING STUDENT AVERAGES:65.8
AVERAGE SCORE USING SUBJECT AVERAGES:65.8

Lowery,
Smith,
Ronald,
Francis,
Kurosawa,
Crane,
William,
Lorenzo,
Lakeshore,
Lenny,
Fifa,
Fooly,
Press any key to continue . . .
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I also need that text file so that I can run your program and see what's happening. If its very long then just attach it to your post instead of copy/past into the post itself.

line 104: wrong. I already told you how to use strcmp() to compare character arrays.

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

A 2d character array? void foo(char* ay[][255] ) or like this: void foo(char **ay)

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

Please identify the lines in your program that are giving you the problem(s).

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

That clip was sooooo boring, I had to stop it after a few seconds. The woman narriating that has a more boring voice than whats-his-name on tv who looks a lot like Henry Kissenger.

I don't cut the grass any more -- I pay someone else to do it :)

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

The teenagers of generation Y are not that much different then the teenagers of my generation :) That's just part of growing up and passing through puberty. You are just feeling the affects of your new bodies, and you will grow out of it just like every other adult has done for the past 10 million years. Wait 10 years and you will laugh at the silly things you are doing now. Just don't do something really stupid like driving while drunk and get yourself killed.

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

>>C++ STL.
That tells us nothing. There are quite a few container classes in that. What is MStack? and the other things in your post.

>>Without a print screen I can't show you the error
Just hit the PrintScreen key on your keyboard, copy to MS-Paint, in MS-Paint save to file, then attach that file to your post. To do that, hit the "Go Advanced" button, scroll down to "Manage Attachments".

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

line 95: see my previous post (#2) which you failed to implement.

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

OUCH! YOU HEART MY ERARS WITH YOUR SHOUTING!!!

1) post error message(s)

2) post enough code to illustrate the problem. We have no clue what STL contains you are using.

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

call strcmp() if( strcmp(gradclass[current].lastname, gradclass[smallest].lastname) < 0)

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

line 9: remove the stars. Also, I assume lastname is std::string ?? If simple character array then that comparison won't work.

line 12: should sort the entire structure, not just one of its members Swap(&gradclass[firstUnsorted], &gradclass[smallest]);

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

depends on how someone reserves a seat. To cancel, just undo the reserve. If you are using an array, just reset the array element back to its initial value, most likely 0.

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

line 6 is declared wrong. Try this: char test_ar[] = "cdbae";

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

this might be one way to resolve the different parameters problem. Pass the parameters you want as the seccond parameter and use stdargs.h to retrieve them. If you don't want to do that, then you might get away with using templates, but someone else will have to answer that question.

#include <iostream>
#include <vector>
#include <string>
#include <stdarg.h>
using namespace std;

void A(char* fmt, ...)
{

}

void B(char* fmt, ...)
{

}

int main()
{
    std::vector<void (*)(char* fmt, ...)> fns;
    fns.push_back(A);
    fns.push_back(B);
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

My guess is that there are lots of ways to make it fail. Just pass the wrong parameters.

http://middleware.its.state.nc.us/middleware/Documentation/en_US/htm/csqzal06/csqzal0629.htm

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

What part(s) of the program don't you know how to write? Sorry, but waiting until the very last minute to get help is not good for your grades.

You need to post the code you have written and ask specific questions. We won't write the program for you.

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

One way to do it is to write your own malloc() and free() functions which keep track of the allocated pointers in a linked list. Then just before program exit run through the linked list to find the pointers that have not been freed.

struct node
{
    unsigned int line_number;
    char* file;
    void* ptr;
    struct node* next;
};

void* mymalloc(unsigned int size, unsigned ine line_number, const char*filename)
{
    void* ptr = malloc(size);
     // now add the pointer to the linked list, not shown 

    return ptr;
}

void myfree(void* ptr)
{
    // search list for ptr and when (and if) found delete the node
    // code is not shown here

    free(ptr);
}

int main()
{
     // example use.  Note:  I don't know if all compilers support __LINE__ and
     // __FILE__ macros or not.  __LINE__ is a preprocessor directive that 
     // returns the current line number of the file being compiled, and
     // __FILE__ is a preprocessor directive that returns the file name
     //  of the current file being compiled.
     int* array = mymalloc( sizeof(int * 10), __LINE__, __FILE__);

}
jephthah commented: solid advice. this is the best way to handle memory allocation/deallocation +4
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The constructors are not PUBLIC.

What compiler are you using? Did it produce any warnings or errors that you failed to correct? You should treat all warnings as if they are errors because most of the time warnings are indeed errors.

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

Found this humerous

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

Played again, this time I purposely missed every one. Got score of 120!

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

Vista security rendered 'uselsess'
By Dennis Fisher

Two security researchers have developed a new technique that essentially bypasses all of the memory protection safeguards in the Windows Vista operating system, an advance that many in the security community say will have far-reaching implications not only for Microsoft, but also on how the entire technology industry thinks about attacks.

In a presentation at the Black Hat briefings, Mark Dowd of IBM Internet Security Systems (ISS) and Alexander Sotirov, of VMware Inc. will discuss the new methods they've found to get around Vista protections such as Address Space Layout Randomization(ASLR), Data Execution Prevention (DEP) and others by using Java, ActiveX controls and .NET objects to load arbitrary content into Web browsers.

By taking advantage of the way that browsers, specifically Internet Explorer, handle active scripting and .NET objects, the pair have been able to load essentially whatever content they want into a location of their choice on a user's machine.

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

>>so what will be the alternate software for
>>Visual basic 2005

Visual Studio 2008

>>etc etc
I never heard of that one :)

Alex Edwards commented: =P +3
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

58 -- that is addicting :)

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

Ehh ?? Those aren't errors.

Oops! you are right -- I didn't read it close enough.

William Hemsworth commented: Hehe, you make me laugh :) +3
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you don't need the case on line 26: std::cout << *first << " " << std::flush; Your class doesn't have an overloaded << operator so I don't see how the above will compile.

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

I know ^.^ I changed it as fast as I could, way before you posted.

where did no change it? Looks the same to me.

include <iostream>

namespace A {
   int var = 10; <<< error here
};

namespace B {
   int var = 20; <<< error here
};

using namespace A; <<< error here
using namespace B; <<< error here
<snip>
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

post the data file -- zip it up and attach it.

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

williamhemswort:
A and B are not namespaces. They are c++ classes. You can not give a class the same name as a namespace. And lines 4 and 8 of you code is wrong.

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

>>nd unfortunately it doesn't seem as if clear or resize properly deletes or destructs the pointers

>>I'm sorry... where did I use erase? O_O
clear() is the same as erase(begin, end)

>>I got a lot of errors from attempting to cast the object referenced by the iterator to a ManagedClass
No casting necessary. I did not use a cast in the code I posted.

Alex Edwards commented: Thanks a million =) +3
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>I'm required to use the GetString function for this program. (Professor wants it this way).
Ok, so what does that function do ?

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

EDIT: I need to learn how to type or how to think faser!

All great minds run in the same channel :)