Search:

Type: Posts; User: trent.josephsen; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.22 seconds.

  1. Re: Bash Command Substitution - strange effect

    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,...
  2. Re: Stuck on converting recursive code into iterative code that uses a Stack (in Java

    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...
  3. Replies
    4
    Views
    506

    Re: Converting a C# project to Java

    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...
  4. Replies
    1
    Views
    269

    Re: Java object question

    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...
  5. Replies
    10
    Views
    758

    Re: c relational operator question

    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]...
  6. Replies
    8
    Views
    562

    é isn't part of the "core C character set"; i.e....

    é 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...
  7. Replies
    8
    Views
    562

    Re: C question preprocessor

    [double post]
  8. Replies
    8
    Views
    562

    Re: C question preprocessor

    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,...
  9. Replies
    8
    Views
    562

    Re: C question preprocessor

    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...
  10. Re: git vocabulary: distinguishing origin, master, HEAD

    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...
  11. Re: git vocabulary: distinguishing origin, master, HEAD

    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...
  12. Replies
    2
    Views
    455

    Re: Strtok Problem

    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...
  13. [SOLVED] Re: is there a file list pgm that displays hex with AISC for ubuntu?

    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.
  14. Replies
    2
    Views
    690

    Re: US or UK layout for keyboard?

    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...
  15. Re: Need help with pointers and arrays

    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);
  16. [SOLVED] Re: help with sqlite and conditions insert into

    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,...
  17. [SOLVED] Re: help with sqlite and conditions insert into

    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...
  18. Replies
    1
    Views
    512

    Re: Volt/Watt/Amp Calculator

    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....
  19. Replies
    1
    Views
    400

    Re: A small problem with if condition

    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...
  20. Re: Learning new languages, Go and Rust

    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,...
  21. Replies
    6
    Views
    720

    Re: Python file management

    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...
  22. Replies
    5
    Views
    622

    Re: Help with BASIC ... Prime Numbers

    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...
  23. [SOLVED] Re: Python3 - How to import from different directory to access from /usr/bin

    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...
  24. Re: Git delete from local and remote repositories

    $ git rm SOME_FILE
    $ git commit
    $ git push
  25. Re: I can't enter any value when my program runned

    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...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4