Thread: Help writing a program

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    5

    Help writing a program

    Ok, I am a college student who is not in a computer programming class advanced enough to complete this task I want. The girl Im with is a computer apps junkie and loves working out situations in C++. This is the cheesy-est thing I have ever done, but I want to ask her to be official through C++ or some sort of computer code. Fell free to laugh at me, but she will eat it up. Does anyone have any helpful ideas? I know this isn't something that is commonly proposed on these boards...

    Thank You all...

    I'm sorry If this violated the COC, I tried to read it all before posting.

  2. #2
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    I still cannot get what is the program which you are having troubles to write.

  3. #3
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Code:
    #include <iostream>
    int main()
    {
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      return 0;
    }
    If you understand what you're doing, you're not learning anything.

  4. #4
    Registered User
    Join Date
    Apr 2011
    Posts
    5
    I guess I'm really not looking to make a new program, just a code.
    like this one How to Propose A Girl in C++ | Mails And Forwards ... except much shorter and less cheesy.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    5
    Itsme86 -This is what I had in mind. Is there any way it could be just a little longer? ..and have her "crack" it if you know what I mean. I'm sorry that I am so lost when it comes to this...

  6. #6
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Quote Originally Posted by vanek26goal View Post
    Itsme86 -This is what I had in mind. Is there any way it could be just a little longer? ..and have her "crack" it if you know what I mean. I'm sorry that I am so lost when it comes to this...
    Of course there is:

    Code:
    #include <iostream>
    int main()
    {
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      // ...
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      return 0;
    }

  7. #7
    Registered User
    Join Date
    Apr 2011
    Posts
    5
    Quote Originally Posted by kmdv View Post
    Of course there is:

    Code:
    #include <iostream>
    int main()
    {
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      // ...
      std::cout << "Be my official girlfiriend or make way for someone who will.";
      return 0;
    }
    Just repeat it until she says yes? hah repetition!
    She's going to say yes, I just want to do something fun.

  8. #8
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by vanek26goal View Post
    Itsme86 -This is what I had in mind. Is there any way it could be just a little longer? ..and have her "crack" it if you know what I mean. I'm sorry that I am so lost when it comes to this...
    You could do something like this:
    Code:
    #include <iostream>
    int main()
    {
      char letters[] = " beilmnouwy";
      int order[] = {  9, 3, 4, 4, 0, 10, 7, 8, 0, 1, 2, 0, 5, 3, 6, 2 };
    
      for(int i = 0;i < sizeof(order) / sizeof(*order);++i)
        std::cout << letters[order[i]];
      std::cout << std::endl;
    
      return 0;
    }
    Should spit out: will you be mine
    If you understand what you're doing, you're not learning anything.

  9. #9
    Registered User
    Join Date
    Apr 2011
    Posts
    5
    Thats awesome! Thanks. I'm going to have my friend try it tomorrow in his comp. programming class, and possibly add her name into it if he can. Again, Thanks for your help..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help writing program
    By grjae in forum C Programming
    Replies: 23
    Last Post: 03-26-2011, 03:37 PM
  2. Help writing a program
    By sirdesch in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2010, 12:32 PM
  3. Help writing a program
    By alex1067 in forum C Programming
    Replies: 18
    Last Post: 04-04-2008, 11:33 PM
  4. Pls help in writing the program
    By bsb77 in forum C++ Programming
    Replies: 3
    Last Post: 11-29-2001, 03:45 PM