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

use a timer to invoke the function then the time expires. How to do that might depend on the compiler. Usually you would create another thread which has an infinite loop. Inside the loop sleep() for the time you want then when it wakes up do the sql stuff and return to sleep.

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

line 5 is undefined behavor, the value printed for i may be difference from one compiler to the next.

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

The header file will do you no good without the libraries. If you want to code Windows program on *nix then you need a cross compiler.

Here is a related article you should read.

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

Yes, you can do it that way. And yes, it's pretty simple to do.

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

What program are you using? Microsoft Word maybe? If yes, what version?

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

You have to rewrite the entire file in order to edit one of the lines. It is not possible to just expand a line like you would in memory. If there are lots of edits then first read the entire file into memory (such as into a vector of strings), edit inmemory the strings, then when done rewrite the whole file. Otherwise if the file is too big to read into memory all at once or you only want to edit a single line the algorithm is something like this

open input file
open temp output file
start of loop:
   read a line from input file
   edit the line if necessary
   write the line to output file
   repeat loop
end of loop

close both files
delete the original file
rename temp file with the name of the original file
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Here's how to backspace

int main()
{
    int c;
    while ((c = _getch()) != '\n')
    {
        if (c == '\b')
            putchar(c);
        else
            putchar('*');
    }
    return 0;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If on Windows then call PlaySound(). I don't know the *nix equivalent, or even if there is one.

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

I doubt that is the exact assignment -- it's completely incomprehensible.

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

That's easy enough, but the problem is getting the string from the keyboard without actually displaying the plain text, display stars instead of the text.

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

There is no standard C or C++ function/class that will do what you want. So you can resort to non-standard functions, for example the functions in conio.h if your compiler supports that header file and library.

Have youy searched google for password code? like this link?

Another example here

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

MS expects everyone to ONLY use their crummy software.

That is clearly not true -- there are thousands, or even millions, of software for Windows that is not produced by M$.

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

This book is of me

Only if the book is about you.

This book is of mine?

I have never heard that one.

This book belongs to me.
This book is mine.

both are correct and interchangable.

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

Why would you want to compile a windows program on *nix? Why not just compile on Windows?

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

post the program so we can see what you did.

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

multi-statement for loops and if statements require { and } around them

for(i = 0; i < 10; i++)
{
   // blabla
}

line 23: y < y will never ever be true. Probably should be y < 10

Brittany_1 commented: I can't believe I overlooked the curly Qs. Changing line 23 helped also. Now the only problem I'm having is that when it asks for input for the test scores, it's only asking for the last person's name entered. +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You can use c++ but it's somewhat complicated. A lot easier if you use C# or VB.NET. If you want to use MySQL database then they have a c++ class for that named MySQL++. For Microsoft Access you can read any of these tutorials.

The most generic way to access SQL databases is via ODBC - tutorials here

Tutorial ebook for VB.NET. I found this ebook very helpful and explains well.

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

Is this the only one that's unplayable or are all the dvds you burn (using different files) unplayable?

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

That's what I suggested -- once you get the filename in output in order to compare it with the name of an actual file all you do is find out if the file already exists. If it exists then you know there was a match. You could iterate through all the files in the folder and compare each filename with the text in output, but that would be the hard and time consuming way to do it.

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

Nothing.

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

I have not heard anything about that, here is a related article.

When will this compiler be available?

If there is one in the works it will probably be several years down the road.

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

Most programs are written in C and C++, but C# and VB.NET are used quite a bit too. If you are asking about websites then that another entire bucket of worms.

Is there any other way to make GUI with C++?

You could use QT (link), which is a portable compiler meaning that any code you write can be compiled on both MS-Windows and *nix. Then there are a few old libraries such as wxWidgets.

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

If you already know the name of the file to check, then there are several options. One option is try to open the file for reading, if that succeeds then you know the file already exists. Another way is to call _stat() (on Windows) or stat() (on *nix) which will return 0 if the file exists.

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

Do you mean win32 api functions? They are very old and mostly obsolete now, better to use .NET functions using c++/CLR, C# and/or VB.NET.

If you still want to learn win32 api, it's too extensive a subject to be in one book. Microsoft Press has probably 10 or more books on that topic. AFAIK none of them are in ebook format. Here is a good tutorial that will get you started.

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

unsigned long long sum doesn't work because start is still an int.

That shouldn't be a problem.

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

What have you done so far? Do you know how to read a file? If not, then you need to read tutorials on ifstream (input file stream) and ofstream (output file stream).

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

I ran your program and didn't get that problem. Here is the text file xx.txt that I used.

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

line 3 is incorrect because it is indexing beyond the bounds of the array. You should initialize highest as the first item in the table

int highest = table1[rows][0];

The second problem with that function is line 4. It should be i < COLS

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

Probably depends on what compiler you are using. Here's the output from VC++ 2013

1   1
2   3
3   9
4   33
5   153
6   873
7   5913
8   46233
9   409113
10   4037913
11   43954713
12   522956313
13   2455009817
14   3733955097
15   5738265113
Press any key to continue . . .
newbiewwcode commented: Thanks for helping. I got it to work. when it does the addition, long long got demoted to an int type. +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I just tried it and had a similar problem, but I just hit the back arrow located in the top left corner and it returned to the correct screen. There are a lot of pictures (icons) it has to download so if you have a slow internet connection it might take awhile to load them all.

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

The first parameter should be identical to that of all the other functions.

array[][COLS]

Otherwise that function looks ok. To call it from main() you will have to prompt for the row number, then call the function with the desired row number. Same for column number.

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

What is your question? Nobody here is going to do your homework for you. First you will have to know what "four bar linkage by ..." is. If you don't, then that's the first place to start. I assume your instructor has already explained that in class, providing you attended classes.

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

Did you look up their descriptions on MSDN?

Win32_DiskDrive
Win32_LogicalDisk
Win32_Volume
Win32_DiskPartition

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

The second parameter to getRowTotal() and getColumnTotal() is the row or column you need to work with. The code will be very similar to the one you did for getTotal(), except you only need one loop instead of two. For example, for getRowTotal() all you need to do is loop through each of the columns at the row number from the parameter.

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

With your degree and experience you should have little problems getting a job. If you think the non-M$ job is interesting then go for it. Don't be stuck on just M$ jobs, there are lots of other fish in the ocean.

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

What did you burn? If it was pirated then that may be the reason the dvd won't play.

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

see other thread

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

Not to mention that he died 2 1/2 years ago.

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

The file probably has a '\n' after the last character. Edit the ffile to remove the last '\n'

variable c should be declared as int, not char, because fgets() returns an int.

int c;

line 17: It is not necessary to do that, just print like this:

printf("%d %c\n",c,c);

2teez commented: nice one bro! Fastest fingers... +4
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Since you didn't post any code there's not a whole lot anyone can suggest.

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

Why go with either? Do you already have a college degree or do you have prior development experience? You can get development jobs without any Microsoft certs.

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

Your two links are broken.

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

Yes, can you? Here is a related article.

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

C presumes malloc returns int and silently casts your 64 bit pointer to a 32 bit integer.

Just because the program is running on a 64-bit operating system doesn't mean malloc() will return a 64-bit pointer. It depends on the compiler, not the operating system. And if the compiler is set to produce 64-bit code it will also produce 64-bit integers.

[edit]Just to prove myself wrong, I tested by compiling a simple program. The size of int is the same for both 32 and 64 bit programs. Oh well, so much for my theory :)

