560 Posted Topics

Member Avatar for supermastereu

Besides the fact that scanf is dangerous, it looks ok. Were you having any problems with it?

Member Avatar for rana ranjit
0
323
Member Avatar for Erikson

You're in your final year of CS and your still wondering what languages you should use? I'm sure you have enough experience to figure that out for yourself. It's sounds like this has more to do with statistics then CS tbh. In any case, why not start by using your …

Member Avatar for jwenting
-1
282
Member Avatar for imlearning

You'll need to provide more information then that. A small code example reproducing the error would be ideal. I'm gonna take a shot in the dark though. Try setting that value in the classes initializer instead.

Member Avatar for Hiroshe
0
112
Member Avatar for redalert8

C++ itself does not have support for GUI programming. You'll need to choose some library. Also, I don't think you'll want to start off with an 'advanced resource', but hey. A few libraries that I see around (no particular order): 1. Win32 API (native to windows, windows only, C, included) …

Member Avatar for DeanMSands3
0
525
Member Avatar for eatyourgreens

This might not be what you're looking for, but I would suggest regex's. 1) They're fast. 2) They're very powerfull. They're the powerhouse of text manupulation, making things even like bioinformatics easy. Just take your time in learning regex's. There not too hard, just don't get scared by them. Being …

Member Avatar for Hiroshe
0
645
Member Avatar for Sanka A

> How to create calculator in c++ Start by learning C++. If you happen to run into a problem that you cannot solve after trying it for yourself, let us know. > It is not tor beginers Yes, this would be for beginners.

Member Avatar for jwenting
-1
71
Member Avatar for redalert8
Re: .DLL

Generally if you're missing dll's, that means you forgot to install the proper libraries to your system. I would suggest that you instead find the libraries you're missing and install them. (I'm not a fan of 3rd party software that does this kind of thing). Which dll's are you missing?

Member Avatar for tapananand
0
100
Member Avatar for mark103

time.sleep() stops the thread, so all other operations inside are paused. If you literally want to do both things at once, you'll need to use [multi-threading](https://docs.python.org/3/tutorial/stdlib2.html#multi-threading). You'll use one thread for updating the information to the gui, and you'll use the other thread to update the database.

Member Avatar for Hiroshe
0
315
Member Avatar for ITPT

`(struct sockaddr *)` is a cast. It's a way to tell the C compiler to treat some data as another type. consider, float a = 5.55; float b = 6.66; int c = (int)a + (int)b; In line 3, we're telling the compiler to tread a as an int and …

Member Avatar for ITPT
0
198
Member Avatar for trucker1948

It's kind o hard to follow what's going on. You said all of the files are currupted, and you want to un-currupt them? Is that's the idea? Or are they deleted, and you want to undelete them? Before more files are screwed up, make a back up. You should already …

Member Avatar for trucker1948
0
752
Member Avatar for beeho

