Search:

Type: Posts; User: SRS

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,475

    Very Odd

    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...
  2. Please

    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....
  3. Thread: Triangle pattern

    by SRS
    Replies
    34
    Views
    9,627

    :)

    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...
  4. Thread: Triangle pattern

    by SRS
    Replies
    34
    Views
    9,627

    ahh, yes

    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...
  5. Thread: Triangle pattern

    by SRS
    Replies
    34
    Views
    9,627

    Hints:

    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...
  6. Replies
    11
    Views
    1,199

    I'm not looking to inherit someone elses error. ...

    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...
  7. Replies
    11
    Views
    1,199

    STUDENTS - homework

    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)...
    ...
  8. Replies
    10
    Views
    14,937

    Very curious...

    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.
  9. Thread: string vs char[50]

    by SRS
    Replies
    9
    Views
    9,559

    string vs char[50]

    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];

    ...
  10. Replies
    15
    Views
    2,191

    Right on track DougDbug

    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...
  11. Replies
    15
    Views
    2,191

    Yes, thanks

    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
  12. Replies
    15
    Views
    2,191

    Yes...

    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,...
  13. Replies
    15
    Views
    2,191

    Nice to know

    #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...
  14. Thread: string to char

    by SRS
    Replies
    11
    Views
    1,325

    YES!

    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...
  15. Thread: string to char

    by SRS
    Replies
    11
    Views
    1,325

    Thanks so much

    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!!
  16. Thread: string to char

    by SRS
    Replies
    11
    Views
    1,325

    Well...

    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...
  17. Replies
    15
    Views
    2,191

    Thanks Daved

    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...
  18. Replies
    15
    Views
    2,191

    Hello World V 03 02 02

    // 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;
    ...
  19. Thread: string to char

    by SRS
    Replies
    11
    Views
    1,325

    string to char

    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...
  20. Thread: Hello World V 3

    by SRS
    Replies
    13
    Views
    1,690

    Daved & Elysia TY

    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...
  21. Thread: Hello World V 3

    by SRS
    Replies
    13
    Views
    1,690

    :) Ty All

    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...
  22. Thread: Hello World V 3

    by SRS
    Replies
    13
    Views
    1,690

    Hello World V 3

    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...
Results 1 to 22 of 23