Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. [Message Deleted] [modified]Sorry had to re-post

[Message Deleted] [modified]Sorry had to re-post

Scheduled Pinned Locked Moved C / C++ / MFC
10 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    djrasa
    wrote on last edited by
    #1

    had to repost sorry!!!

    modified on Friday, February 22, 2008 11:45 AM

    D 3 Replies Last reply
    0
    • D djrasa

      had to repost sorry!!!

      modified on Friday, February 22, 2008 11:45 AM

      D Offline
      D Offline
      djrasa
      wrote on last edited by
      #2

      may need to re-post

      1 Reply Last reply
      0
      • D djrasa

        had to repost sorry!!!

        modified on Friday, February 22, 2008 11:45 AM

        D Offline
        D Offline
        djrasa
        wrote on last edited by
        #3

        Taking my first (C++) programming class and I can not get this to execute (if it is even possible) sorry for the long post and messy code, first time please take it easy on me, I am using visual studio 6. Thanks in advance. Please Help keep getting an error: fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched #include <iostream> #include <cmath> #include <fstream> #include <cstdlib> #include <iomanip> #include <math.h> #include <vector> #define rows 7 #define cols 3 using namespace std; int num; int input; int main() { char n[rows][cols]; ifstream indata; cout << "Guess Your Letter Game!!" << endl; cout << "Look at a letter write it down on scrap paper!!" << endl; cout << "Do not choose A or Z." << endl; indata.open("C:\\Users\\DingleBerry\\Documents\\chart.txt"); indata >> n[0][0] >> n[1][0] >> n[2][0]; indata >> n[3][0] >> n[4][0] >> n[5][0]; indata >> n[6][0] >> n[0][1] >> n[1][1]; indata >> n[2][1] >> n[3][1] >> n[4][1]; indata >> n[5][1] >> n[6][1] >> n[0][2]; indata >> n[1][2] >> n[2][2] >> n[3][2]; indata >> n[4][2] >> n[5][2] >> n[6][2]; cout << endl; cout << "Row1 Row2 Row3" << endl; cout << setw(3) << n[0][0] << setw(5) << n[1][0] << setw(6) << n[2][0] << endl; cout << setw(3) << n[3][0] << setw(5) << n[4][0] << setw(6) << n[5][0] << endl; cout << setw(3) << n[6][0] << setw(5) << n[0][1] << setw(6) << n[1][1] << endl; cout << setw(3) << n[2][1] << setw(5) << n[3][1] << setw(6) << n[4][1] << endl; cout << setw(3) << n[5][1] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl; cout << setw(3) << n[1][2] << setw(5) << n[2][2] << setw(6) << n[3][2] << endl; cout << setw(3) << n[4][2] << setw(5) << n[5][2] << setw(6) << n[6][2] << endl; cout << endl; cout << "Which Row is you letter in?? : " << endl; cout << "Enter 1, 2, or 3 : "; cin &g

        J M M 3 Replies Last reply
        0
        • D djrasa

          Taking my first (C++) programming class and I can not get this to execute (if it is even possible) sorry for the long post and messy code, first time please take it easy on me, I am using visual studio 6. Thanks in advance. Please Help keep getting an error: fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched #include <iostream> #include <cmath> #include <fstream> #include <cstdlib> #include <iomanip> #include <math.h> #include <vector> #define rows 7 #define cols 3 using namespace std; int num; int input; int main() { char n[rows][cols]; ifstream indata; cout << "Guess Your Letter Game!!" << endl; cout << "Look at a letter write it down on scrap paper!!" << endl; cout << "Do not choose A or Z." << endl; indata.open("C:\\Users\\DingleBerry\\Documents\\chart.txt"); indata >> n[0][0] >> n[1][0] >> n[2][0]; indata >> n[3][0] >> n[4][0] >> n[5][0]; indata >> n[6][0] >> n[0][1] >> n[1][1]; indata >> n[2][1] >> n[3][1] >> n[4][1]; indata >> n[5][1] >> n[6][1] >> n[0][2]; indata >> n[1][2] >> n[2][2] >> n[3][2]; indata >> n[4][2] >> n[5][2] >> n[6][2]; cout << endl; cout << "Row1 Row2 Row3" << endl; cout << setw(3) << n[0][0] << setw(5) << n[1][0] << setw(6) << n[2][0] << endl; cout << setw(3) << n[3][0] << setw(5) << n[4][0] << setw(6) << n[5][0] << endl; cout << setw(3) << n[6][0] << setw(5) << n[0][1] << setw(6) << n[1][1] << endl; cout << setw(3) << n[2][1] << setw(5) << n[3][1] << setw(6) << n[4][1] << endl; cout << setw(3) << n[5][1] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl; cout << setw(3) << n[1][2] << setw(5) << n[2][2] << setw(6) << n[3][2] << endl; cout << setw(3) << n[4][2] << setw(5) << n[5][2] << setw(6) << n[6][2] << endl; cout << endl; cout << "Which Row is you letter in?? : " << endl; cout << "Enter 1, 2, or 3 : "; cin &g

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          djrasa wrote:

          fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched

          You have unmatched '{' and '}'. Set the Cursor next to the '{' indicated Line 59, you can go there using CTRL-G Press CTRL-{. The cursor jumps to the (wrong) matching brace. Look where this brace should be closed. Fix the missing bracket.

          Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
          Douglas Adams, "Dirk Gently's Holistic Detective Agency"

          1 Reply Last reply
          0
          • D djrasa

            Taking my first (C++) programming class and I can not get this to execute (if it is even possible) sorry for the long post and messy code, first time please take it easy on me, I am using visual studio 6. Thanks in advance. Please Help keep getting an error: fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched #include <iostream> #include <cmath> #include <fstream> #include <cstdlib> #include <iomanip> #include <math.h> #include <vector> #define rows 7 #define cols 3 using namespace std; int num; int input; int main() { char n[rows][cols]; ifstream indata; cout << "Guess Your Letter Game!!" << endl; cout << "Look at a letter write it down on scrap paper!!" << endl; cout << "Do not choose A or Z." << endl; indata.open("C:\\Users\\DingleBerry\\Documents\\chart.txt"); indata >> n[0][0] >> n[1][0] >> n[2][0]; indata >> n[3][0] >> n[4][0] >> n[5][0]; indata >> n[6][0] >> n[0][1] >> n[1][1]; indata >> n[2][1] >> n[3][1] >> n[4][1]; indata >> n[5][1] >> n[6][1] >> n[0][2]; indata >> n[1][2] >> n[2][2] >> n[3][2]; indata >> n[4][2] >> n[5][2] >> n[6][2]; cout << endl; cout << "Row1 Row2 Row3" << endl; cout << setw(3) << n[0][0] << setw(5) << n[1][0] << setw(6) << n[2][0] << endl; cout << setw(3) << n[3][0] << setw(5) << n[4][0] << setw(6) << n[5][0] << endl; cout << setw(3) << n[6][0] << setw(5) << n[0][1] << setw(6) << n[1][1] << endl; cout << setw(3) << n[2][1] << setw(5) << n[3][1] << setw(6) << n[4][1] << endl; cout << setw(3) << n[5][1] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl; cout << setw(3) << n[1][2] << setw(5) << n[2][2] << setw(6) << n[3][2] << endl; cout << setw(3) << n[4][2] << setw(5) << n[5][2] << setw(6) << n[6][2] << endl; cout << endl; cout << "Which Row is you letter in?? : " << endl; cout << "Enter 1, 2, or 3 : "; cin &g

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            From the error message, you're missing a {} bracket somewhere. If good/handy indentation doesn't help you spot it, you can put the cursor by brackets and and hit Ctrl-} and the cursor will go to the matching bracket. Good luck, Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            L D 2 Replies Last reply
            0
            • M Mark Salsbery

              From the error message, you're missing a {} bracket somewhere. If good/handy indentation doesn't help you spot it, you can put the cursor by brackets and and hit Ctrl-} and the cursor will go to the matching bracket. Good luck, Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              Way to help this guy with his compiler error! I'm sure he will be back with more unless of course he never gets another one. :laugh:

              led mike

              M 1 Reply Last reply
              0
              • L led mike

                Way to help this guy with his compiler error! I'm sure he will be back with more unless of course he never gets another one. :laugh:

                led mike

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                If I've done my job (reading the error message :rolleyes:) correctly, he'll never have a compiler error again!  :laugh: :)

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                1 Reply Last reply
                0
                • D djrasa

                  Taking my first (C++) programming class and I can not get this to execute (if it is even possible) sorry for the long post and messy code, first time please take it easy on me, I am using visual studio 6. Thanks in advance. Please Help keep getting an error: fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched #include <iostream> #include <cmath> #include <fstream> #include <cstdlib> #include <iomanip> #include <math.h> #include <vector> #define rows 7 #define cols 3 using namespace std; int num; int input; int main() { char n[rows][cols]; ifstream indata; cout << "Guess Your Letter Game!!" << endl; cout << "Look at a letter write it down on scrap paper!!" << endl; cout << "Do not choose A or Z." << endl; indata.open("C:\\Users\\DingleBerry\\Documents\\chart.txt"); indata >> n[0][0] >> n[1][0] >> n[2][0]; indata >> n[3][0] >> n[4][0] >> n[5][0]; indata >> n[6][0] >> n[0][1] >> n[1][1]; indata >> n[2][1] >> n[3][1] >> n[4][1]; indata >> n[5][1] >> n[6][1] >> n[0][2]; indata >> n[1][2] >> n[2][2] >> n[3][2]; indata >> n[4][2] >> n[5][2] >> n[6][2]; cout << endl; cout << "Row1 Row2 Row3" << endl; cout << setw(3) << n[0][0] << setw(5) << n[1][0] << setw(6) << n[2][0] << endl; cout << setw(3) << n[3][0] << setw(5) << n[4][0] << setw(6) << n[5][0] << endl; cout << setw(3) << n[6][0] << setw(5) << n[0][1] << setw(6) << n[1][1] << endl; cout << setw(3) << n[2][1] << setw(5) << n[3][1] << setw(6) << n[4][1] << endl; cout << setw(3) << n[5][1] << setw(5) << n[6][1] << setw(6) << n[0][2] << endl; cout << setw(3) << n[1][2] << setw(5) << n[2][2] << setw(6) << n[3][2] << endl; cout << setw(3) << n[4][2] << setw(5) << n[5][2] << setw(6) << n[6][2] << endl; cout << endl; cout << "Which Row is you letter in?? : " << endl; cout << "Enter 1, 2, or 3 : "; cin &g

                  M Offline
                  M Offline
                  Maxwell Chen
                  wrote on last edited by
                  #8

                  For this kind of issue, I suggest you to implement some more functions to make the code more elegant and more readable. And you will get the bonus that the distance between { and } is shorter, easier to find a missing }. For example:

                  int main()
                  {
                  PrintWelcome(); // To print "Guess your letter game".
                  if(! Deserialize(InputData, N)) { // To load values from file.
                  PrintError();
                  return -1;
                  }
                  PrintRaws(Order_Algorithm(n));
                  DoTheMainLoop();
                  return 0;
                  }
                  void PrintWelcome()
                  {
                  printf("Get your letter game! \n");
                  // ...
                  }
                  // The other function implementations.

                  Maxwell Chen

                  1 Reply Last reply
                  0
                  • D djrasa

                    had to repost sorry!!!

                    modified on Friday, February 22, 2008 11:45 AM

                    D Offline
                    D Offline
                    djrasa
                    wrote on last edited by
                    #9

                    Thank You to all for the help. was not aware(obviously) of the ctrl-} tool. VERY, VERY, VERY, VERY HELPFUL :-D :laugh:

                    1 Reply Last reply
                    0
                    • M Mark Salsbery

                      From the error message, you're missing a {} bracket somewhere. If good/handy indentation doesn't help you spot it, you can put the cursor by brackets and and hit Ctrl-} and the cursor will go to the matching bracket. Good luck, Mark

                      Mark Salsbery Microsoft MVP - Visual C++ :java:

                      D Offline
                      D Offline
                      djrasa
                      wrote on last edited by
                      #10

                      Thank you mark, could not of done it without you! ;P

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups