Search:

Type: Posts; User: reRanger

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Tidy code...

    by reRanger
    Replies
    16
    Views
    2,483

    Tidy code...

    Evening:
    Besides neatness, are there any other practical reasons for indentation of code? I find indented code actually quite difficult to read (human eyes) Before finishing a...
  2. Replies
    4
    Views
    1,798

    'pch' undeclared

    Can anyone explain this error? I am trying a return of 2 substrings from one primary string; I thought this was the way to do it. ? :confused: ?



    #include <stdio.h>
    #include <fstream>...
  3. Replies
    49
    Views
    4,543

    Noooooooooo!

    Well, no offense to your creation (I love to cook :) ) but I despise most Mexican food (and did you know that fajitas are an American creation, not Mexican-- learned that worthless trivia from a...
  4. Thread: Substrings

    by reRanger
    Replies
    0
    Views
    672

    Substrings

    Hello:
    How can I search one input string for two substrings?



    This does not work:
  5. Replies
    0
    Views
    892

    Multi-string chaos

    Good Evening:

    The following code contains a snippet from what will one day evolve into a rather large project; my next step is to find a way to read a string and find not only one word,...
  6. Replies
    2
    Views
    1,410

    Ty

    Stack:
    thank-you for you informed and timely reply, Stack Overflow ;) :) (and, I will probably post again this weekend if I cannot make it work correctly).

    ...
  7. Replies
    2
    Views
    1,410

    Copy from cout to hard file?

    I am nearing the end of a small program which allows the user to cull the letter frequency of encrypted text and display it in standard output. I thought that I would allow the ability to save a...
  8. Thread: Input Log:

    by reRanger
    Replies
    4
    Views
    870

    Maybe I should explain: yes, a keylogger would...

    Maybe I should explain: yes, a keylogger would work I suppose. But first of all, I had no idea that according to people on these boards, keyloggers are akin to virus manufacturing, etc. If I wanted...
  9. Thread: Input Log:

    by reRanger
    Replies
    4
    Views
    870

    Input Log:

    Good Afternoon:
    I have searched the net and the forums (here) seeking information on logging input as well as output; generally, a log to record standard , user input...
  10. Replies
    12
    Views
    1,076

    Variable breeding

    Is it possible to declare TOO many variables in a C++ program, or are the number of variables only equal to the amount of functions set? I have quietly wondered about this for awhile and I would say...
  11. Thread: The Logic

    by reRanger
    Replies
    1
    Views
    793

    The Logic

    Good eve:
    a function searches a string for a substring and returns the sub triggering an event, simply:



    #include <stdio.h>
    #include <fstream>
    #include <iostream>...
  12. Replies
    5
    Views
    1,222

    ROCkaMIC: please check your private messages. ...

    ROCkaMIC: please check your private messages.
    reRanger
  13. Replies
    5
    Views
    1,222

    Ty

    ROCKaMIC: Thank-you for your advice;)
  14. Replies
    1
    Views
    1,056

    load to an array?

    Alot of experimentation... this is awesome and key to learning code definately; it's just that even through extreme research via the Net I am having trouble finding and understanding (mostly...
  15. Replies
    5
    Views
    1,222

    function breakdown

    Good evening:
    I have finally "fixed" (really, many people here helped, ;) ) my code, and now it compiles error-free which is nice; Upon runtime, though, it is apparent...
  16. Thread: Definition?

    by reRanger
    Replies
    6
    Views
    964

    error:

    full piece of code snippet:
    char * pch;
    pch=strstr (str, 'good');

    related error: "arguement of type "int" is incompatible with parameter of type "const char" *



    #include <stdio.h>...
  17. Thread: Definition?

    by reRanger
    Replies
    6
    Views
    964

    Ok, (been typing all day...)sorry, more clearly...

    Ok, (been typing all day...)sorry, more clearly now:

    char * pch; = ???
  18. Thread: Definition?

    by reRanger
    Replies
    6
    Views
    964

    Definition?

    Can any one define this (and its utility) for me, as concretely as possible? It is include in my code and only returns an error.

    char * pch;
    :confused:
  19. Replies
    12
    Views
    3,722

    Tyty

    ;) jlou thank-you. I feeel like I get some of this a bit better now. I cannot wait to get home to my compiler. But before compiling, I think a rewrite of sorts is in order, just to start fresh and...
  20. Replies
    12
    Views
    3,722

    var

    std::string input;std::getline(std::cin, input); are considered variables in above code?
    reRanger
  21. Replies
    12
    Views
    3,722

    Ty

    jLou:
    Thank-you so much; and I am glad, no, impressed that you "think it is good that you learn the C++ string class. " I mean, most people do not even give a !*@$ and are generally...
  22. Replies
    12
    Views
    3,722

    C++ only

    HI:
    I was not even aware that I was mixing C and C++ :eek: Okay: I prefer C++ only and always. Although my instructor teaches mostly in C, I work in C++. (This is not a homework...
  23. Replies
    12
    Views
    3,722

    Thantos: I do not understand: char...

    Thantos: I do not understand:
    char str[]="good"; //Variable
    char input1; // So the user can only input 1 character?

    "input1" is just the given working name of this variable;...
  24. Replies
    12
    Views
    3,722

    Thank-you, Thantos, for your quick and scholarly...

    Thank-you, Thantos, for your quick and scholarly reply. I appreciate it and will look into your suggestions immediately.
    reRanger
  25. Replies
    12
    Views
    3,722

    strstr: code & errors

    (compiled on Dev-C++)




    #include <stdio.h>
    #include <fstream>
    #include <iostream>
    #include <string.h>
    #include <windows.h>
Results 1 to 25 of 44
Page 1 of 2 1 2