|
In this other question in the winning answer I read:
... good C++ programming typically doesn't use pointers in complicated ways.
What does it mean to not use pointers in complicated ways?
(I'm really hoping that this isn't a subjective question)
Started by leeand00 on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
So "complicated ways" of using pointers would be from having pointers to pointers and structure traversal using pointers to really complicated....
Some people seem to consider almost all pointers "complicated", while.
Of course it's subjective.
|
|
I'm curious what change requests, from testers, clients, or managers, programmers have encountered that seemed really simple but were in fact really complicated.
Started by Brian on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Changing it's....
However, the title of the window was in fact localized in a library and was shared with several applications .
How about adding a GUI to this command line app?
One thing I've hit was being asked to change a word in the title of a window .
|
|
What are the good ways to handle complicated business logic that from the first glance requires many nested if statements?
Example:
Discount Coupon. could be:
1a) Value discount
1b) Percentage discount
2a) Normal discount
2b) Progressive discount
3a) ...
Answer Snippets (Read the full thread at stackoverflow):
Implement several new features and suddenly your conditional logic becomes complicated and expansive.
|
Ask your Facebook Friends
|
I have a pair of static fields with a complicated one-time initialization. I want this initialization to happen lazily, a la the standard singleton pattern .
However, the initialization procedure involves both fields, so I can't separate it into two different...
Started by SLaks on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
FieldInitializer { public static readonly SomeType field1, field2; static FieldInitializer() { //Complicated.
|
|
How to understand following complicated declarations?
char (*(*f())[])(); char (*(*X[3])())[5]; void (*f)(int,void (*)()); char far *far *ptr; typedef void (*pfun)(int,float); int **(*f)(int**,int**(*)(int **,int **));
EDIT : After people have cursed ...
Started by Ravi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Void f1(int a, float b) { //do something with these numbers };
Btw, complicated) { printf("Complicated declarations and meaningless example!\n"); return a0; } int ** f1(int ** a2.
Value;
e.g.
|
|
Hi,
Recently I was reading about Article on Interviewing an Software Engineering Position by Joel and he mentioned about asking candidate about Recursion and Pointer's after some simple puzzles.
I wonder why Pointers and Recursion are considered to be...
Started by Rachel on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Recursion is more complicated than plain code language, so pointers and recursion....
Several layers are more complicated than the pointer value and the value of that other variable.
They require keeping details about several layers of data.
|
|
Today, I was reviewing some code a coworker had written recently. The following statement seemed to jump off the screen at me.
string defaultValue = (1000).ToString();
And this has prompted me to ask the question...
What simple problem have you seen addressed...
Started by Steve Dignan on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Magic also happens here too }
We all know we should use constants .
But is more complicated { //...
|
|
I'm a novice at programming although I've been teaching myself Python for about a year and I studied C# some time ago.
This month I started C++ programming courses at my university and I just have to ask; "why is the C++ code so complicated?"
Writing ...
Started by Baldur on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Std::cout << "? Isn't that needlessly long and complicated compared to Python?
This is just that needlessly long and complicated compared to Python? std::cout is only needed if you don't import::cout << "? Isn't that needlessly....
|
|
I'm new to Subversion (SVN) coming from a Visual Source Safe (VSS) background. In VSS the person editing a file checks the file out and it locks the other users from editing it through Visual Studio. I understand that SVN is a concurrent model allowing...
Started by Achilles on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
This behavior is what was contributing to complicated.
As possible, before they have to check in code.
|
|
Hi, could somebody help me with freaking complicated tile layout as it specified under the link .
I have tried to use float:left for widgets but I getting the red block always below #2. I should be able to dynamically add widgets to black dashboard. I...
Started by Sam on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
</div>
css:
leftcol....
</div> <div id="rightcol"> your code...
<div id="leftcol"> your code...
Easiest way to do a two column layout with css .
Make 2 container divs, both float:left
then just float:left everything inside those divs .
|