Search:

Type: Posts; User: Terrance

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    6,483

    There's not much on the forum to help you out...

    There's not much on the forum to help you out with true false statements, that I could find. Do a forum or Google search for "bools".
  2. Replies
    4
    Views
    3,898

    Or for the exact answer to your question, putting...

    Or for the exact answer to your question, putting a string into char c [] puts it in read only format, so you can't output a value that is read only, it also has to be able to write the value (so...
  3. Replies
    4
    Views
    3,898

    Char c [] is an array of characters, initialize...

    Char c [] is an array of characters, initialize it's size: char c [3].
  4. Replies
    1
    Views
    3,639

    how to throw an Overflow() exception

    I'm trying to throw an overflow exception:




    void Stack::push(char c)
    {
    if(top == max_size) throw Overflow();
    }
  5. Replies
    2
    Views
    3,485

    Read over object oriented design: S.O.L.I.D: The...

    Read over object oriented design: S.O.L.I.D: The First 5 Principles of Object Oriented Design | Scotch

    Object-oriented analysis and design - Wikipedia

    and try to design a small program based...
  6. Thread: FTP Library

    by Terrance
    Replies
    14
    Views
    5,417

    Try libcurl. https://curl.haxx.se/libcurl/ If...

    Try libcurl. https://curl.haxx.se/libcurl/

    If you're a newbie to c, why not try Python programming instead. There are many Internet networking books on python. Using ftp libraries in c seems...
  7. Replies
    18
    Views
    15,846

    Mastering python :)

    Mastering python :)
  8. Replies
    14
    Views
    11,772

    Just got through 150 pages of a Python book, by...

    Just got through 150 pages of a Python book, by Mark Lutz. Everything said about it above is right, easy to learn, oop, less lines of code than same type of program written in c/c++, lots of built...
  9. I've been having issues with other compilers, so...

    I've been having issues with other compilers, so visual c++ express was the one that has worked the best for me. I've also been busy with work, and I would also like to learn Python, so c is also...
  10. Replies
    14
    Views
    11,772

    Why is Python getting so popular?

    So I was reading a book at Barnes and Noble, and it was a Python book, and it said that Python now has over a million active users. Why is Python getting so popular? It strikes me as if Python is...
  11. I will studying the documentation better for the...

    I will studying the documentation better for the functions. Yes, I don't know the specifics of the undefined behavior.
  12. Yes, I understand, although I took my c course...

    Yes, I understand, although I took my c course back in 2002. For the undefined behavior, yes, I don't understand the functions I'm using well enough to use them without getting warnings, but I will...
  13. Sorry about that. I thought the problem was...

    Sorry about that. I thought the problem was interesting, since I'm learning c and incorporating the c standard library myself, so I put some time into solving this problem as well. But I will try...
  14. I learned c in the academic setting close to 15...

    I learned c in the academic setting close to 15 years ago, so I do understand what you mean. But I was merely trying to solve the problem, as I am relearning c myself. As I continue to get more...
  15. Hi, I only gave the code for the portion which...

    Hi, I only gave the code for the portion which was solved using advice on this message board: using string functions, using fgets, and using strstr. But what I showed was only half of my main, but I...
  16. int main(array ^args) { ...

    int main(array<System::String ^> ^args)
    {

    char sentence[100];
    char toReplace[20];
    char replacement[20];

    printf("Enter a sentence: ");
    fgets(sentence, 100, stdin);
  17. Probably not. I looked up similar questions on...

    Probably not. I looked up similar questions on Google, and it required several built in string functions to complete. As Salem mentioned, a good function to start with is strstr in string.h.
    ...
  18. You will probably need to use several built in...

    You will probably need to use several built in functions using the standard c library, and as the instructions states, you will have to create a single user defined function. The best c library to...
  19. int main(array ^args) { int...

    int main(array<System::String ^> ^args)
    {
    int n, reverse=0;


    printf("Enter a number to reverse (enter 0 to end): \n");
    scanf("%d", &n);

    while(n!=0) {
  20. Not getting output from counting getchar() blanks

    #include "stdafx.h"
    #include <cstdio>

    using namespace System;

    int main(array<System::String ^> ^args)
    {
    int c, nl;
  21. Yes, remember that the values of variables must...

    Yes, remember that the values of variables must be stored in memory before any calculations can be made, otherwise the values will be null if nothing is stored in them. Getting input from the user...
  22. Shouldn't you be calculating age after you get...

    Shouldn't you be calculating age after you get the input from the user, not before you get the input from the user?

    The way you wrote the program, there are no values associated with year and...
  23. Replies
    5
    Views
    3,461

    I probably should have said that an array is a...

    I probably should have said that an array is a linear list, but tends to be stored in sequential memory units.
  24. Replies
    5
    Views
    4,046

    I apologize, I meant assert (). The a...

    I apologize, I meant assert (). The a automatically goes to uppercase when you type it in at the beginning of a sentence, and I put down Assert in all instances, though I meant assert ().
  25. I think it's simply a bug in the compiler. A...

    I think it's simply a bug in the compiler. A float only has the capacity to hold 7 digits of precision. So to hold larger numbers you would have to use a double. I don't think there is a specific...
Results 1 to 25 of 288
Page 1 of 12 1 2 3 4