Yes, this is how heredocs work. When the delimiter (EOF) is unquoted, the contents of the heredoc are expanded more or less the same way as if they were typed directly on the command line (after all,...
Type: Posts; User: trent.josephsen; Keyword(s):
Yes, this is how heredocs work. When the delimiter (EOF) is unquoted, the contents of the heredoc are expanded more or less the same way as if they were typed directly on the command line (after all,...
This is an interesting problem. Of course, any recursive algorithm can be transformed into an iterative algorithm with a stack -- after all, that's how recursion is implemented on real hardware! But...
So... your only problem is that MonoDevelop won't open the Visual Studio project file? Bit drastic to go to rewriting the whole darn thing, right?
I won't pretend to know anything about C# or...
Thanks for asking! I'll do my best, but I apologize for any language errors -- my Java's a bit Rusty.
So, if I understand your problem correctly, you wrote something like this:
Plate plateTest...
You'd think that, but it's not true. Order of operations is determined by operator precedence, but order of evaluation is determined by sequence points. The usual example is something like
a[i]...
é isn't part of the "core C character set"; i.e. it's not guaranteed by the C standard to exist either at compile time or runtime. If you want to use characters outside of the core set (which see...
[double post]
Sorry, I guess I overlooked that detail. Functions actually exist in libraries which are "linked" in to the binary in the final step. There are two libraries that have C standard library functions,...
If you're learning C, the first thing you should do is abandon any idea that the compiler will stop you when you mess up :-)
Header files contain function declarations. The declaration only exists...
Well... not necessarily. That is, lots of projects that use git also have workflows that involve feature branches, fix branches, and mainline branches named "master". But that's a fact about a...
To elaborate a little on what papibe said, HEAD and master both ultimately refer to commits, but they differ in their behavior. HEAD always refers to the commit that is checked out in the working...
Your English is good, no need to apologize.
Here's some things I thought about your code as I read it. I didn't try to run it at first, I just walked through it in my head and predicted what would...
ASCII, you probably mean. (American Standard Code for Information Interchange)
Sounds like the program 'xxd'. Unfortunately I don't know what package it's in but it might be installed already.
Just so you know, you generally can't switch keyboard layouts by plugging in a different keyboard. The keycodes are the same for the keys that are the same, so if you plug a UK keyboard into a...
No, it's because the pointer passed to strcpy is uninitialized. This has the same problem despite omitting the terminator:
strncpy(board[i][j], "O", 1);
Sorry, no, sqlite doesn't have IF. Probably because it doesn't support stored procedures. However, this seems to do something sensible:
sqlite> CREATE TABLE dogs (id INTEGER PRIMARY KEY, name,...
INSERT with WHERE? Is that valid SQL? What does it even do?
More to the point, what is it supposed to do? My SQL is rusty but if you want to conditionally insert, you probably want to wrap the...
Cool. You might consider using the decimal module from the standard library instead of converting between floats and strings. Decimal arithmetic is almost universally better for anything user-facing....
scanf returns an int, which is the number of %-conversions in the format string that were successfully matched. You should always check the return value of scanf to determine whether it was...
I'm a big fan of C, as my post history will attest, and whenever a new language comes along that claims to replace C, I always look into it to find out why it won't. I'm from a hardware background,...
You had a file named (presumably) /home/jack/File mgmt prac.txt, containing "Alpha".
You used Python to write to (presumably) /home/jack/File mgmt prac the text "Beta".
Result: You now have two...
You may find it difficult to find (recent) tutorials and help for BASIC, for a couple reasons. BASIC isn't just one language: there are many different "dialects". When I first began programming, I...
I didn't know the answer to this question, but I thought of a way to find out. SCons is a build tool (similar to make) and it is written in Python 2, not 3, but I bet we can get very close to an...
$ git rm SOME_FILE
$ git commit
$ git push
Your link doesn't work for me. Please copy and paste the actual behavior or error message, both to help people who would help you and for the sake of other people who may find this thread by...