rproffitt 2,701 https://5calls.org Moderator

Still looks incomplete code wise. I tossed the above into http://ideone.com/ and well, what's here looks incomplete so I can't guess what you are seeing.

Back to you. Narrow down your question to what lines you think are trouble. Here I can't guess what else is missing in your code or what lines to read. I won't read more than a page of code since you can narrow it down.

rproffitt 2,701 https://5calls.org Moderator

This code does not compile with Visual Studio or gcc. So I would be guessing what's missing.

fcfs? In queuing I would guess that's First Come First Served. In such a system there would be no sorting, just a queue that we have a method to add new requests.

rproffitt 2,701 https://5calls.org Moderator

Wow, one of my old favorite topics. This reminds of the queuing theory class days. But before I comment I think this is pretty well discussed:
https://www.google.com/search?q=simulate+the+Shortest+Job+First+algorithm+in+CPU+scheduling&ie=utf-8&oe=utf-8

Videos and more are out there.

Now if you want to discuss your code, you omitted what issue you have with it. Very few folk will deflea code today. If you have errors, share them since to find it, you are asking folk to guess what compiler, IDE and OS you are on and more.

With that out of the way, I may be outdated but my results for maximum throughput was longest job first. The example was 1 or more machines, then start the longest job and then prepare the rest of the jobs sorted by how long they take. In the real world this worked great plus one modifcation. We would start the work just like queuing theory said then go back and see if any job had priority.

rproffitt 2,701 https://5calls.org Moderator

Did you read prior discussions on that topic? http://www.cplusplus.com/forum/beginner/4488/ for example.
And more at https://www.google.com/search?q=c%2B%2B+and+puzzle+about+parameters+and+argument+definitions&ie=utf-8&oe=utf-8

One of the best lessons you can learn is to research like this.

rproffitt 2,701 https://5calls.org Moderator

Some folk don't want to stay on topic. This is technical enough as it is but if you change topics, it becomes a royal mess. You may disagree but from what I know about forums, one topic per discussion. Keep it clean and tidy.

rproffitt 2,701 https://5calls.org Moderator

How is reading lines in an array on topic? I see you've made a lot of posts all about metrics and writing your own code but how did you get this far without reading a file? Something's fishy here.

rproffitt 2,701 https://5calls.org Moderator

I could not find the measurement you want to measure. Try using a standard like we read from http://www.virtualmachinery.com/jhawkmetricsclass.htm

Or supply a link to the metric you want to measure, or your assignment from class. Your top post didn't make any sense either.

rproffitt 2,701 https://5calls.org Moderator

As to system pause, that's a subject of many prior discussions. Example: http://stackoverflow.com/questions/1107705/systempause-why-is-it-wrong

The prof may be running folk through the mill, stamping out future programmers. The better ones learn to avoid this.

As why it doesn't prompt the user, it's your code so redesign, rewrite it so it does.

rproffitt 2,701 https://5calls.org Moderator

So did you single step your code in your dev system? system("pause"); may not be such a good idea for portability.

rproffitt 2,701 https://5calls.org Moderator

Yes.

But given this much detail about your site, how to do this is wide open. There are now so many scripts to swap images today that you suffer from an abundance rather than a famine.

rproffitt 2,701 https://5calls.org Moderator

Back to Trend and ask if they have a plugin for your website. You left out model details, what web server you use and more. But you need to just ask Trend if they have it ready to be put up on a site.

rproffitt 2,701 https://5calls.org Moderator

Something else to try. Beware it will take some CPU load but google up fxsound.com. I don't need to but if you can't get an amp, and need just a little more, try it.

Stefce commented: HUH this is powerful ! :D +2
rproffitt 2,701 https://5calls.org Moderator

This looks incorrect from the beginning. Pointers point to memory which is memory in your app and machine. Passing pointers to another PC would be almost meaningless 99% of the time.

rproffitt 2,701 https://5calls.org Moderator

No. All the posts I read about this are spams and shills. Your best utility is the backup copy of the PST. This can be automated today very easily but if you see a reply with any pstrepair.com or similar, it's spam that will be a ripoff.

rproffitt 2,701 https://5calls.org Moderator

So yes, Mcafee can block your internet. https://www.google.com/#q=mcafee+blocks+internet+access

This has lead me to avoid most AV makes today. I've fallen back to Windows Defender and my own good behavior. No visits to dodgy sites and for browser protection, Web Of Trust and Adblock+. It's been over 2 years and scans have found nothing but a few cookies to dust off.

rproffitt 2,701 https://5calls.org Moderator

