That throws a warning for me:
$ g++ -Wall -pedantic -O0 -g -std=c++14 main.cpp
main.cpp:3:12: warning: ‘k’ initialized and declared ‘extern’
extern int k = 898;
^
Type: Posts; User: Florian
That throws a warning for me:
$ g++ -Wall -pedantic -O0 -g -std=c++14 main.cpp
main.cpp:3:12: warning: ‘k’ initialized and declared ‘extern’
extern int k = 898;
^
Ui::Notepad and ::Notepad are seperate classes.
I believe Ui::Notepad contains the generated UI code, but i am not that familiar with Qt.
I believe you need to have the memory allocated aligned to 32 bytes.
For more information:
VMOVAPD
EDIT:
Hmm, I am not sure anymore. Does not hurt to try?
I think you mean a monospace font. Like this:
This is a monospace font.
CMake has support for MinGW. And besides Codeblocks, there is also Netbeans/Eclipse.
nvm did not read
Not with standard C(++).
What have you done so far?
The same way as you initialize x in class A.
B::B() : a(5)
I believe tab size is dependent on the file editor with which you are reading the file. There is no system wide tab size.
Thank you both for your replies!
phantomotap, clearly i need read up a bit on template specialization. Despite that, i understand your suggestions and your example, i was hoping to prevent using...
Thanks, it works! Atleast with the examples it works on both compilers.
But, it does not work with the real thing, and i am probably holding back things important to the problem.
So here is the...
Hello,
I am writing a C++ (using C++11/0x) wrapper for Lua 5.2.
When i saw the following Lua API functions, i thought i had a genius way of exposing them to C++:
int lua_toboolean(int...
That is entirely implementation defined. Tell us more about what operating system you are using, and if you know what it means, what kind of terminal emulator.
Compiled with G++ 4.6:
g++ -std=c++0x -Wall -pedantic main.cpp -o main -g
Your programs ends with a segmentation fault:
See this bit of code:
std::string filename("long\path\to\file.txt");
const char* filename_str = filename.c_str();
fstream file(filename_str);
To access a non-default constructor of a class member:
class test {
private:
std::string name;
public
test();
~test();
-snip-
Nevermind.
From the documentation:
Using the macro JS_ARGV_CALLEE i can obtain a JSFunction* in the callback, which points to the same object returned by:
JSFunction * JS_DefineFunction(JSContext...
Hello,
I am using GCC 4.5 (on Linux) with Boost 1.43.0 and C++0X to create a C++0X "worthy" wrapper library for the SpiderMonkey Java/ECMAscript engine.
However, i am running in to a problem.
...
Qt has Qt Designer, it allows you create a GUI using drag and drop. Search with Google for screenshots and more information about Qt.
Specifying void in a functions argument list does not make it argument for that function, it only says that the function takes no arguments. Thats all.
Well... i... uhm...
*reasserts himself*
Thank you Salem, i will examine my code closer from now on, and no longer bother the good people of this board with my shameful mistake.
So i managed to create a much smaller program with threads and works just fine.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>...