679 Posted Topics
Re: Show us what you've written so far, and we'll try to help you get it working. | |
Re: What's the error you get? At first glance, it looks like you may be trying to print the iterator, `it`, which isn't the same as the object it points to. If that's the case, try printing `*it` instead. | |
Re: > But for some test cases it is failing What are the failing test cases? That's important information. A few things I noticed on a quick inspection: `BUFFER_LENGTH` is defined at the top, but you appear to have missed a few places where you should be using it instead of … | |
Re: Perhaps, by coincidence, all of their certificates have expired. Does Chrome tell you why it's red-ified "https"? | |
Re: > one more thing plz is it illegal that function return true or false (what i knew is no thing can be performed after return statement ) You can return from anywhere. You're right in that when a function returns, nothing else from the function happens, but in your code … | |
Re: [SQLite2009 Pro Enterprise Manager](http://sqlite2009pro.azurewebsites.net/) says it supports encrypted databases; I don't have any personal experience with it. | |
Re: "My struct variable" means `key`, right? The compiler message (I get a warning, not an error) is showing up because you declare it and then pass it as a parameter immediately thereafter: struct KeyInfo key; GenerateKey(key, KEY_SIZE_128); But look at the declaration of `GenerateKey`: void GenerateKey(KeyInfo keyInfo, int keySize); You're … ![]() | |
Re: "The Loan Ranger" (domino mask) "Loan Wolf" ('three wolf moon' with a coin instead of the moon) "I Think We're A Loan Now" (Tiffany) "The Loan Wars" (a $ith lord) | |
Re: > i try to insert 10 record under the field year Adding ten parameters to one query (as you coded it) isn't the way to do this. You'll want to run the query ten times with different parameters. | |
Re: Keep track of which number you're looking for in an integer variable, not a string, and use [custom numeric formatting](https://msdn.microsoft.com/en-us/library/0c899ak8%28v=vs.110%29.aspx#Specifier0) to turn that into a file serach spec with the correct number of zeros. Then you can just increment the integer variable and not have to worry about rolling the … | |
Re: We won't do your work for you... have you tried doing this yourself yet? Post some code with a specific question or problem, and we'll help you with that. | |
Re: [This article](http://nerdparadise.com/forum/openmic/5712/) might be a good place to start. | |
Re: Side note - please indent code so it reads better, *e.g.*: if (fundt[kq-1][ky-1][2-1] < 450,000,000.00) ktti[ky-1][0] = 1; First thing I notice is you're indexing the array every single time you check the value... it seems pretty clear you don't expect the value to change, so it will be *much* … | |
Re: See the [PointToClient](https://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoclient(v=vs.110).aspx) method. In this case, `Main_Window` is the control. | |
Re: What happens when you enter the same string twice? | |
Re: Have you tried to do this yet? Show us what you've written so far, and we can help with specific problems you're having. | |
Re: What error do you get? Also, I think you should be getting at least a few warnings out of your compiler, if not errors. Are you? Things I notice at a first glance: You have... int initialize(PTR_VALUE value_array); ... which is equivalent to: int initialize(int* value_array); ... but you call … | |
Re: What kind of help do you need? Problems with [the algorithm](http://en.wikipedia.org/wiki/Gaussian_elimination)? Locating/using [a library](http://www.netlib.org/blas/)? | |
Re: There are a variety of ways to create content this way... which one you choose will depend on what kind of game you're creating and your personal tastes. Suggesting reading to get you started: [URL="http://en.wikipedia.org/wiki/Maze_generation_algorithm"]Maze generation[/URL], [URL="http://en.wikipedia.org/wiki/Cellular_automaton"]cellular automata[/URL]. For roguelike caves, [URL="http://roguebasin.roguelikedevelopment.org/index.php?title=Cellular_Automata_Method_for_Generating_Random_Cave-Like_Levels"]here's an example cellular automaton[/URL]. There's a also [URL="http://pcg.wikidot.com/pcg-wiki"]an … | |
Re: Have you tried to do these yet? Is there something specific you're having trouble with? | |
Re: Also, this isn't right: YEAR.May.ToString()="June" I'm sure whoever wrote it meant this: YEAR.May.ToString()=="June" | |
Re: [Something like this](http://jd.benow.ca/). | |
| |
Re: Alternative: [String.Format](https://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx) and [the "F" format specifier](https://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx#FFormatString). | |
Re: See MSDN: [Customizing Project and Item Templates](https://msdn.microsoft.com/en-us/library/ms247119(v=vs.90).aspx) | |
Re: Do you have a question, or are you just showing off the diamond? :) Have you tried writing any code yet? Please share what you've done so far and we can help with specific problems you're having. | |
Re: More explicitly, you have an array of ints at the top: int str[5]; ...but an array of pointers to int as a parameter: int mult(int x, int y, int *str[]) You probably want this instead: int mult(int x, int y, int *str) | |
Re: [Also this, direct from MathWorks](http://www.mathworks.com/help/matlab/matlab_external/call-a-matlab-function-from-visual-basic-net-client.html). | |
Re: Sure, it's possible. You'll want to use a library like [FFmpeg](http://www.ffmpeg-csharp.com/) to get at the video file details. | |
Re: > The size of the node A is 10000 but the first loop goes until 100000.So , this is wrong right? Correct. > The "dd" has size 5 ,so the second loop must go until 5, hence A[ i ].tx = 5, right? No; `tx` could be any int value, … | |
Re: We're here to help, but we won't do your work for you. Attempt your own solution, and post code here with specific questions if you're having trouble. | |
Re: Windows Forms applications can also use the [ProgressBar](https://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar%28v=vs.110%29.aspx) class. If this is a long-running task, are you performing work in a background thread? Consider the [BackgroundWorker](https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx) class if you haven't already; it works nicely with progress bars and labels. > I don't want to use a true MessageBox as I … ![]() | |
Re: > We could create libraries that could be quizzed by a compiler and return the information about what functions they contain, but that's not how it works in C. I expect that in some programming languages that is how is works. For example, C#/.NET | |
Re: It's in your post title... see [this overload of Math.Round](https://msdn.microsoft.com/en-us/library/75ks3aby(v=vs.110).aspx); I think it is what you're looking for. | |
Re: > 8 1 0 9 2 7 12 56 > This clearly works and is very elegant in its implementation. Is that the last result? Because it's clearly not sorted... Ah, I see. It's the first partition, not the end state. Sorry, disregard. > If possible, could you explain me … | |
Re: > Is there a way to have the dowork event (that invoked the progress changed event) interrupt execution until the ProgressChanged event is finished? I think the short answer is that no, there isn't. And I wouldn't recommend it, either; using a progress reporting feature to do something other than … | |
Re: We aren't going to do your homework for you. Try doing it yourself, post what you've written, and we'll be happy to point you in the right direction or answer specific questions. | |
Re: What have you written so far? Is there a specific part of the task you're having trouble with? | |
Re: > does that mean int ==> passing by reference ..and int& ==> passing by value ??? It's the other way around. `&` means reference; without means copy (value). | |
Re: Something like this: if(i.fsize != j.fsize) return i.fsize < j.fsize; else return /* compare filenames here */ There are other ways to organize the if-chain; this one makes the most sense to me because the higher-precedence comparison appears first. | |
Re: Hm. That "exists" clause seems unnecessary; have you tried [updating with a join](http://sqlandme.com/2013/06/18/sql-server-update-table-with-inner-join/) instead? Here's the general shape: UPDATE p SET p.<fields...> FROM Packet p JOIN MSGTO m ON m.MSGTO = p.MSGTO WHERE <conditions...> This is what I do with SQL Server; Access might want different syntax, but IIRC it … | |
Re: The expression problem is `*node()`; this works: //*[@ID=333]//*[@DEEP="Attribute"] Also note there's no need to check that the attribute exists separately from the value check (`[@DEEP and...`) . | |
Re: > Can you help me figure out what's wrong with it? What problem are you having? Does it not compile? ...not run? ...run but not produce the result you expect? | |
Re: Google is your friend. http://en.wikipedia.org/wiki/Information_hiding http://en.wikipedia.org/wiki/Abstraction_%28computer_science%29 http://en.wikipedia.org/wiki/Encapsulation_%28object-oriented_programming%291 | |
Re: You already have a `DateTime` object; have a look at [custom date and time format strings](http://msdn.microsoft.com/en-us/library/8kb3ddd4%28v=vs.110%29.aspx). | |
Re: I've always liked [The C Book](http://publications.gbdirect.co.uk/c_book/). | |
Re: > The program should use two distinct structure-types to store the students’ scores: the 1st type used for keeping scores of 4 quizzes while the 2nd type is used to keep the scores of 2 exams. Where are the structures that keep scores? You're missing them, and they're necessary for … | |
Re: > Is this going to change anything to my project (where it will now be found, it's "file name", etc.)? No changes to the project file name or location. Your classes, though, will automatically belong to the new namespace unless you're specifying namespaces manually (I'm guessing you're not). |
The End.