I see tutorials with https://www.google.com/search?q=utorials+based+on+parrallell+arrays&ie=utf-8&oe=utf-8#q=tutorials+based+on+parallel+arrays+c%2B%2B

Anyhow your post is too close to "Will you fix my code?"

Avoid that and tell what line of code is causing trouble for you.

rproffitt 2,701 https://5calls.org Moderator

Sorry but I didn't want you to give up that easy.

I hope you can tell more. For example, if you told us you had Norton or Kaspersky we know those will block your internet connection when they expire. To me that's rather thuggish behavior and has caused an untolk amount of trips to repair counters.

Also, just last week I had another one where they had the WiFi in the off position. I know this is asking a lot but like a car with its parking brake on, it couldn't get on the internet.

rproffitt 2,701 https://5calls.org Moderator

This doesn't look like your code. It looks to be from 7 years ago at https://www.daniweb.com/programming/software-development/threads/186020/help-using-dynamic-memory-allocation-and-pointers

Rather than passing this off as your work, why not share that up front?

Then tell the forum what is eluding you. Your post sounds as if you want others to do your work for you.

rproffitt 2,701 https://5calls.org Moderator

You'll have to tell more to continue. "Modems" in laptops have been dial up modems and nothing to do with broadband connections.

In fact, so few folk have a modem in their laptops that I found it interesting you lead with that. But with this reply it's clear you may have been mislead by the error messages so, start over. For broadband the modem is not in your laptop. We use WiFi or Ethernet to connect to the broadband internet connection. I know folk are still learning about this stuff but you need to keep learning or head to a repair counter.

rproffitt 2,701 https://5calls.org Moderator

I have a question. Why does this look exactly like that post from 7 years ago at https://www.daniweb.com/programming/software-development/threads/186020/help-using-dynamic-memory-allocation-and-pointers

Are you telling me you are still working this code after this many years?

Or is it something you found and need to fix it and claim it is yours? Don't do that. If it's an assignment a teacher or TA would find you lifted the code off the web in one google.

Not to give too much away but why not fix that broken function?

rproffitt 2,701 https://5calls.org Moderator

I didn't see an app there. Just some screen shot. OK, off to google for research for code and maybe a youtube.
https://www.google.com/search?q=cpanel%2Fmysql+workbench+to+visual+studio&ie=utf-8&oe=utf-8

Yup, there's priors and even a YouTube for that.

rproffitt 2,701 https://5calls.org Moderator

C# is usually that one in Visual Studio. I use a setup system like you read from https://www.google.com/#q=c%23+installer+for+visual+studio+2010

Unless my app is a CTR (click to run.)

rproffitt 2,701 https://5calls.org Moderator

You can't. Since your app needs those dlls, why would you want an installer that only did the .exe?

Something doesn't make sense here.

rproffitt 2,701 https://5calls.org Moderator

PS. I can't tell what step is eluding you but if it's the random word from a text file check priors like this:
https://www.google.com/#q=vb+net+read+random+word+from+text+file

rproffitt 2,701 https://5calls.org Moderator

My iPad is away at the moment so I can't test this. But there is something that I want to share here. I'm running into a lot of web makers that have such issues and I'm using caniuse.com a lot more often now.

It's a lot of work on some pages but if I have a suspect line I can see if I can use that on the target browser. Sometimes this site offers a workaround.

PS. Added with edit. W3C check follows. May want to see if you can reduce those errors.
https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.50allstars.com%2F2016%2F05%2Fgrid-menu.html%3Fm%3D1

rproffitt 2,701 https://5calls.org Moderator

I can't know that. Have you heard the story of 3 blind men and an elephant. Same thing here.

-> Again. If you need some other form to hide when you show your new form, use the .hide before you show your new form.

rproffitt 2,701 https://5calls.org Moderator

That's not the section of code that shows a form or other screen object. I see some undefined MyDo.Startwork() and another but I don't know what that is.

However and again, if you need to hide a form, use the objects .hide method. Since I don't see the code maybe after line 25
Mydo.Hide

rproffitt 2,701 https://5calls.org Moderator

Two things.

  1. You didn't show your work. I read to the first code line and there's a color command. You should know python well enough to handle that. If not, you may not be ready to tackle the next 500 lines.

  2. http://stackoverflow.com/questions/18762621/can-we-use-c-code-in-python looks interesting. Maybe you can wrap this C app up and call it from your python.

rproffitt 2,701 https://5calls.org Moderator

Just one. VB6 had its day. Now that VB.net has a free to use version, move up to a version that everyone has access to.

