Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was doing debugging for homework. I had to type make and ./a2 billions of times just to see my stuff drawn on the screen.
I use vim and a shell
I m sure there must be a way(script) to just press one button and do "make" and ./a2 at the same time
What is this command?
What cool hack/trick do you use to avoid some repetitive typing?
add a "test" pseudo-target to your makefile:
.PHONY: test # instruct make to always "build" the following target
test: ./a2
./a2
Now you can simply run make test in command line. If you copy the lines above, make sure that the recepy line starts with a tab character.
If you are using shell how about
make && ./a2
You can always just write a script to deploy. Or, why not use an IDE? Eclipse for C++ is free.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
I am making a simple program that allows the user to create a tune. When I debug a certain part of the program with breakpoints, CLion fails to hit the breakpoints. Like this:
why are my breakpoints crossed out in CLion? What can I do to fix it?
Here is my CMake file:
I have tried running the debugger, expecting the breakpoints to be hit, and the breakpoints are not being hit.
my question is -1. so lets make my question more clear. In CLion, when you click on the left column while debugging, you can set a breakpoint. it shows as a red dot. This works for me. When I run my program however, CLion replaces my red dots (breakpoints) with white circles with a line through it (as in the screenshot shown). I want to know:
What do the circles with the line through it mean?
Why does CLion replace my breakpoints with circles with a line through them?
How can I get rid of the circles with the line through them?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to configure OpenFramework IDE in my codeblock. I want to build an app which prints the line on screen.
If the only thing you want is to just print a line of text you can use std::cout that prints to basic output onto your console window when the application runs. This is the most basic and easiest way to solve this.
If need to do something more complex than that, like program with GUI instead of console app, I would suggest you to use something other than OpenFrameworks, like f.e. Qt, that has a support for things like this. OpenFrameworks has the capability of doing all that, it just isn't it's main goal. You can download various addons that implement things like UI elemenets, but they are usually pretty simple.
Edit: I've just realized that by line you probably didn't mean a line of text...
Well, OpenFrameworks has no longer an Code Blocks support, you can still though download an older version from http://openframeworks.cc/download/older/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hi Guys I was writing a web application which requires me to compile and execute code from within a browser. I am a little clueless about it though I read the following links to see how I can go about it.
http://www.quora.com/Interviewstreet/How-can-I-build-a-compiler-like-the-one-on-InterviewStreet-from-scratch
http://norvig.com/lispy.html
developer.hackerearth.com
I am planning to write it for several languages namely C/C++/java/python/Ruby
Any pointers would be helpful
You can just take the code and send it to server server will compile and execute the code and send back to the browser.
If you don't have much time.
If you have much time then you can build your own compiler like one you want and integrate it with you'r web application. like w3school and ideone.
or pass it to local host compiler it will execute and return the result to the browser.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm using now the build-in plugin for Code Coverage in IntelliJ. But I need more detailed information about my unit tests. How can I get some branch test statistic in this IDE ?
As far as I know, there's nothing comparable to how sonar branch testing works in IntelliJ out of the box.
For example if a line of code has multiple execution paths, IntelliJ will mark it green if just one of the paths is executed.
In contrast, sonar will tell you that (for example) 1 of 3 possible paths were executed.
Your best bet is to run sonar locally or on a server and use sonar a plugin, for which I see 2 options that seem to be fairly up to date:
http://plugins.jetbrains.com/plugin/7168?pr=idea
http://plugins.jetbrains.com/plugin/7238?pr=idea
Good luck.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How would I go about coding a new Windows Vista Shell?
Everything you need to do as shell has never been documented, so there are some issues with file change notifications etc. The basics are:
SystemParametersInfo(SPI_SETMINIMIZEDMETRICS,...MINIMIZEDMETRICS) with (undocumented?) flag 8
Register as the shell (SetShellWindow,SetProgmanWindow,ShellDDEInit,RegisterShellHook etc)
Hide welcome screen by setting a signal ("msgina: ShellReadyEvent" and "ShellDesktopSwitchEvent")
Start registry run key, start menu\startup and ShellServiceObjects
Set registry Explorer\SessionInfo
The good thing is, you are not the first to write a new shell, if you look around, you can find some obscure required info. Here is a list to get you started:
https://web.archive.org/web/2019/http://www.lsdev.org/doku.php
http://bb4win.cvs.sourceforge.net/bb4win/blackbox/Blackbox.cpp?revision=1.49&view=markup
http://xoblite.net/source/Blackbox.cpp.html
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/
http://www.geoffchappell.com/viewer.htm?doc=studies/windows/shell/explorer/index.htm&tx=36
A good place to start would be investigating how to build a command line parser, something that can tokenize and interpret the inputs. There are tools that can help with this like ANTLR, or you might like to try building your own.
Once you've parsed the inputs you need to decide what actions to take - launching processes, piping between processes, redirecting output - and making those system calls.
If you're just after a more powerful shell rather than interested in building one, give PowerShell a try.