Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
richelbilderbeek
committed
Jan 9, 2018
1 parent
ee26dbd
commit 7d06c78
Showing
18 changed files
with
59 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ([C++](Cpp.md)) [Hello NAG](CppHelloNag.md) | ||
|
||
|
||
[Hello NAG](CppHelloNag.md) is a [Hello World](CppHelloWorld.md) | ||
program to test the [NAG](CppNag.md) [library](CppLibrary.md). | ||
|
||
* [Hello NAG using C](CppHelloNagC.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,25 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
([C++](Cpp.md)) [Hello NAG using C](CppHelloNagC.md) | ||
====================================================== | ||
|
||
|
||
|
||
[Hello NAG using C](CppHelloNagC.md) is a [Hello | ||
World](CppHelloWorld.md) program to test the [NAG](CppNag.md) | ||
[library](CppLibrary.md). | ||
|
||
|
||
|
||
- [Download the Qt Creator project | ||
'CppHelloNagC' (zip)](CppHelloNagC.md) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Technical facts | ||
--------------- | ||
|
||
|
||
|
||
[Application type(s)](CppApplication.md) | ||
|
||
- ![Desktop](PicDesktop.png) [Desktop | ||
application](CppDesktopApplication.md) | ||
|
||
[Operating system(s) or programming environment(s)](CppOs.md) | ||
|
||
- ![Lubuntu](PicLubuntu.png) [Lubuntu](CppLubuntu.md) 12.10 (quantal) | ||
|
||
[IDE(s)](CppIde.md): | ||
|
||
- ![Qt Creator](PicQtCreator.png) [Qt Creator](CppQtCreator.md) 2.5.2 | ||
|
||
[Project type](CppQtProjectType.md): | ||
|
||
- ![console](PicConsole.png) [Console | ||
application](CppConsoleApplication.md) | ||
|
||
[C++ standard](CppStandard.md): | ||
|
||
- C: [How to use Qt Creator to compile C code?](CppCompilerC.md) | ||
|
||
[Compiler(s)](CppCompiler.md): | ||
|
||
- [G++](CppGpp.md) 4.7.2 | ||
|
||
[Libraries](CppLibrary.md) used: | ||
|
||
- ![STL](PicStl.png) [STL](CppStl.md): GNU ISO C++ Library, version | ||
4.7.2 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[Qt project file](CppQtProjectFile.md): CppHelloNagC.pro | ||
--------------------------------------------------------- | ||
|
||
|
||
|
||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
`` QT -= core QT -= gui INCLUDEPATH += /opt/NAG/cll3a09dgl/include LIBS += -L/opt/NAG/cll3a09dgl/lib -lnagc_nag #opt/NAG/cll3a09dgl/lib/libnagc_nag.so:-1: error: undefined reference to `sqrt' QMAKE_LFLAGS += -lm LIBS += -lm #Compile with GNU C compiler QMAKE_CXX = gcc QMAKE_CXXFLAGS = -x c CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp `` | ||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
main.cpp | ||
-------- | ||
|
||
|
||
|
||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
` #include <math.h> #include <nag.h> #include <nag_stdlib.h> int main(void) { char * s = 0; s = NAG_ALLOC(11,char); if (!s) { printf("Cannot allocate memory for s"); return 1; } sprintf(s, "Hello NAG"); puts(s); NAG_FREE(s); return 0; }` | ||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# ([C++](Cpp.md)) [Hello NAG using C](CppHelloNagC.md) | ||
|
||
[Hello NAG using C](CppHelloNagC.md) is a [Hello World](CppHelloWorld.md) | ||
program to test the [NAG](CppNag.md) [library](CppLibrary.md). | ||
|
||
```c++ | ||
#include <math.h> | ||
#include <nag.h> | ||
#include <nag_stdlib.h> | ||
|
||
int main(void) | ||
{ | ||
char * s = 0; | ||
s = NAG_ALLOC(11,char); | ||
if (!s) | ||
{ | ||
printf("Cannot allocate memory for s"); | ||
return 1; | ||
} | ||
sprintf(s, "Hello NAG"); | ||
puts(s); | ||
NAG_FREE(s); | ||
return 0; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,10 @@ | ||
# ([C++](Cpp.md)) ![Qt](PicQt.png) [QTableWidget](CppQTableWidget.md) | ||
|
||
[QTableWidget](CppQTableWidget.md) is a [Qt](CppQt.md) [class](CppClass.md) to view a table. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
([C++](Cpp.md)) ![Qt](PicQt.png) [QTableWidget](CppQTableWidget.md) | ||
===================================================================== | ||
|
||
|
||
|
||
[QTableWidget](CppQTableWidget.md) is a [Qt](CppQt.md) | ||
[class](CppClass.md) to view a table. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[QTableWidget](CppQTableWidget.md) [code snippets](CppCodeSnippets.md) | ||
------------------------------------------------------------------------ | ||
|
||
|
||
|
||
1. [SetReadOnlyTableWidget](CppSetReadOnlyTableWidget.md) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[QTableWidget](CppQTableWidget.md) examples | ||
-------------------------------------------- | ||
|
||
|
||
|
||
- [QTableWidget example 1: display text](CppQTableWidgetExample1.md) | ||
- [QTableWidget example 2: checkboxes and | ||
text](CppQTableWidgetExample2.md) | ||
- [QTableWidget example 3: checkboxes and text modifying external | ||
data](CppQTableWidgetExample3.md) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
## [Examples](CppExamples.md) | ||
|
||
* [SetReadOnlyTableWidget](CppSetReadOnlyTableWidget.md) | ||
* [QTableWidget example 1: display text](https://github.com/richelbilderbeek/QTableWidgetExample1) | ||
* [QTableWidget example 2: checkboxes and text](https://github.com/richelbilderbeek/QTableWidgetExample2) | ||
* [QTableWidget example 3: checkboxes and text modifying external data](https://github.com/richelbilderbeek/QTableWidgetExample3) |
Oops, something went wrong.