Click here to Skip to main content
14,767,511 members

Comments by sja63 (Top 20 by date)

sja63 16-Aug-16 8:02am View
   
I think its better to use:

strEmail = emailTextBox.Text.ToLower().Trim();
sja63 16-Oct-14 6:24am View
   
Perhaps you can give us more detail about your processings in the doubled for loop.

I am a programmer since the early 90s, but I never had a problem to solve
in a 80000x100000 doubled loop. Of course this will slow down your system.

Maybe your design is wrong...

Or is your question simply a joke?
sja63 13-May-13 15:36pm View
   
Hi,

I guess your button is light blue, not because it is busy,
but it is the default button ?
sja63 8-May-13 6:04am View
   
"This is not a valid objection"

Do you mean similiarity of classes is not the reason to create base classes ?

If you like can you clarify your opinion ?

Thanks in advance
sja63 21-Feb-13 10:04am View
   
Thank you. It works now.
sja63 21-Feb-13 9:53am View
   
I have already included your recommended line.
This cannot be the reason.
Best regards.
sja63 14-Feb-13 8:04am View
   
Brian W. Kernighan, Dennis M. Ritchie: The C Programming Language. 2. Auflage. Prentice Hall, Englewood Cliffs, N.J. 1988, ISBN 0131103628.
sja63 4-Feb-13 8:25am View
   
Hi,

std::string** strArray; // ???

I am a simple structured C/C++ programmer,
the upper line is too complicated for me.

I would prefer solution 2.

And you will get problems with nX = nY = 1.

Best regards
sja63 31-Jan-13 6:10am View
   
One can replace the line
friend void shows(T&);
by
void shows(T&);

So the friend declaration is for what?

I am confused
sja63 31-Jan-13 6:08am View
   
1> friend.cpp
1>c:\friend\friend.cpp(26): error C2248: "students<t>::name": Kein Zugriff auf private Member, dessen Deklaration in der students<t>-Klasse erfolgte.
1> with
1> [
1> T=int
1> ]
1> c:\friend\friend.cpp(14): Siehe Deklaration von 'students<t>::name'
1> with
1> [
1> T=int
1> ]
1> c:\friend\friend.cpp(33): Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-template "void shows<int>(students<t> &)".
1> with
1> [
1> T=int
1> ]
1>
1>Fehler beim Erstellen
1>
1>Verstrichene Zeit 00:00:00.74
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 ├╝bersprungen ==========
sja63 14-Jan-13 8:33am View
   
You can also visit the master's homepage:

http://www.stroustrup.com/index.html
sja63 20-Dec-12 4:24am View
   
Right! It works. Thank You.
sja63 10-Dec-12 5:59am View
   
Thank you for your very fast answer.

Perhaps you can send me another link regarding sound?
Sound played by a file or sound created directly by the generator, if possible?

Thanks in advance
sja63 5-Dec-12 10:32am View
   
"Auto" is an old C/C++ keyword which I have never used.
It has a revival in C++11 and I am trying to understand
its new funcionality.
But it is already supported by VS 2010 in the new way.
sja63 5-Dec-12 7:16am View
   
Perhaps it is not the problem of "auto",
but the MS compiler does not yet support
the new Range-For?
sja63 5-Dec-12 7:11am View
   
Thanks for your response.

I get compiler errors in line
for (auto &elem : vec)

C2143: Syntax error: There must be an ',' before ':'
C2530: 'elem': References must be initialized
C3531: "elem": A symbol, which contains "auto" must have an initializer.

(translated from German by me)
sja63 3-Dec-12 10:31am View
   
Solution 2 is an excellent answer to the recursive problem above.

I suppose the new and very compact "auto" functionality like

for (auto a : v)
cout << a << " ";

is only supported by C++11 compilers.

Users of older ones (like me) can code

for (vector<int>::iterator it = v.begin(); it != v.end(); it++)
cout << *it << " ";

and get the same results.

Best regards
sja63 26-Nov-12 5:17am View
   
Hi,
I changed only the code line to 'char s[] = "";' and I got
nonsens as print output on my windows 7 system.
sja63 26-Nov-12 3:58am View
   
Solution 3 works not correct with char s[] = "";
My proposal is to replace the line "while (*++q);" by "while (*q)q++;"
Best regards
sja63 12-Nov-12 11:00am View
   
The question is:

How is it possible to use the compact, modern and elegant way of "in-loop" declaration like

for (int i = 0; ...)
{
CString test1 = ...
CString test2 = ...
...
}

without loss of performance.

Any idea?