I too installed Dev-C++ first (first an older version, and then the newest beta version shown in my signature), and later installed Visual Express and can use either one now with no problems. Using...
Type: Posts; User: SRS
I too installed Dev-C++ first (first an older version, and then the newest beta version shown in my signature), and later installed Visual Express and can use either one now with no problems. Using...
1: Please use code tags for your code and indent properly. Many people will not reply just because it is harder to read.
2: No one will give you any help without an honest attempt at it first....
Wow that is nice to know...
I didn't know such a thing was possible:
cout << string((1+y), 65+y);
This looks like less work on the person's part when writing it, but how would it compare...
dynamethod :: WARNING: do not read! may be more than a hint! :p
I don't want to ruin your post or education, but I am more curious than allowing this to slip by...
I didn't consider that...
You will need another for loop nested prior to the for loop printing the letters, and a little bit of math to figure how many spaces determined by which letter you are printing...
I'm not looking to inherit someone elses error. I am looking for project ideas. The first step of writing a program is the need for one. I have no needs. Also the reason I asked for multiple...
I am trying to learn C++ and I am tired of aimlessly throwing code on screen and trying to make something of it. (example: my 4 function - .text reading - .html creating "Hello World" program)...
...
Can you post all of the code you have for this project? I am very new in C++ and this looks like a good next step for me to look at. Thank you.
While curising the C string tutorial on this site, I found a set of variables resembling my struct. Here is what I found:
char name[50];
char lastname[50];
char fullname[100];
...
I am already familiar with functions and variables and the other basics similiar to an event driven language, its the object oriented stuff that is new. struct - class ... Here is where I am so far...
That is the reason I posted my current includes... This is probably a question most know the answer to but... where could I look these up? Know of a good site or anything?
ty again
I agree also, as this I am nearing my first 24 hours in C++ lol...
However, warnings are enabled, and it did not produce one. (I have included it now anyway)
Using Dev-C++ V 4.9.9.2
Anyway,...
#include <iostream>
#include <string>
using namespace std;
Right now this is what I have, yet it works with caps or lower input. Is it necessary? or is the compiler searching for it even though...
Very well! I will try to digest how all of that works and get back to you, but at a glance it seems to be more along the lines of what I am attempting to learn how to do, thank you SO MUCH for your...
Yes, this is the goal. As idiot proof as I can think of ways to make it.
Open for other suggestions on that too...
TYVM again both of you!!
I tried that, or so I think
char yn;
cin >> yn;
and what happened if the user input more than one character, the remaining characters were entered to firstName and ran right down to input...
getline is new to me but I will look into it now.
This "thing" I am writing is odd as it's only purpose is to contain working samples of code structure for my learning... I have never used an...
// Hello World! V 3_02_02
// Use of functions and variables
// by SRS & the assistance of the
// fine people at cprogramming.com
#include <iostream>
#include <string>
using namespace std;
...
string verify;
char yn;
cin >> verify;
string subverify = verify.substr(0,1);
// yn = subverify --how?
Once I accept user input (string verify) what would be the best way to assign the...
1. Got it
2. Using Dev-C++ and it does ty
3. Working on that now, may have questions...
4. Got it, that was actually my problem I had used char verify
expecting a letter reply and compared...
Thanks for the tip, can you explain int main(void) vs int main(), and if using either of these will I also have to return a value at the end? ie return 0;
Thanks again, how should I return to the...
I am just starting to learn C++ and having a wonderful time with it. :)
Here are my questions:
1: How could I use 1 function to do the work of getting and returning both names, the shortest way...