4,439 Posted Topics

Member Avatar for Mir Mahfuz

Hi Mir Mahfuz welcome to Daniweb! :) What the line does is mapping every character of your string to an index in the your count array. Say string[c] = 'b' so ('b' - 'a') will be 1 and count[1] will be incremented. Say string[c] = 'a' so ('a' - 'a') …

Member Avatar for David W
0
182
Member Avatar for ddanbe

What would happen to the world if for some relatively long (say 3 months) period, we would be deprived of internet? For one thing, I would not be able to type this on DaniWeb! No more internet games. The most nearby pizza restaurant? Your cell phone won't tell you. etc. …

Member Avatar for webecedarian
0
391
Member Avatar for vegaseat

@diafol: Try Belgium for a change. Here in my region, no rain whatsoever for the moment. If it continues that way this is going to look like California... Normaly the summers here are rather rainy.

Member Avatar for ddanbe
3
570
Member Avatar for missc
Member Avatar for ian rey
0
6K
Member Avatar for Monster99d

You could somehow "walk" through your 2 strings using the MID function. If both are numbers concat to a new string to be placed in C2. [Here is some info](http://www.exceltrick.com/formulas_macros/vba-substring-function/) about the MID and related functions.

Member Avatar for ddanbe
0
224
Member Avatar for zelrick

VB.Net can handle this just as C# can. Your explanation is a bit unclear. On line 10 by "6",do you mean "67"? The [SubString](http://www.dotnetperls.com/substring-vbnet) method of the string class can help you out here.

Member Avatar for zelrick
0
713
Member Avatar for Iin_1

Hi Iin, welcome to daniweb. :) First of all, I'm not an expert. An expert is someone who has made all the possible mistakes. I'm not even halfway... In your code, you don't seem to loop through your selected cells. Here is an [example](https://msdn.microsoft.com/en-us/library/x8x9zk5a%28v=vs.85%29.aspx) on how to do that. Hope …

Member Avatar for ddanbe
0
2K
Member Avatar for highschool
Member Avatar for Mr.M
0
207
Member Avatar for John_91
Member Avatar for John_91
0
330
Member Avatar for ddanbe

I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = …

Member Avatar for ipswitch
0
441
Member Avatar for karthick_2
Member Avatar for 111100/11000
-6
78
Member Avatar for vegaseat

Nice. But it feels like:"Been there, done that..". Change some syntax and some extras, '*et voilà*' a new language is born.

Member Avatar for Lardmeister
2
509
Member Avatar for zelrick
Member Avatar for zelrick
Member Avatar for zelrick
0
5K
Member Avatar for jakson321

We don't do homework. Show us first what you have even if it's faulty, that doesn't matter. Then we will help.

Member Avatar for David W
0
1K
Member Avatar for Suzie999

It's a possibility that VS2015 has something to do with it. Did you try a reinstall of [SQLite](https://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki)?

Member Avatar for Suzie999
0
272
Member Avatar for Daniel_45
Member Avatar for James778

Try this macro on a new sheet and see what happens: Dim i As Integer For i = 1 To 10 Cells(i, 1).Value = i * 5 Next i

Member Avatar for ddanbe
0
43
Member Avatar for vegaseat

Looks a bit like the `struct` in C#. Do you happen to know if the Swift struct is a value type? Or is it also a reference type like a class?

Member Avatar for vegaseat
1
290
Member Avatar for rakib.tanbir

On agreement, I will provide you my bank account number. After deposit of 100000$, I will immediatley give you what you asked for. On the other end, you could show some effort(which you should!), and show us your code and what precisely you're having trouble with. We will help you …

Member Avatar for David W
-1
265
Member Avatar for PinoyDev

