Search:

Type: Posts; User: shuuhen

Search: Search took 0.01 seconds.

  1. Replies
    38
    Views
    9,268

    strtok() returns a pointer to a string, not the...

    strtok() returns a pointer to a string, not the string itself. I recommend going over Salem's post. If you can use and understand the code in that post, you will have fewer problems with future...
  2. Replies
    38
    Views
    9,268

    How's that needed in alexnb185's code? Wouldn't...

    How's that needed in alexnb185's code? Wouldn't that just make the user press return or ctrl-D (or if they have a more interesting way of sending EOF...) before typing the name of the app? Reading...
  3. Replies
    38
    Views
    9,268

    The .app in the output is normal. It's from...

    The .app in the output is normal. It's from running open without a valid program name. When you finish typing your input you press return, which signifies a newline in the terminal. fgets() reads...
  4. Replies
    38
    Views
    9,268

    The .app is there because you're using open to...

    The .app is there because you're using open to try and open a Mac OS X program. You still need to remove the newline which fgets() reads at the end of your input.

    You still don't want...
  5. Replies
    38
    Views
    9,268

    First, did you take out fflush(stdin)? Second,...

    First, did you take out fflush(stdin)?

    Second, what exactly did you type in (including tabs, returns, etc) and what exactly did you get in the buffer (if you print it out)?
  6. Replies
    6
    Views
    3,184

    stdin counts as a file. Just put stdin where...

    stdin counts as a file. Just put stdin where you'd put a file pointer and it reads the keyboard input.
  7. Replies
    6
    Views
    3,184

    Look into using fgets() to read into a large...

    Look into using fgets() to read into a large buffer. Much better than scanf().
  8. Replies
    14
    Views
    57,465

    Um, no. Mac and Windows are two very different...

    Um, no. Mac and Windows are two very different operating systems. windows.h is for Windows programming, not Mac or any other *nix OS. I assume you're trying to get a program running on Mac OS X...
  9. Replies
    11
    Views
    3,528

    I've liked AVG for the Windows install I have on...

    I've liked AVG for the Windows install I have on my laptop. The university I go to recommends some enterprise version of Norton, but I didn't keep it and went back to AVG. I don't use Windows much,...
  10. Replies
    1
    Views
    4,537

    Is it not in the documentation on Microchip's...

    Is it not in the documentation on Microchip's website? I thought they at least used to have language references somewhere. It was for the C18 compiler when I was using Microchip stuff, but I'd...
  11. Those were my thoughts (well minus the C++ part...

    Those were my thoughts (well minus the C++ part since I don't know all of the basics of that language). I was explaining to someone why I thought they should always have a defined return value at...
  12. Ah, makes sense. So it's more just a good idea...

    Ah, makes sense. So it's more just a good idea to include the 'return 0;' but not really required. Not that it's hard to type that one extra nine or so characters. I suppose it just bugs me...
  13. main() return value standard - stupid question

    I feel kinda dumb asking this question, but I'm in an argument with someone about whether or not to use "return 0;" at the end of main(). I'm not sure if I'm reading the standard wrong, but...
  14. Replies
    14
    Views
    6,821

    A second language would help, but what language...

    A second language would help, but what language for what country? Would Swahili or Mandarin help in Germany or France?

    I'm looking for specific reasons to learn VB.NET. Learning CIL would be...
  15. Replies
    14
    Views
    6,821

    My reasoning may partially stem from the fact...

    My reasoning may partially stem from the fact that I do not know a single person (in person, with evidence of their skill) who codes well in both that prefers VB.NET. I still wonder, because I'd...
  16. Replies
    14
    Views
    6,821

    Just to point out a couple of things. C# is not...

    Just to point out a couple of things. C# is not platform specific. If you really wanted, you could install Linux on a PS2 to compile .NET code. Mono and Portable.NET are two projects to create a...
  17. Replies
    5
    Views
    2,311

    C++ is a superset of C, but there are many...

    C++ is a superset of C, but there are many changes, such as scoping. One of the more experienced coders here could probably tell you the differences in great detail.

    Instead, see if it works with...
  18. Shouldn't be a problem. At work I have the .NET...

    Shouldn't be a problem. At work I have the .NET 1.1 SDK and the .NET 2.0 runtime installed on the same machine. I haven't tried having multiple SDKs, but as far as I know everything is installed to...
  19. Replies
    6
    Views
    3,135

    Andrew Troelsen's Pro C# 2005 and the .NET 2.0...

    Andrew Troelsen's Pro C# 2005 and the .NET 2.0 Platform seems like a decent book so far. Troelsen does know that .NET works on more than Windows (I've read about how he installed Linux on a...
  20. Sorting and deleting with a DataView in ASP.NET 1.1

    Now for the stupid question (even I, who is asking, thinks it is a dumb question. I have DataGrid on a WebForm in ASP.NET 1.1. I can bind a DataView to it and correctly delete from it or sort it.
    ...
  21. Replies
    1
    Views
    3,326

    Install glibc-devel. It should install stdio.h...

    Install glibc-devel. It should install stdio.h into /usr/include.
  22. Thread: GUIs

    by shuuhen
    Replies
    5
    Views
    2,069

    I've been experimenting with SDL...

    I've been experimenting with SDL recently. It's easy to learn the basics of creating a window, processing input, etc. from tutorials you can find on the site. Users will need to make sure they have...
Results 1 to 22 of 22