Well, I was an advocate of [project euler](https://projecteuler.net/problems), however the answer checking mechanism was taken down. You'll need to get a list of answers and cross-reference them yourself.

Member Avatar for Hiroshe
0
367
Member Avatar for Mushy-pea
Member Avatar for Mushy-pea
1
304
Member Avatar for sribharath_1
Member Avatar for peter_budo
0
157
Member Avatar for london-G

@pritaeas Ooo, our IQC building is making some headlines. Post-quantum cryptography is also interesting. In particular, I find research into lattice-based asymmetric cryptography pretty exciting. I can't imagine to many game changing things happening in the next 5 years to be honest (cheaper prices, more cores, smaller transistors, faster/bigger memory …

Member Avatar for ssgmark
0
298
Member Avatar for Slavi

I'm not exactly sure what you mean by converting it into ascii. Ascii is just a way to assign characters values, and java already represents normal strings in ascii. If you want to get the value, you cast it (as mentioned above). I guess you can convert the value into …

Member Avatar for Slavi
0
181
Member Avatar for صمتي

Well, we can't guess what the problem is. Show us you're code, show us the error, and tell us what you think.

Member Avatar for Hiroshe
0
217
Member Avatar for nicemedo1

What have you tried? Where's your code at? Have you written pseudocode yet? - Start with that if you're lost. Have you treid to implmeent it yet? If so, then show us the code, and tell us what you don't understand?

Member Avatar for stultuske
-2
1K
Member Avatar for fatalaccidents

That depends very highly on how this 'super computer' is set up. (the environments, the distributed computing setup/manger, the storage systems currently in use (as well as how it's cashed), how their shared, how the computers are connected, as well as how the program set up to be ran is …

Member Avatar for Hiroshe
0
286
Member Avatar for toring

> Hi james,Is it possible not to use stack? What do you mean by that? The system stack or your own stack? You can convert infix to postfix using a lot of things. You should be able to write it using a BST without using your own stack if you …

Member Avatar for jwenting
-1
442
Member Avatar for perly

What do you know about perl so far? First, try to read the each line, and parse it into 3 variables. Then print them out. Next, instead of printing them out, modify the program to save it in an array (or some data structure). Print out the array. Next, modify …

Member Avatar for Hiroshe
0
248
Member Avatar for huseyın

1) You need to be more clear. Even if you're not profecient in English, you still need to try to be discriptive as possible, and provide examples of what you mean. 2) We're not a coding service. We'll only assist you programming it yourself.

Member Avatar for Hiroshe
0
63
Member Avatar for Ida Amir
Member Avatar for nill

You will have better luck asking a museum. People stopped using Turbo C++ 20 years ago. Only very outdated schools teaching students questionable programming still uses it. In a modern system, you would either 1. Compile the library to some compiler specific unit, place it somewhere in the compilers search …

Member Avatar for jwenting
0
278
Member Avatar for kimmgillie

Start by writting out your pseudocode (ie, write the program/math in plain english). Then try to implement it with what you know in class.

Member Avatar for Hiroshe
0
198
Member Avatar for [NOPE]FOREVER

Well, I do need to be fair here. The language itself isn't *terrible*, but it allows you to program in a bad way too easily, allowing you to pick up bad practices. It's implementation is old. The only people who really use it are hobysists. > 1 Is QBasic a …

Member Avatar for Hiroshe
0
215
Member Avatar for DeanMSands3

This has less to do with git, and more to do with the portablility of a project. AFAIK, there is no way to not update one file (well, there might be, but it is a bit of an unusual operation). There are a few options though: 1. Use a configure …

Member Avatar for DeanMSands3
0
412
Member Avatar for anita_2

We won't do it for you. If you have a solution, but it is not working, show us, and we'll try to correct you. If you want some conceptual help, then ask us what you're confused about.

Member Avatar for stultuske
-2
83
Member Avatar for stephen.teacher

The ^ character is for bitwise-exclusive-or (xor). This will not help you much. But the logical ^^ version might. I would like to note that "making the code shorter" isn't always a good thing. True, it's fun for code golf, or for things that actually save you development time, but …

Member Avatar for stephen.teacher
0
302
Member Avatar for BogdanCov

EDIT: Original suggestion was silly... revised: Use the same technique, but don't use recursion like that. It should be able to outperform most prime number based algorithms (plus it's simpler). Also, how are you 'folding' the method over all of the numbers?

Member Avatar for tapananand
0
234
Member Avatar for Hilfiger

> I know the topic is very vague It's not. We have not read your thesis. We cannot help you find an appication for a paper we haven't read. Writting a thesis about something you're not enthusiastic about is indeed difficult. Furthermore, you've written it without an idea of application. …

Member Avatar for Hilfiger
0
302
Member Avatar for RikP

Objective-C would probably be the best bet for iPad. Good luck learning programming ad-hoc.

Member Avatar for Hiroshe
0
169
Member Avatar for Dan_3

Just count the # of 1's. Overwrite the trailing characters in the string with that many 1's, and overwire the remining characters with that many 0's. Works in O(n) time. Basically, it's a simplified counting sort.

Member Avatar for Hiroshe
0
309
Member Avatar for mayank.mittal.3954

The first thing I'm going to note is that Order Notation can be used for other things other then algorithms. It's just a way to tell us how any function "evenually" acts as n->inf. You can use it for a final term in a taylor polynomial to give you an …

Member Avatar for Hiroshe
0
300
Member Avatar for Dani

If that's not getting you anywhere, you can still try to set up a VPN to get this to work. The nice thing about it is that you would be able to access anything on the network at Danipad while you at home/mcdonalds/etc securely (which can simplify firewall rules and …

Member Avatar for rch1231
1
872
Member Avatar for frankie198

In short: > I'm trying to make sure I fully understand the basics. Whenever raw_input is used, the program sees the inputted value as a string, so I made sure to convert them to integers. I understand this much. On the line that says "ans = num1 + num2 + …

Member Avatar for David W
0
451
Member Avatar for Avishek_1

Ok, first off: switch (i) { case 1: // If i = 1 cout << "ONE"; // Print "ONE" break; // Stop here, and leave the switch. case 2: // If i = 2 cout << "TWO"; // Print "TWO" break; // Stop here, leave the switch. // - Ommiting …

Member Avatar for jwenting
0
327
Member Avatar for bayosyntax

If you need help with the algorithm and your not really using a programming language, Computer Science in Software Development is a good place to start.

Member Avatar for mike_2000_17
0
231
Member Avatar for Tobias2189

My recomedation would to be stay away from those "pre-made" packages, and learn traditional programming first. If you try to jump into game development with "pre-made" tools and not understanding the foundations of programming, the game you make will be more "artificial", not to mention you won't be able to …

Member Avatar for Hiroshe
0
229
Member Avatar for Will_5

If you really want to write video games, then you can get there. And we can help you get there. Keep in mind, most modern video games would require a team of employed programmers to develop. You won't be writting anything too profesional without a lot of time on your …

Member Avatar for jwenting
0
554
Member Avatar for ddanbe

"Posts contributed to the community immediately become the property of DaniWeb upon submission" is a little ambiguous, because it doesn't say how the content is licensed. I.e. what are readers allowed to do with content they see on daniweb? Is it licenced as the original author has licensed it as? …

Member Avatar for Dani
0
202
Member Avatar for happygeek

Very strange. I'd probably end up either uninstalling android, or uninstalling windows. Having both is rather redundant.

Member Avatar for happygeek
0
362
Member Avatar for marylw24

Oh, the mods would have moved it for you! (or you could have PM'd one) As I said in my last post: > The only problem I see with your pseudocode is that price should be written as origprice.

Member Avatar for deceptikon
0
97
Member Avatar for Reverend Jim

Wow. All the effort and money that was put into getting a security audit, and then the project just shut down. Well, I don't like using unmaintained software, so I guess it's time to find something new. The thing that's nice about truecrypt is I can still boot linux from …

Member Avatar for Hiroshe
2
277
Member Avatar for pydfc

First off, scan that computer with something new and updated. Malwarebytes anti-malware and bitdefender free edition both work well (and can be used togeather). If that doesn't work well, then: Let's say the laptop that's causing the problem is called A. Let's say another working laptop is called B. First, …

Member Avatar for Hiroshe
0
619
Member Avatar for Builder_1

OOP is just a way to break down your problem. If your working procedurally, you'll break down your problem into smaller problems that are solved with procedures. If your working with OOP, you'll try to first break down the program into objects, and define what you "do" with the objects …

Member Avatar for JamesCherrill
0
304
Member Avatar for marylw24

This should be in the software devlopment section of the forum. The only problem I see with your pseudocode is that price should be written as origprice.

Member Avatar for silvercats
0
105
Member Avatar for cathal.kennedy.3

Let me get this straight. The screen goes black when booting up normally, but it's find in safe mode, correct? In safe mode, make sure all of the driers that were installed are removed. Next, go to the manufacturers website, and look up your laptop. Download the drivers listed there …

Member Avatar for Hiroshe
0
236
Member Avatar for Deep Modi

You'll need to be more clear. From what it sounds, you want to write a program that lists all of the users programs, finds their location, and stops them from doing anything besides click one button? - It sounds like a highly invasive program. And it needs to be done …

Member Avatar for Hiroshe
0
198
Member Avatar for anar.bataa

Are you looking to implement this in practice? If this is real, I would **strongly** suggest you use something premade like [scrypt](http://www.tarsnap.com/scrypt.html) or another strong and well tested KDF implementation. To expand on what Moschops said in the real world case: (1) Client creates a TLS (or some other secure …

Member Avatar for anar.bataa
0
549
Member Avatar for FireSBurnsmuP

I agree that eventually eventually non-volatile momory will eventually become as fast as ram, removing the need for ram all togeather (in that case, shutting down would become a case of stopping the scheduler and powering down, leaving the programs still "running". Starting up would just be powering up and …

Member Avatar for Hiroshe
0
634

The End.