Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube Google+
Results 1 to 2 of 2
  1. #1
    Senior Member john's Avatar
    Join Date
    Sep 2007
    Age
    63
    Posts
    3,725
    Downloads
    0
    Uploads
    0

    Newbie needs help with c++?

    I'm makinga simple program that will ask the user for two lines. The program will then try to find each of the characters used in the second string from the first string, and where they are used and will then do other stuff.



    int main() {


    string one;
    cin >> one;
    string two;
    cin >> two;


    for ( int i = 0; i < one.size(); ++i)
    {

    char x;
    x = two.at(i);

    // This is the line that's wrong and I don't know why it
    / doesn't work.
    int findx=static_cast <int> (one.find(x));

    }

    ....

  2. #2
    Junior Member mike70025's Avatar
    Join Date
    Oct 2009
    Posts
    2
    Downloads
    0
    Uploads
    0
    I would recommend using Visual Basic or C#. Its much easier to use..

    C++ has so many commands, it would take years. Mabye decades.

    C# is the easiest way to go. Then work your way up the chain.

    Took me 1 day to learn how to make a program the same as microsoft office.


Similar Threads

  1. A little help, newbie here:)?
    By Daria Pink in forum Introductions
    Replies: 3
    Last Post: 01-24-2011, 10:35 PM
  2. newbie
    By edwardph32 in forum Introductions
    Replies: 1
    Last Post: 12-01-2010, 10:17 AM
  3. Php Help! Im a newbie?
    By tenHappyApples in forum Introductions
    Replies: 0
    Last Post: 05-09-2010, 04:03 AM
  4. Hey Newbie here...
    By aolujumu in forum Introductions
    Replies: 0
    Last Post: 02-25-2010, 02:58 PM
  5. Newbie
    By Iceriver in forum Introductions
    Replies: 0
    Last Post: 08-27-2008, 12:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 04:05 PM.
Powered by vBulletin® Version 4.2.5
Copyright © 2024 vBulletin Solutions Inc. All rights reserved.