Results 1 to 9 of 9

Thread: endl' was not declared in this scope

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2012
    Posts
    33
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default endl' was not declared in this scope

    whats the problem here... it makes me angryy!!!!
    i face with this error

    " 'endl' was not declared in this scope"

    here is the code


    Qt Code:
    1. #include "mainwindow.h"
    2. #include "ui_mainwindow.h"
    3. #include <QFile>
    4. #include <iostream>
    5.  
    6. MainWindow::MainWindow(QWidget *parent) :
    7. QMainWindow(parent),
    8. ui(new Ui::MainWindow)
    9. {
    10. ui->setupUi(this);
    11. }
    12.  
    13. MainWindow::~MainWindow()
    14. {
    15. delete ui;
    16. }
    17.  
    18. void MainWindow::on_pushButton_clicked()
    19. {
    20.  
    21. QFile myFile("c://Victory.txt");
    22. myFile.open(QIODevice::Append);
    23. QDataStream ds(&myFile);
    24.  
    25. ds<<"bbbb/n"<<endl;
    26.  
    27. myFile.close();
    28.  
    29. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 20th June 2012 at 10:20. Reason: missing [code] tags

Similar Threads

  1. glTexImage3D is not declared in the scope.
    By Elberion in forum Newbie
    Replies: 6
    Last Post: 26th June 2011, 07:15
  2. ui not declared in scope
    By steve.bush in forum Newbie
    Replies: 5
    Last Post: 19th March 2011, 08:58
  3. `lineEdit' was not declared in this scope?
    By i4ba1 in forum Qt Programming
    Replies: 2
    Last Post: 18th November 2009, 14:36
  4. QDomDocument was not declared in this scope
    By grantbj74 in forum Newbie
    Replies: 5
    Last Post: 25th August 2009, 09:43
  5. Replies: 2
    Last Post: 28th December 2007, 18:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.