To loop through individual excel cells, use the `Cells` property. See [here](https://msdn.microsoft.com/en-us/library/office/aa221540%28v=office.11%29.aspx) how to adress excel cells.

Member Avatar for JamesCherrill
0
289
Member Avatar for Satyam_1
Member Avatar for Satyam_1
0
275
Member Avatar for asif49

Distilling fruit juice? I guess the distilate would taste like a watery sugarless mess...

Member Avatar for weitau
0
7K
Member Avatar for vegaseat

To add to the comment of Gribouillis: to convert from degrees to radians use `math.pi/180` For an angle of 90° that would give Math.pi/2.

Member Avatar for vegaseat
20
18K
Member Avatar for Brandon500

As a variation use the formula of Binet. This [link](https://www.daniweb.com/software-development/csharp/code/455852/fibonacci-in-c) is in C#, but you'll find your way to it.

Member Avatar for woooee
0
236
Member Avatar for shelfer
Member Avatar for Satyam_1
Member Avatar for Khan2014

Your `GetPeople` method returns an array of `Person` objects. If you want to get, say a persons last name of the second person in the array, you use `Person[1].LastName`.

Member Avatar for ddanbe
0
157
Member Avatar for Xia_1

If you don't specify what the problem is, how should we know? We have no time to wade through your code to find the problem, so please tell us what the problem is.

Member Avatar for ddanbe
0
128
Member Avatar for ddanbe

Hi all, I need to obtain the fractional part of a double. AFAIK C# and .NET has no such function. Have a few options here:(x is a double) `x - (int)x` `x - Math.Truncate(x)` Convert to a string and extract the fraction... Perhaps someone knows other options? Which should I …

Member Avatar for JOSheaIV
0
661
Member Avatar for vegaseat

When Steve Jobs left Apple (for a while) in 1985, he started a new compagny NeXT. They developed a new OS called [NeXTStep](https://en.wikipedia.org/wiki/NeXTSTEP). Hence NS. This OS was mostly written in Objective C.

Member Avatar for ddanbe
1
354
Member Avatar for Mike Askew
Member Avatar for DaveAmour

Bach and inparticular the 6 cello suites. This must be music from another world. I like other music also, in particular if it's good music.

Member Avatar for Aeonix
0
685
Member Avatar for ddanbe

Hi all. Would it be a good idea to have a polar coordinate class and derive from it spherical and cylindrical coordinate classes? Or should I keep 3 separate classes?

Member Avatar for ddanbe
0
156
Member Avatar for vegaseat

I guess it must be there. I'm not seem to find it on the net. Has Swift some library to use UI elements like comboboxes, datagrids etc.?

Member Avatar for vegaseat
1
395
Member Avatar for hadisur_rahman
Member Avatar for ogsirus

Could you elaborate on what exactly you mean by a "*pair*" and a "*pair that links*"?

Member Avatar for ogsirus
0
262
Member Avatar for Elizabeth_6

Hi, We cannot and will not help you with your assignment if you don't show us the efforts you already have made. Read the rules of this site below this page.

Member Avatar for vegaseat
0
189
Member Avatar for preethi_1
Member Avatar for JOSheaIV
0
274
Member Avatar for ddanbe

Sometimes, when I have really, really nothing else to do, I start doodling with some code. Wanted to display the coordinates of the mouse pointer. Thought it was complicated, but it was rather easy. Look, starting at line 94. Then: why not explore a [Bezier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve), and what if I …

0
262
Member Avatar for bhaskerlee
Member Avatar for nkusi agnes
Member Avatar for HuePig

A `Computer` is a `Player` with some extras I assume. `CurrentPlayer` is a `Player`, not a `Computer`.

Member Avatar for HuePig
0
147
Member Avatar for vegaseat
Member Avatar for vegaseat
11
9K
Member Avatar for Elmar_2

What list of objects do you have? Is it a list of all the same object, as Dave suggests or doesyour list contains different objects?

Member Avatar for JOSheaIV
0
6K
Member Avatar for <M/>
Member Avatar for necrovore

? They are allready on the heap when they go out of scope. Any code would perhaps help.

Member Avatar for JOSheaIV
0
195
Member Avatar for Darth Vader

Is there any special raison to implement your own current time, when this functionality already exists? [Example](http://www.dotnetperls.com/datetime-now).

Member Avatar for Darth Vader
0
276
Member Avatar for vegaseat

Of course privacy is important.Certainly in certain places in my home. But when I go out I'm in public, what can be private about someone taking my picture? They may further note in their notebooks, that I'm at the market on that hour and that day, if that so pleases …

Member Avatar for Leigh3
0
591
Member Avatar for Graceyy Fanning

As exponentiation is repeated multiplication, so is multiplication repeated addition. In programming, when you have to do repeated things, you can use a loop structure(e.g. a for loop)

Member Avatar for hamzayammu
1
692

The End.