C# is easy to learn, and unless you have a very specific, articulable reason to be using C++/CLI, you would be better off going with C#.
Edit: Also, don't expect an answer here; your question is offtopic in a C++ forum.
C# is easy to learn, and unless you have a very specific, articulable reason to be using C++/CLI, you would be better off going with C#.
Edit: Also, don't expect an answer here; your question is offtopic in a C++ forum.
is there a way to contain the text in a normal format when writing out to a text file?
Yes, you can make your own class that inherits from ostream.
Why don't you just learn both?
No, that's wrong too because your code will append to whatever was previously stored in Label5.Text :P
Why, take a second look at that code! You're overwriting the value each time through the loop?
You want Label5.Text += element + " ";
inside the loop, but don't forget to overwrite it with an empty string before. Of course, that's a mere incremental improvement. You probably really want Label5.Text = string.Join(" ", stringArray);
Use a for loop or a while loop and with it, add up the marks of the elements of the array.
Well, you would have an easier time using C#.
Okay, but why would a deck of cards be a two dimensional array?
int deck[ 4 ][ 13 ];
What makes you think this makes any sense?
You can surely run the program yourself and see whether the output is right.
Why are you using C++/CLI and not something like C#?
So I need to do this
textFile = textFile + "\n\n"; ?
Newline characters separate lines.
string.Empty is the empty string, not an empty line. "\n" is a string that contains a newline character. If you want an empty line, you need two newline characters.
You can't do it; the size of the array needs to be specified in the class declaration. If you want something variable-sized, use a vector.
Well, I was being a bit inaccurate when I said you were being "extremely dumb". Everybody is dumb from time to time.
Sorry, I was just being a jerk :)
You will have to write the name of the enum's type in order to trigger autocomplete; that's life.
The sieve of eratosthenes is slower than trial division. It takes Omega(n log n) operations when implemented naively, and Omega(n) operations with the best algorithm, which is just as good as trial division-based factorization.
So Rashakil Fol please explain to us WHAT else you would do? you have said that I am dumb now back it up with a little maths/code.
Just use successive trial division. There's no need to explicitly skip all the non-prime numbers.
The following C# string should suffice:
"<a href=\"LINK\">([^<]+)</a><br>([^<]*) -- (\\d*)<br>([^<]*)<br>"
What the fuck are you naming your enum type "eFullWeekDays" for and not "FullWeekDays"? Unless you have actual evidence that prefixing your variables with the names of their types increases your productivity, you are just a superstitious nutjob.
Anyway to get it to pop up the weekday list without the prefix of GeneralDates.efullweekdays????
No, because you could also theoretically type in a variable of type GeneralDates.eFullWeekDays.
If you want optimal balance, you'll need to think carefully about the case where the size of the segment you're working on is a power of two. You need to split that cleanly in half. Are you splitting it cleanly in half?
Also, what do you think the value of root->left is in:
root->left = toTreeHelper(data, low, mid, root->left);
It makes no sense to check if mid != 0. How could mid be 0? Well, in most cases, mid could not be 0, except at the very left edge of the tree. So your checks for the base case are bad.
Basically your hard job is to consider the cases where high - low is 0 (if possible), 1 (if possible), 2, 3, maybe 4, and in general, even or odd.
Also, you should look twice at your arrayToBSTree function: you might go past the end of the array.
Basically, this problem is designed to get you to practice thinking about off-by-one errors.
Whoever suggested using the sieve of eratosthenes was being extremely dumb. You just need to factor your number; there's no reason to generate a long list of primes.
Why should I?
userChoice<B> = chosenClass; use of object without instantiation
More like, syntax error.
FallenPaladin why don't you paste some representative code to show exactly the kind of thing you're trying to do?
Use C#, not Java. Java is the worst language in popular use, besides C++.
I think it's kind of funny that way.
only problem with this teach a man to fish deal you have running is that not everyone has Visual Studio, some people are compiling using free software with no help files, and online help from Microsoft is practically Japanese to a weekend programmer.
Visual C# Express is free.
Your database API should have support for transactions; if you put your set of database actions in a transaction, it will see a consistent view of the database -- it will never put the database in some unpredictable state. You should want your transactions to be as short in time duration as possible.
Why would they be equal? You would only expect them to be equal if k is 1.0.
If you have a bunch of processes or threads reading from a table without modifying the table, in a way that affects the others' results, you won't have any problems.
Have you ever used Scheme or Haskell in a commercial application, or have you used them primarily in an educational setting?
And that doesn't matter. If you want better code writing techniques in languages like C#, the easiest and best way is to learn Haskell.
Have you ever used Scheme or Haskell in a commercial application, or have you used them primarily in an educational setting?
Yes.
Learn Scheme, C++, Haskell, and C#. That will take some time. You have to actually do projects in them, of course.
The languages you've listed, and most other languages, are not worth learning if you have those four and are interested in generally improving your coding ability, but they may be worth learning because they're nice languages to know and to be able to use. (For example, I never use Scheme and frequently use Perl, and would use Python or Ruby instead of Scheme, too, but I have to recommend Scheme for pedagogical purposes.)
This is a complete waste of your time.
You can figure out your first problem just by looking at your results. You're not printing the last 1 of each row. Why? Well, you're stopping too early in your loop that prints out the row's numbers.
For your second problem, if you temporarily added a few cout statements that showed the numbers you're adding, you'd see your problem very quickly.
You might not have to go through this effort -- I'm sure some shmuck will come along to tell you exactly what's wrong with your code.
message_to_network should already be a function that waits for a new message to reach the socket. I'm guessing about its implementation, but you should just need to call that function -- it will return as soon as the message arrives, or when the connection times out. Obviously, it makes no sense to close the socket.
Your second method is broken -- you forgot isdigit. Your third method is not radical.
Negative values will fail when a lookup table is used to implement the function -- they point in memory outside the lookup table.
awk '{ system("kill " $2) }'
1. What is your title?
"Software Engineer"
2. What are your responsibilities?
Anything that has to do with writing code, designing code, fixing code, and figuring out bugs exhibited at customers, that were caused by our code. And some occasional interviewing.
3. What kinds of skills do you need to perform your job?
Thinking, mostly. Some typing.
4. Describe what you do during a typical day.
Read code reviews, think about what code to write, and write code. And summarizing the code I wrote.
5. What other jobs have you held that might have helped prepare you for this position?
Other programming jobs.
6. Do you have people who work for you, and what do they do?
No.
7. What is one of the most challenging things about the work you do?
Tracking side effects in a horribly designed code base.
8. What time management tips could you suggest?
{}
9. How do you balance your family, job, work, and leisure time?
My job time and work time are well-balanced.
10. What advice would you give to someone interested in this career?
Write as much code as you can and do it in a diversity of programming languages.
Decompile it? Yes. Into something useful? No, unless they just want to figure out how it works.
In Scheme, a combination (a lambda), is a function call: local values are bound to an expression which is evaluated for value. That value then replaces the local context. Please keep in mind that this is a functional operation --hence the term functional languages.
Well, yeah. I agree with calling functions (when used functionally in Scheme) functions. And calling procedures (when used procedurally, with side effects) procedures.
Of course, Scheme isn't really a functional language. :-) </haskell troll>
I don't understand why you have "(a lambda)" there, saying that a 'lambda (expression?)' is a synonym for the term 'combination', though.
How much money? 2 hours = $400.
There are no procedures in scheme, only functions.
There are no functions in Scheme, only procedures. That is, the word used in the R5RS specification (and probably R6RS, but I haven't read that) is "procedure". That's why there is a procedure named procedure?
in Scheme, and no procedure named function?
.
However, your help to the OP is stellar.
So, by now it seems like C++ will be the futures programming language.
I don't mean to reply rudely, but C++ is a terrible programming language, a complete mess. It will not be the future's programming language. Just look at it. And look at other languages. And consider which are better for communicating with the computer.
But what do you think of the future of programming languages??
Will it be easier and better for the user to use it and handle it?
I think the goodness of a programming language depends on several things. One is the ability to prove properties about your code. This implies the machine-assisted ability to control the things your code can do, and throw errors otherwise. I can think of many programming language features which focus on this goal, such as const modifiers, strong typing, static typing, dependent typing, and other keywords with various meanings. Sometimes you want these features, and sometimes you don't, and the level at which you exploit these features depends on the needs of the software you're writing. It also depends on how much these features get in the way. Another thing, more important to me, is the ability to communicate your algorithms efficiently. I can only think of one programming language which really shows serious progress in improving the clarity of communication. Another important thing, it seems to me, is the ability to manage and manipulate libraries and exploit common algebraic structures. The object models employed by various …
>How can I determine the programming language of an .exe file?
You can disassemble the executable and reconstruct the design of the program. From that it's sometimes possible to infer the original language that it was written in. However, this requires a great deal of experience and talent in reverse engineering, as well as intimacy with assembly language and any of the possible languages that the program could have been written in.
It's not that hard. First you can just grep the compiler name. For Haskell you can grep '.lhs'. If that fails, then for any compiled gc'd language you can just look at the garbage collector. That's, um, harder. But before that: If you see printf format strings, it's probably in C or C++. For example, you can know Firefox uses some amount of C++ by looking in its executable and searching for the string "::" until you come across a few error message strings, and by noting that it has a few format strings too.
Error message strings are your greatest friend.
For the toppings, I figured the easiest way is to do a loop of some sort until they're finished inputting toppings (maximum of 7). The reason I'm using an array is because I have to include a function that outputs the object data, including each topping.
My question is this: How can I allow the user to input the toppings they want in main(), and then put that data into the array in my object without creating a temp array for user input?
Make a member function void add_topping(int topping_number), that adds a topping. Or make an extra array. It's not like it's a big deal, to make an extra array.
And what is 'outputDesc' for? You're having a pizza class that can output its information? That violates the principle you've described. (And what is 'set', too?)
What could go wrong with creating one bureaucracy whose job it is to tell other bureaucracies what to do?
Question: If the curriculum is set to a national standard, should the Department of Education be renamed to the Ministry of Truth?
Dani, your "no complaints" argument is your standard flawed reasoning. The only feedback that matters is the feedback you've been given.
No, you're standing on flawed reasoning. Feedback is not a scientific poll.
Um, it's hard to understand you, so I'm going to guess that the answer depends on the definition of 'driver'.
Edit: but more seriously, I'd say no, based on the way the word 'driver' is used in common usage.