C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
13 views

C++ Editable output using readline [on hold]

Is it possible to output an editable text using readline library, so that the user can modify it? Also, I want to get the text he's writing in realtime before he presses Enter.
0
votes
0answers
7 views

This code keeps giving me a segmentation error when Itry to print reverse of string recursively [on hold]

Im trying to print a string in reverse using recursion but I keep getitng a segemtation core dump error. I dont see the problem I start with a size and add it to an empty string variable starting at ...
-1
votes
0answers
10 views

Execution from OS X terminal returns nothing

I am attempting to configure and then execute a waf file. When I run ./waf configure --mode=release --with-python --with-cpptests --with-examples --with-vamp it does not return an error and it ...
0
votes
0answers
9 views

C++ system echo return value [migrated]

is there any way to system() commands will return value? int abcd = system("echo %random%"); std::cout << abcd << std::endl; How to do, system() commands will return some value?
1
vote
0answers
9 views

How to disable antialiasing in Eclipse?

My settings are OSX Mountain Lion java version "1.7.0_17" eclipse cpp 4.4.1 Thunderbolt display I have tried running in the terminal: defaults write org.eclipse.eclipse AppleAntiAliasingThreshold ...
0
votes
1answer
69 views

Extract multiple strings between two words in a file

I have a text file made this way: hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg ...
0
votes
0answers
5 views

Netbeans didn't catch error for function that should have return something, not having a return statment [migrated]

I was surprised to find the compiler gave no warnings or errors when compiling source code containing a function that specified a return value in its signature but didn't actually return anything ...
0
votes
1answer
23 views

Running an executable on a Windows volume under Ubuntu

I have a dual-boot Windows/Ubuntu system. I have a executable file generated from a c++ file in a folder on a Windows volume (which is accessible on Ubuntu) and would like to run it on Ubuntu. The ...
0
votes
1answer
40 views

Wrong IP address returned from domain registered at No-IP

I want to connect a client and a server through the internet (using C++ and winsock2), so I registered a domain name for the server on No-IP, so that the client could determine it's IP address without ...
-1
votes
1answer
145 views

There is no disk in the drive. Please insert a disk into drive E:

I have an issue with this message that appears every time I try to compile any kind of Code in C++ language. I'm really tired trying to find a solution and its so annoying cause every time I want to ...
0
votes
1answer
124 views

Installing vim syntax highlighting for C++11\14

I have a fresh installation of Manjaro linux 0.8.10 with vim 7.4 installed, and I'm unsuccessfully trying to enable syntax highlighting for c++11/14 using the script by Michael Small (which I've been ...
3
votes
0answers
40 views

Heterogeneous (cpu+gpu) System Architecture using C++ [closed]

