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...
Type: Posts; User: reRanger
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...
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>...
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...
Hello:
How can I search one input string for two substrings?
This does not work:
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,...
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).
...
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...
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...
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...
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...
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>...
ROCkaMIC: please check your private messages.
reRanger
ROCKaMIC: Thank-you for your advice;)
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...
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...
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>...
Ok, (been typing all day...)sorry, more clearly now:
char * pch; = ???
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:
;) 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...
std::string input;std::getline(std::cin, input); are considered variables in above code?
reRanger
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...
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...
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;...
Thank-you, Thantos, for your quick and scholarly reply. I appreciate it and will look into your suggestions immediately.
reRanger
(compiled on Dev-C++)
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <string.h>
#include <windows.h>