snoopy11's Profile User Rating: *****

Reputation: 710 Enlightened
Group:
Mentors
Active Posts:
2,036 (1.37 per day)
Joined:
20-March 10
Profile Views:
27,221
Last Active:
User is offline Today, 08:30 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
Nintendo
Your Car:
Nissan
Dream Kudos:
1050
Expert In:
C/C++
Icon   snoopy11 has not set their status

Posts I've Made

  1. In Topic: Reputation award design competition

    Posted 5 Apr 2014

    Ok I will bite and throw my hat into the ring !!

    or my badge anyways...
  2. In Topic: C GTK in Code::Blocks: Undefined reference to gtk_grid_new()

    Posted 5 Apr 2014

    Hmm when you started CodeBlocks did you select the GTK+ option to begin with as a 'create new project'?

    and did it ask where you built the library ?

    and did you provide it with the correct path to the lib ??
  3. In Topic: My mainMenu keeps on appearing, somebody please help me!

    Posted 5 Apr 2014

    You need to forward declare functions before you can use them in mainMenu.
    like this

    #include <iostream>
    #include <string>
    #include <iomanip>
    #include <cmath>
    
    using namespace std;
    
    int option = 0;
    char add;
    const int SIZES = 20;
    string foodCode;
    string drinkCode;
    int foodQty;
    int drinkQty;
    float foodPrice;
    float drinkPrice;
    float totalFood;
    float totalDrink;
    float totalPrice;
    bool menu1 = true;
    bool menu2 = true;
    bool menu3 = true;
    
    void foodMenu();
    void drinkMenu();
    void totalPayment();
    void exit();
    
    ...remainder of program....
    
    




    in your food menu doing something like this will work better.

    void foodMenu() {
    	bool menu1 = true;
    	do {
    		char add;
    		cout << setw(65) << "* * - - - - - - - - - - - - - - - - - - - - - - - * *" << endl;
    		cout << setw(65) << "*                                                   *" << endl;
    		cout << setw(65) << "|            SEGi College Canteen System            |" << endl;
    		cout << setw(65) << "|                                                   |" << endl;
    		cout << setw(65) << "|                   [ FOOD MENU ]                   |" << endl;
    		cout << setw(65) << "|                                                   |" << endl;
    		cout << setw(65) << "| FOOD CODE                                  PRICE  |" << endl;
    		cout << setw(65) << "| F01 RICE                                   RM1.00 |" << endl;
    		cout << setw(65) << "| F02 CURRY CHICKEN                          RM3.00 |" << endl;
    		cout << setw(65) << "| F03 FRIED CHICKEN                          RM3.00 |" << endl;
    		cout << setw(65) << "| F04 FRIED FISH                             RM2.00 |" << endl;
    		cout << setw(65) << "*                                                   *" << endl;
    		cout << setw(65) << "* * - - - - - - - - - - - - - - - - - - - - - - - * *" << endl;
    
    		cout << setw(45) << "Enter Food Code : ";
    		cin  >> foodCode;
    		cout << endl
    			 << setw(47) << "Enter Food Quantity : ";
    		cin  >> foodQty;
    
    		cout << "Do you want to add another food[Y/N]: ";
    		cin  >> add;
            while (add != 'Y' && add != 'N' && add != 'y' && add != 'n')
                {
                    cout << "Please enter Y/N:";
    	            cin  >> add;
    	        }
    
    		if (add == 'N' || add == 'n')
            {
    			mainMenu();
    		}
    	}while (add != 'N' || add != 'n');
    }
    
    
  4. In Topic: C GTK in Code::Blocks: Undefined reference to gtk_grid_new()

    Posted 5 Apr 2014

    Whats the error ?
  5. In Topic: C GTK in Code::Blocks: Undefined reference to gtk_grid_new()

    Posted 5 Apr 2014

    You need to link to the relevant gtk library.

My Information

Member Title:
Engineering ● Software
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
6
Programming Languages:
C/C++, Java, Python, J2ME, Android, Liberty Basic, Basic.
learning VB.net and C#

Contact Information

E-mail:
Private

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    tarmizi_adam2005 Icon

    27 Nov 2013 - 18:59
    Just wanted to stop by and say thanks for giving some nice advice in my post (reading wave file c/c++) the other day. Thank you so much snoopy11 !
  2. Photo

    yowzz28 Icon

    07 Oct 2013 - 23:44
    hello sir can you please help me to my project in turbo c++ IDE We will do a simple payroll system just a simple only sir . Please help me :((
  3. Photo

    ankush.dev2 Icon

    02 Aug 2013 - 11:27
    sir what can i do to enhance my knowledge of c/c++ programming..??
    i am the one you helped me last day regarding that audio library proect...
  4. Photo

    cpp_help Icon

    31 Jul 2013 - 20:18
    Hello Snoopy11. I often use this site to learn more about c++ and I have seen many of your comments in helping other people. You seem quite knowledgeable in c++. I needed some help. Can you email me at dx6007@wayne.edu please. I would really appreciate it. Thanks.
  5. Photo

    lana ana Icon

    29 Apr 2013 - 00:25
    https://www.facebook.com/lena.ana.904
    this is my page on fb ,, please if u can help me
  6. Photo

    lana ana Icon

    29 Apr 2013 - 00:24
    hello ... i am lana from jordan can u help me in problem please i must send it to my Dr today please i need ur help ,,, ??
    my problem about multithread
  7. Photo

    mamelove25 Icon

    19 Feb 2013 - 11:02
    Hello My Dear, My Name is Mame. i saw your profile today and became interested in you,i will also like to know you more,and if you can send an email to my email address,i will give you my pictures here is my email address (mame25live@yahoo.co.uk) I believe we can move from here! Am waiting for your mail to my email address above because i have much to tell you,
    love Miss Mame.
  8. Photo

    raghav.naganathan Icon

    16 Nov 2012 - 02:21
    Dude...before your rep(343) changes, I would like to tell you that it is a perfect cube :)
  9. Photo

    SaranyaNair Icon

    02 Oct 2012 - 22:51
    hi snoopy..i'm new to programming,,can u guide me some step how to more explore in programming?
  10. Photo

    Joshuwa Icon

    07 Jun 2012 - 17:42
    I am new to programming and I really want to learn. What would you suggest learning first? Whats the best approach?
  11. Photo

    Joshuwa Icon

    07 Jun 2012 - 17:42
    I am new to programming and I really want to learn. What would you suggest learning first? Whats the best approach?
  12. Photo

    v0rtex Icon

    05 Jun 2012 - 15:01
    Your win32 tutorials are really good! Just thought I'd say thanks.
  13. Photo

    David W Icon

    05 Jun 2012 - 11:23
    Win 32 eh ? Very cool ... well maybe some day :)
  14. Photo

    avatarkiyoshi Icon

    14 Mar 2012 - 03:27
    hi,
    I saw that you had a tutorial on how to take pictures with webcam,
    it was really good,
    but I want the program to use the default webcam and take a picture.
    Now, when I use your code, it asks for the webcam I want to use.
    will be grateful if you answer me here or email me at big_pil@msn.com
    thank you
    / H
  15. Photo

    nasikerabu Icon

    14 Dec 2011 - 23:50
    Thx for your help!!! Eager to learn more from U!
  • (2 Pages)
  • +
  • 1
  • 2