I want to develop an image processing system on a computer that has both multi-core CPU and GPU (I don't have such a computer yet, so this is part of the question too - what cpu and gpu models are ...
0
votes
1answer
121 views

Windows : How to protect process from getting killed in C/C++ [closed]

Is there any "GODLY" method through which i can protect my process from getting killed either from: 1>Task manager 2>Command prompt -- forcefully kill Things i tried : 1. Hooking Open Process and ...
0
votes
1answer
109 views

Port forwarding and C++ Winsock Client-Server applications

As the title says, I'm creating a TCP client and a server program in C++. My question is, when running the client and server on two separate machines that go through a different firewalled router over ...
2
votes
0answers
28 views

C/C++ functions tag for Geany [closed]

I want to generate the C/C++ functions tag for Geany like those that included in the archive, how I can do that. I want to get auto completion when entering a functions name. Thanks in advance for any ...
-2
votes
2answers
46 views

GNU GCC compiler fails to compile when path contains spaces (C++)

I installed code::blocks and GNU GCC + SDK Stream (Open GL) exactly as described in tutorial "Playing with OpenCL: Gaussian Blurring" by Lefteris. Why I cannot compile using spaces in path to library ...
0
votes
1answer
65 views

Compile C++ 11 on Damn Small Linux?

DSL does not include any compiler (aside from a very basic ANSI C compiler), so I need to install g++ on it. Unfortunately the only gcc/g++ I could find for DSL linux is a version from 2006 (here). ...
0
votes
1answer
73 views

Visual Studio C++ 2010 Express - the system can not find the file specified

I installed Visual Studio on Windows XP, I created project and imported files in it. E.g. when I click on the header file which I imported in the "Header Files" then the document is not opened in the ...
0
votes
1answer
57 views

How do I un-indent code?

I occasionally realise that I need to remove one level of indentation when coding (such as moving code out of loop). The problem is I end up with a bunch of lines all indented more than I want it to ...
-2
votes
2answers
63 views

Why does a c++ code run significantly longer on one computer than another? [closed]

The code is exactly the same -- I copied it from one computer to another. The code is compiled with g++-4 (4.9.1) obtained from fink on OSX on both machines, and is not run in parallel. Compiler ...
0
votes
1answer
123 views

Beaglebone Black running Debian, does device tree overlay act as an api?

This maybe more of a Linux specific question but... I've been reading many tutorials and it seems that you can use JavaScript, Python, and C++ to write code for the Beaglebone Black(BBB). It looks ...
1
vote
1answer
54 views

Why this C++ program is recognised as a Trojan? [closed]

I was writing some code for online judge, #include <iostream> using namespace std; int main() { int t, ds, dt, d; double x; cin>>t; while(t) { ...
1
vote
2answers
429 views

EOF ASCII/HEX code in text files

As far as know in the end of all files, specially text files, there is a Hex code for EOF or NULL character. And when we want to write a program and read the contents of a text file, we send the read ...
0
votes
0answers
24 views

vim indentation gets screwed up

I work on a lot of C++ files and it seems that after a while my indentation gets screwed up. I have a function like so. I have :set cindent set. Vim is putting the curly brace under the return ...
0
votes
1answer
91 views

install in /usr/local/ using apt-get

Is there way to specifically install in path /usr/local using apt-get ? I am using Linux Mint 16 and I want to install some libraries in this path. All of my installed libraries are installed in /usr/ ...
1
vote
1answer
129 views

Install C++ compiler on old MS-DOS computer with floppies

I have an old MS-DOS computer that I am experimenting with. The computer has an AMD 80386 processor, 1664 KB of RAM, a 50 MB hard drive, and two floppy disk drives: one 3 1/2 inch, the other 5 1/4 ...
0
votes
1answer
145 views

i7 4770k or i7 4930k - Which for faster compile times? [closed]

I've looked up comparisons and found that single core performance seems to be better on i7 4770k, but has less cores that the i7 4930k. Would VS take advantage of extra cores when compiling, or would ...
0
votes
1answer
49 views

Microsoft Visual Studio [closed]

I have Microsoft Visual stuido 2010 x86 and im trying to open this .snl file but it won't open but when i open it with notepad ++ it shows this.please help me or could someone please tell me another ...
0
votes
1answer
253 views

How to use MSBuild.rsp or otherwise specify default Visual Studio MSBuild.exe command line switches

I would like MSBuild.exe to always use the /MP option so that projects are always built with multiple cores. I tried adding /MP to the last line of my MSBuild.rsp (in the same directory as the ...
0
votes
1answer
79 views

Slackware ./configure error

I'm new to slackware. i'm trying to install freetds on my slackware 14.0 but i get this error when i run ./configure config.log say: gcc: error: unrecognized command line option '-V' gcc : fatal ...
0
votes
1answer
236 views

How to customize Visual Studio C/C++ indentation/formatting beyond None/Block/Smart (Like Eclipse Can)

Is there a way to customize Visual Studio indentation/formatting in detail? There seems to be just three options: None, Block, Smart (in Options > Text Editor > C/C++ > Tabs). There are a couple ...
-1
votes
4answers
192 views

Do different compilers produce different machine code file formats for Windows? [closed]

Under Windows, if someone compiled a C++ source code with gcc, would the output file formats and extensions be different from other C++ compilers? And are the output files extensions and formats of ...
0
votes
1answer
20 views

Lost fform design view in MS express 2010

Working on a windows forms project in MS C++ express 2010. It builds fully with no errors, runs correctly as a forms based application but in the solution explorer the icon for form1.h shows it as a ...
0
votes
0answers
129 views

Running exe generated with GCC using cygwin without admin rights

So this awesome company that I work for has a picky IT department that doesn't allow developers to have admin rights. What is the best way to go about running a .exe generated from Cygwin GCC without ...
0
votes
2answers
78 views

Number of lines in a video file

Okay guys copying and pasting video file with hex editor or with notepad++ hex editor plugin works totally fine.Now,i want to find the number of lines in a video file- first)I opened the video file ...
0
votes
2answers
199 views

Run same executable multiple times in parallel

I have an executable (e.g. test.exe) that is compiled c++/cli that can support multi threads. How can I run that same executable multiple times in parallel? The easiest way is to open several cmd ...
0
votes
1answer
237 views

Unable to install linux tools in Eclipse

I am trying to install linux tools in my Eclipse (I want to use valgrind and some other tools that are inside the package). The problem is that while trying to install them I get the following error: ...
0
votes
2answers
75 views

How to choose which project is built on F5 in Visual Studio?

I have a solution file for IntraFace, which contains two projects, namely IntraFaceTracker and IntraFaceDetector (see the image). By default, IntraFaceTracker is selected, you can see its name is ...
0
votes
0answers
18 views

Eclipse search results have no labels

I'm running Eclipse "Version: Indigo Release Build id: 20110615-0604" Up until recently using "search" in my workspace worked fine. However, now when I do it the search tab has been stripped of all ...
-1
votes
1answer
57 views

c++ redistributable error

I'm trying to install Itunes on a Windows 7 64 bit I've seen similar questions on the web, most from 2010, I need new solutions, I saw many solutions, I need a definitive one, I can't try this and ...
0
votes
3answers
1k views

How do I escape spaces in command line in Windows?

I have a similar problem like this How do I escape spaces in command line in Windows without using quotation marks? But it seems I can't use the carets C:\>C:\Program^ Files^ (x86)\Adobe\Reader^ ...
0
votes
0answers
99 views

Does cin work in XCode 5?

I'm just trying to get a simple input via command-line with cin, but there's no where to type the input. Is this possible in XCode 5?
-1
votes
1answer
144 views

C/C++ programs hang in Windows 7 console

I've installed Windows 7 Home Premium. It's working fine, except one major problem. When I run any C or C++ program in the console, using any software like Dev-C++, Code::Blocks or Visual Studio, it ...
0
votes
0answers
105 views

File timestamps inconsistently update on network drive in Windows 7

This problem has been bugging me for a couple years now, and I have not been able to find a good solution. I develop code in both C++ and VB6. When I compile my C++ code in Visual Studio 2005, the ...
-1
votes
1answer
127 views

Fastest Database Software [closed]

I would like to make my own search engine. I would like to know the best way to go about this. I just have some questions ... Should I use Facebook's HipHop PHP to C++ compiler for speed? What would ...
0
votes
3answers
1k views

Do I need both x64 and x86 versions of the C++ redist

If I have both the x64 and the x86 version of a Microsoft C++ Redist package, can I uninstall the x86 version? If I did uninstall the x86 version, would the x64 version cover the dependencies on the ...
0
votes
0answers
46 views

Building php module on linux - lpsolve55

I'm trying to install a php model called lpsolve. I installed it on OS, now trying to make a use of it for php. I installed them as explained here: http://jeyroz.tumblr.com/post/605709794/lpsolve-php ...
1
vote
1answer
62 views

Error compiling unittest++

I'm installing unittest++ on MacOS maverick, and come accross this compiling error: src/tests/TestXmlTestReporter.cpp src/tests/TestCurrentTest.cpp Linking TestUnitTest++... Running unit tests... ...
2
votes
1answer
64 views

How can I measure speedups on my application when performance varies on my machine?

I work on a monolithic program running on Linux that's very memory intensive. We're having trouble tweaking the speed of this program on most of our large memory machines because the performance is ...
2
votes
3answers
10k views

Visual Studio 2013 MSVCR110d.dll is Missing

I'm not really sure if this belongs on SuperUser or StackOverflow, but it doesn't seem to be a coding problem so I'm gonna run with this. I've started working on a C++ game using Visual Studio 2013 ...