forcing tabs in regex

2018-02-27 Thread dark777 via Digitalmars-d-learn
Regex validates years bisexto and not bisextos in format: const std::regex

Digital mars QT interface?

2017-12-29 Thread dark777 via Digitalmars-d-learn
I would like to know if there is any repository that uses QT to create QT creator-style programs with buttons and combobox cute?

Re: overload

2017-12-15 Thread dark777 via Digitalmars-d-learn
On Friday, 15 December 2017 at 08:57:23 UTC, Biotronic wrote: On Thursday, 14 December 2017 at 22:47:15 UTC, dark777 wrote: I know that this community is not from c ++, but for some time I studied how to do overload of ostream operators in c ++ and I even managed to get to this result, I got

overload

2017-12-14 Thread dark777 via Digitalmars-d-learn
I know that this community is not from c ++, but for some time I studied how to do overload of ostream operators in c ++ and I even managed to get to this result, I got to this result in another post done here but I did not understand the that it returns this error below: bin2.cxx:44:43:

Re: operator overload

2017-12-12 Thread dark777 via Digitalmars-d-learn
On Tuesday, 12 December 2017 at 17:13:55 UTC, Biotronic wrote: On Tuesday, 12 December 2017 at 16:54:17 UTC, Biotronic wrote: There is no way in C++ to set the format the way you want it. If you want binary output, you need to call a function like your binario function. Of course this is not

Re: operator overload

2017-12-12 Thread dark777 via Digitalmars-d-learn
On Tuesday, 12 December 2017 at 17:13:55 UTC, Biotronic wrote: On Tuesday, 12 December 2017 at 16:54:17 UTC, Biotronic wrote: There is no way in C++ to set the format the way you want it. If you want binary output, you need to call a function like your binario function. Of course this is not

operator overload

2017-12-12 Thread dark777 via Digitalmars-d-learn
I know that this community is not of c ++, but some time I have been studying how to do overload of ostream operators in c ++ and I even managed to get to this result but the same is not converting to binary only presents zeros as output to any number already tried to pass parameter of

Re: no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
On Thursday, 28 September 2017 at 21:34:46 UTC, arturg wrote: On Thursday, 28 September 2017 at 20:17:24 UTC, Ali Çehreli wrote: On 09/28/2017 12:18 PM, dark777 wrote: On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function

Re: no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function output do while in my program after entering the data and select the function that will print on the screen the same is not printing .. and if I choose 'q' or 'Q' does

no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
no print function output do while in my program after entering the data and select the function that will print on the screen the same is not printing .. and if I choose 'q' or 'Q' does the program not close what is happening? should not it work just like in C ++?

Re: Struct List Human

2017-09-24 Thread dark777 via Digitalmars-d-learn
On Sunday, 24 September 2017 at 18:00:32 UTC, Adam D. Ruppe wrote: I think readf("%s") reads everything available. readf(" %s\n") might help but personally, I say avoid readf. Just use readln and to!int instead auto line = readln(); if(line.length == 0) writeln("please enter a number");

Re: Struct List Human

2017-09-24 Thread dark777 via Digitalmars-d-learn
On Sunday, 24 September 2017 at 17:05:11 UTC, Neia Neutuladh wrote: On Sunday, 24 September 2017 at 16:13:30 UTC, dark777 wrote: when you execute and call Name: I type my name: Name: dark777 + [enter] and he does not jump to the next line to get the age This is what I want to know how to

Re: Struct List Human

2017-09-24 Thread dark777 via Digitalmars-d-learn
On Sunday, 24 September 2017 at 15:51:01 UTC, dark777 wrote: On Sunday, 24 September 2017 at 15:22:30 UTC, Suliman wrote: On Sunday, 24 September 2017 at 14:32:14 UTC, dark777 wrote: I have the following code: https://pastebin.com/PWuaXJNp but typing my name does not go to the next line as

Re: Struct List Human

2017-09-24 Thread dark777 via Digitalmars-d-learn
On Sunday, 24 September 2017 at 15:22:30 UTC, Suliman wrote: On Sunday, 24 September 2017 at 14:32:14 UTC, dark777 wrote: I have the following code: https://pastebin.com/PWuaXJNp but typing my name does not go to the next line as soon as I press enter how to solve this? use writeln instead

Struct List Human

2017-09-24 Thread dark777 via Digitalmars-d-learn
I have the following code: https://pastebin.com/PWuaXJNp but typing my name does not go to the next line as soon as I press enter how to solve this?

Re: erros em printf[AJUDA]

