|
Go ahead. You have our approval to make an attempt at this. What we won't do is do the work for you.
Why? Compliments of JSOP[^]
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Member 9438848 wrote: code for building 3 consecutive triangles using only for loop.
Here[^]
|
|
|
|
|
Right, you have the basics of your requirements there. They don't make much sense as they stand, so you're going to have to flesh them out a fair bit. If I were you, I'd attempt to refine the requirements out. Once you've done that, you know that you must use a for loop - but the constraint there is wrong, you have to use something other than a for loop other wise your program would just consider of a for loop with nothing in it - so make sure that things get clarified).
|
|
|
|
|
Posting homework questions will get you downvoted and chased off the site ... and with good reason.
|
|
|
|
|
Do your own homework
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
"consecutive" ? Not Concentric? Or Contiguous? Or Congruent?
|
|
|
|
|
I suspect he's right. If it's the problem I think it is, I saw this one when I was at Uni in the 80s. The aim is to give a number which represents how big each triangle is, and then draw it out. It'll end up something like this
5 5 5
55 55 55
555 555 555
5555 5555 5555
55555 55555 55555 And as a not to the OP - you can solve this with the aid of one for loop.
|
|
|
|
|
Sure it's not:
5
55
55
555
5555
55555
5
55
55
555
5555
55555
5
55
55
555
5555
55555
?
Didn't we have a Friday Programming Quiz on this?
Maybe that was the "draw a square" assignment.
modified 18-Sep-12 16:18pm.
|
|
|
|
|
That was't the one I solved - it was the shape I posted. Again though, the OP needs to find the details out.
PIEBALDconsult wrote: Didn't we have a Friday Programming Quiz on this?
Dunno. I can't remember seeing it.
|
|
|
|
|
spacing pattern is same, but my problem how to think the logic for the spacing like building a pyramid placed in four directions with some gap.1 pyramid each direction!!
|
|
|
|
|
Try drawing it out on a piece of graph paper and then seeing if you could use a bit of maths to solve each line. The big hint is that the gap in each line is predictable.
|
|
|
|
|
nope..
not helping a beginner!!
|
|
|
|
|
I'm sorry, but I am not going to do your homework for you. It does you no good if I do it because it doesn't teach you how to solve a problem, it merely shows that somebody with over 30 years experience knows how to solve it. That's not going to help you get a job, is it?
|
|
|
|
|
What size font would you like this code to be written in?
/ravi
|
|
|
|
|
Hello
How I can snap my window, for all windows ?
I need push button, and my Form must snap to task bar, after other windows must snap to my window. Only when all windows is maximized. I need auto-snap to edges. For others applications..
Sorry for my english, I still searching in google, but no result.
My english is low level, forgive me, when I write with errors.
|
|
|
|
|
That's not easy. Of course you could read every window position via COM but I think before I start to explain, you should try to snap you Window to the screen edges.
If I would explain, I could write the complete code and that would take some time for me. This ain't a question to be answered here with some tips.
Take a look at the Windows COM-Model (system32.dll and so on) there is everything you need, but you have it to workout on your own, if there are no examples in google.
You can't do it directly with C#, I think.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
I think you will need to enumerate all open windows and use SetWindowsPos. This is a job for P/Invoke.
|
|
|
|
|
Hi, I was found solution. Looks good. What you think about this ? This licence allow use in commercial apps ? I think - yes, but I'm not sure 100%.
Align window:
C# does Shell, Part 3[^]
My english is low level, forgive me, when I write with errors.
|
|
|
|
|
I would say yes. These are the parts that cover this IMO:
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
So, in your licence, you must state that at least some parts are subject to Microsoft Public License (MS-PL), even if you don't want that licence yourself. If it's commercial, get the company lawyers to check it!
|
|
|
|
|
I need to integrate security access cord to cafeteria access controls. If anybody’s can help me. if you give sample code it’ll help to me
|
|
|
|
|
Nope. No idea what you're asking for there. It sounds like "Urgntz. Snd cdz", but you couldn't be that daft could you?
|
|
|
|
|
Pete O'Hanlon wrote: but you couldn't be that daft could you? See OP's previous questions for the answer.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard MacCutchan wrote: See OP's previous questions for the answer
Not necessary, the screen name says it all.
|
|
|
|
|
As far as I understand it (and from your question that mightn't be very far) you want us to provide you with "sample*" [probably] low-level integration code between two [probably] proprietary systems. You aren't going to get very far in this task.
* normally this means code that can be copied and pasted and pass of one's own
|
|
|
|
|
You do realise that we know you work for Merrill Lynch don't you, and that we have your email address. How do you think your boss would feel if he read this message and realised you didn't know how to do your job?
|
|
|
|