hefaz commented: Thanks, Ok. +2
rproffitt 2,701 https://5calls.org Moderator

OK, you've never used a C++ fiddle. As a student you can now learn a few of the most powerful tools I've used over the years.

  1. Google. Google C++ fiddle and then
  2. Go to the fiddle and put in the code and try it out to see if it's right.

It's not complicated at all. You only need to do your search and work.

rproffitt 2,701 https://5calls.org Moderator

Yup, other lines give me errors in my head too. Same as JC above noted. I think you should re-read the assignment and go ahed with a working app. Again, use some C++ fiddle. If you never used a fiddle, just say so.

rproffitt 2,701 https://5calls.org Moderator

Your code is so incomplete that no one can try it. Example, line 56 and on do nothing. Why have those lines?

Tip? Go put it into some C++ online fiddle and see what happens. Then you can share the fiddle here.

rproffitt 2,701 https://5calls.org Moderator

I'll have a better understanding looking at the code and the issue. As to your suppose, I offered an idea and the method to hide the other form. But I can't write the code for you as there is no code to read and suggest "put this there."

rproffitt 2,701 https://5calls.org Moderator

"But when i click on 2nd item how to hide the 1st form and show 2nd form and vice-versa."

That's not what you asked up top. Next time, ask what you really want to ask.

Just an idea as we have no code to look at here.

On either handler, add some formname.hide to hide the other form.

rproffitt 2,701 https://5calls.org Moderator

Without code and only "does not work" you may be stuck here for some time.

rproffitt 2,701 https://5calls.org Moderator

Need to see the code.

rproffitt 2,701 https://5calls.org Moderator

That's no text based RPG. I see graphics and more.

http://www.web-adventures.org/cgi-bin/webfrotz?s=Adventure is an example of a text RPG.

rproffitt 2,701 https://5calls.org Moderator

While I think everyone should have and read "Little Book of Semaphores" for Windows you need to do another search like https://duckduckgo.com/?q=semaphores+pdf+windows

rproffitt 2,701 https://5calls.org Moderator

Duplicate?

Anyhow when I get a failure like that I single step my code and examine my SQL command strings. I can also hit the sql command line and test out the commands if I feel the string is valid.

rproffitt 2,701 https://5calls.org Moderator

Since I don't know what your desired output is, try a fiddle next.

Example at http://jsfiddle.net/AqDCA/852/

rproffitt 2,701 https://5calls.org Moderator

Avoid goto. Forget it exists. Try loops that don't exit till the input is right.

mabdullah4 commented: Same result when I use any Loop.Anyway solved problem by using cin.ignore(); +0
rproffitt 2,701 https://5calls.org Moderator

There may be a clue in a prior post. http://www.orafaq.com/forum/t/62336/

Were there other Oracle products installed?

rproffitt 2,701 https://5calls.org Moderator

I see no code. You may have to share your ideas on where in your code it's failing as well as the code. Your post is sadly one of the "it doesn't work" variety but you can add more detail. Think about what you would need to know and see to solve an issue like this.

rproffitt 2,701 https://5calls.org Moderator

Millions of requests? That means you are not running on a single server but on a Cloud OS with well, a lot more gear. No PC I know will do millions of requests. Look at Facebook's server farm to see a million request server farm.

rproffitt 2,701 https://5calls.org Moderator

Line 7 looks incorrect and a duplicate of your other declaration in line 5.

rproffitt 2,701 https://5calls.org Moderator

Did you try disabling all add ins?
https://www.google.com/#q=manage+excel+add+ins

rproffitt 2,701 https://5calls.org Moderator

You lost me on those goto's. But your system looks like an echo server. Let's look at priors on good echo servers. Link follows.
https://www.google.com/#q=echo+server+c

I see examples that allow multiple inbound connections without the need to thread like you did. And without a goto either.

rproffitt 2,701 https://5calls.org Moderator

Again. Change line 3. Make it 2 lines where you put your string together so you can see what's in your command.

Now you can see what's going on.

rproffitt 2,701 https://5calls.org Moderator

Example unclear. Try it again, this time take the content to a string so you can debug it.

Also, you should be concerned about Johnny Drop Tables. Examples? https://www.google.com/#q=sanitize+sql+input+vb.net

rproffitt 2,701 https://5calls.org Moderator

Did you test if your email server works like this? https://www.google.com/#q=how+to+test+smtp+email+with+telnet for example is our first test.

Also, line 4 is likely wrong. "As described in RFC 2606 and RFC 6761, a number of domains such as example.com and example.org are maintained for documentation purposes." and a good email server should drop such from header possibly as spam.