int main()
{
    cout << "sizeof(int) = " << sizeof(int) << '\n';
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know of any way to do that. What kind of computers are on the network? Windows, *nix, MAC, a mixture? Once you have identified and connected to the servers finding out the names of the database is just a simple SQL statement.

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

Windows Forms is c++/CLR, which is a slightly different language than c++. c++/CLR is more like C# and VB.NET and all three are based on the .NET framework. But for quick GUI use Windows Forms. None of those options have anything to do with serial communications.

Once you have the basic GUI coded and running you can use the Serial Port class to communicate with the serial ports.

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

We are supposed to help you help yourself. What problems or compiler errors are you getting with the code you posted? Post the error message(s) and the line numbers on which they occur. Afterall, we can't see your computer monitor.

You started with probably the most difficult question, try doing the 1st one first.

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

line 102 is wrong

void heapInsert(int **A, int &size, int Item)

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

lines 1-10 are incorrect -- all line 1 does is declare an array of pointers, not an array of integers

int *A = new int[10];
    A[0] = 4;
    A[1] = 1;
    A[2] = 3;
    A[3] = 2;
    A[4] = 16;
    A[5] = 9;
    A[6] = 10;
    A[7] = 14;
    A[8] = 8;

line 15: should be printArray(A, size);

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

is it correct

Did you test it? Did it produce the correct results. If not, then the answer is no.