2017-09-08 Thread dark777 via Digitalmars-d-learn
On Friday, 8 September 2017 at 23:04:07 UTC, kinke wrote: On Friday, 8 September 2017 at 22:30:16 UTC, dark777 wrote: ex3.d(19): Error: cannot pass dynamic arrays to extern(C) vararg functions printf("Writef Hello %.*s!\n", name.length, name.ptr); puts por que é mais chato o printf aqui na

erros em printf[AJUDA]

2017-09-08 Thread dark777 via Digitalmars-d-learn
estava rodando este programa porem acrescentei o printf mas como resolver o erro? bash-4.4$ rdmd ex3 ex3.d(19): Error: cannot pass dynamic arrays to extern(C) vararg functions Failed: ["dmd", "-v", "-o-", "ex3.d", "-I."] import std.stdio; import std.string; //strip import core.stdc.stdio;

Re: D is Multiplatform[DUVIDA]

2017-09-07 Thread dark777 via Digitalmars-d-learn
On Friday, 8 September 2017 at 03:56:25 UTC, rikki cattermole wrote: On 08/09/2017 3:08 AM, dark777 wrote: On Friday, 8 September 2017 at 00:09:08 UTC, solidstate1991 wrote: On Thursday, 7 September 2017 at 23:58:05 UTC, dark777 wrote: Good night, did you want to know this? Is the DE language

Re: D is Multiplatform[DUVIDA]

2017-09-07 Thread dark777 via Digitalmars-d-learn
On Friday, 8 September 2017 at 00:09:08 UTC, solidstate1991 wrote: On Thursday, 7 September 2017 at 23:58:05 UTC, dark777 wrote: Good night, did you want to know this? Is the DE language cross-platform or cross-compile like C ++? GDC and LDC has multi-platform support, I'm currently working

D is Multiplatform[DUVIDA]

2017-09-07 Thread dark777 via Digitalmars-d-learn
Good night, did you want to know this? Is the DE language cross-platform or cross-compile like C ++?

Re: Adding deprecated to an enum member

2017-07-31 Thread dark777 via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 01:12:28 UTC, Jeremy DeHaan wrote: I got an error today because I added deprecated to an enum member. Is there a way to achieve this, or am I out of luck? If it isn't doable, should it be? Here's what I want: enum PrimitiveType { Points, Lines,

Csharp para Digital Mars D[AJUDA]

2017-07-24 Thread dark777 via Digitalmars-d-learn
Eu tenho um projeto em windows form C# feito no virual studio um amigo meu e eu criamos para a semana academica ele faz cadastros e marca a presença das visitas na semana por um id de quem ja pagou pelas palestras queria portar ele para D. Que biblioteca para forms vcs me recomendam para

Re: criando modulos em D para classe pessoa[AJUDA]

2017-07-24 Thread dark777 via Digitalmars-d-learn
On Monday, 24 July 2017 at 20:33:42 UTC, dark777 wrote: On Monday, 24 July 2017 at 20:06:37 UTC, ag0aep6g wrote: On 07/24/2017 09:45 PM, dark777 wrote: principal.d(18): Error: octal literals 01023040 are no longer supported, use std.conv.octal!1023040 instead Failed: ["dmd", "-v", "-o-",

Re: criando modulos em D para classe pessoa[AJUDA]

2017-07-24 Thread dark777 via Digitalmars-d-learn
On Monday, 24 July 2017 at 20:06:37 UTC, ag0aep6g wrote: On 07/24/2017 09:45 PM, dark777 wrote: principal.d(18): Error: octal literals 01023040 are no longer supported, use std.conv.octal!1023040 instead Failed: ["dmd", "-v", "-o-", "principal.d", "-I."] [...] https://pastebin.com/CYinHWyQ

criando modulos em D para classe pessoa[AJUDA]

2017-07-24 Thread dark777 via Digitalmars-d-learn
pessoal eu tenho umas classes java e estava portando para D e para usar as importaçoes criei os modules nescessarios todos estao dentro da mesma pasta porem ao fazer: $rdmd principal ele retorna o seguinte erro: principal.d(18): Error: octal literals 01023040 are no longer supported, use

Re: char e string em linguagem D

2017-07-13 Thread dark777 via Digitalmars-d-learn
On Thursday, 13 July 2017 at 22:30:29 UTC, crimaniak wrote: On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote: Pessoal eu fiz o seguinte programa em C++. https://pastebin.com/CvVv6Spn porem tentei fazer o equivalente em D mas nao entendi muito bem... https://pastebin.com/2xw9geRR

char e string em linguagem D

2017-07-13 Thread dark777 via Digitalmars-d-learn
Pessoal eu fiz o seguinte programa em C++. https://pastebin.com/CvVv6Spn porem tentei fazer o equivalente em D mas nao entendi muito bem... https://pastebin.com/2xw9geRR alguem poderia me ajudar?