Skip to content

Commit

Permalink
EOD
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jan 9, 2018
1 parent ee26dbd commit 7d06c78
Show file tree
Hide file tree
Showing 18 changed files with 59 additions and 674 deletions.
2 changes: 1 addition & 1 deletion content/CppClimitsH.md
Expand Up @@ -19,7 +19,7 @@ file](CppHeaderFile.md), containing the
[definitions](CppDefinition.md) of some numerical limits (incomplete
list):

- [std::numeric\_limits](CppNumeric_limits.md)
- [std::numeric\_limits](CppStdNumeric_limits.md)



Expand Down
2 changes: 1 addition & 1 deletion content/CppFunctionHeaders.md
Expand Up @@ -25,7 +25,7 @@ Here is an overview of functions.
- [std::cos](CppCos.md): [cmath](CppCmathH.md)
- [std::sin](CppSin.md): [cmath](CppCmathH.md)
- [std::sqrt](CppSqrt.md): [cmath](CppCmathH.md)
- [std::min](CppMin.md): [algorithm](CppAlgorithmH.md)
- [std::min](CppStdMin.md): [algorithm](CppAlgorithmH.md)



Expand Down
7 changes: 7 additions & 0 deletions content/CppHelloNag.md
@@ -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)
146 changes: 25 additions & 121 deletions content/CppHelloNagC.md
@@ -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;
}
```
73 changes: 7 additions & 66 deletions content/CppQTableWidget.md
@@ -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)

0 comments on commit 7d06c78

Please sign in to comment.