Learning C++ with Programming Principles and Practice Using c++, I done this   #include "../../../std_lib_facilities.h" using namespace std;   int main() {     cout &lt;&lt; "Hello programming!\n";     return 0; }   First I got warning with "PDB files not found" after debugging. Then I solved that, and getting this,  'FLTK testing.exe' (Win32): Loaded 'C:\Users\Chai\Documents\Visual Studio 2013\Projects\FLTK testing\Debug\FLTK testing.exe'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120.dll'. Symbols loaded. 'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Symbols loaded. The program '[7320] FLTK testing.exe' has exited with code 0 (0x0).   But I'm still not getting the output showing "Hello programming!". I have tried cin.get() too but no result. Any advice??
I'm starting out in Visual C++ and I'd like to know how to keep the console window.  For instance this would be a typical "hello world" application:   int _tmain(int argc, _TCHAR* argv[]) {     cout &lt;&lt; "Hello World";     return 0; }   What's the line I'm missing?
Combining |- and !.5! in TikZ How do I combine the !.5! operator with the -| operator?  I want a node that has x-coordinate equal to the average of x coordinates of nodes A and B, and a y-coordinate equal to the average the y coordinates of nodes C and D. Why do I get blurry pictures when I take a lens attachment off? Prove that $V = V_1 \oplus V_2$ in the following Let $V$ be a vector space over $\mathbb{C}$ such that $T^2=1_V$. Define  $V_1 = \left\{v\in V |\ T(v) = v \right\}$,  $\ V_2 = \left\{v\in V |\ T(v) = -v\right\}$  prove that $V = V_1 \oplus V_2$  For start, I've shown that $V_1\ ,V2$ are subspace of $V$. However, I'm stuck trying to show that $\forall \ v\in V,\ v = v_1 + v_2$ where $v_1 \in V1, v_2 \in V_2$.  I know at some point I have to make use of  $T^2=1_V$, but cant figure out how. Any help or insight is deeply appreciated. How delete an application that is bundled with macOS? Backstory:   I am running macOS Sierra and use TextEdit a lot. The problem is that I hate the Versions save schema that causes the universal Save As shortcut of CmdShiftS to instead create a copy of the document. I also hate how Auto-Save makes permanent changes to documents I don't want to modify when I'm tentatively modifying a work-in-progress. Since the introduction of these nuisance features in Lion I have always backed up and then replaced TextEdit.app with the legacy 1.6 version from Snow Leopard.  The problem:  Today when I tried to delete TextEdit.app from my Applications folder using this Terminal command  sudo rm -rf /Applications/TextEdit.app   I got this error  rm: TextEdit.app: Operation not permitted   I was surprised to find that I can't kill it, even with sudo.  How can I actually get rid of an application that is bundled with macOS?  What I've tried so far:  I followed the instructions in , but it didn't work. I also read , which almost accomplishes the same solution by means of disabling Versions and Auto-Save, but then I don't get the benefit of legacy TextEdit's temporary backup saving feature. See the part in the answer stating "This effectively disables the old-style, pre-Lion autosaving completely".   So I think deleting the newer TextEdit v1.12 and replacing it with the legacy v1.6 is still the best option, however I can't get my system to delete it. Any help appreciated. My machine is currently running Windows 7. I have 2 partitions: OS (C:) and DATA (D:). I intend to do a native Ubuntu 14.04 install. Assuming I format my Windows OS partition, will I have full access to my D partition in Ubuntu ? XIV pages in page counts? Use a partitioned live usb I have a USB device and i'm trying to create it in a way that it has 2 partitions: one for a live linux disc and the other for document storage.  I created the partitions using gparted and and set a boot flag to the one I want to use as the live disc. Now, I have a usb like this:  Disk /dev/sdc: 14.6 GiB, 15623782400 bytes, 30515200 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc3072e18  Device     Boot   Start      End  Sectors  Size Id Type /dev/sdc1       8439808 30515199 22075392 10.5G 83 Linux /dev/sdc2  *      51200  8439807  8388608    4G  b W95 FAT32   I then used dd to flash an Ubuntu iso to /dev/sdc2  sudo dd if=/dev/shm/ubuntu-17.04-desktop-amd64.iso of=/dev/sdc2 bs=4M   When the disc is flashed onto the usb drive, I try to boot from my laptop and it shows "Operating system not found". When i try to use qemu/kvm, it shows a kernel panic like this:    How would I be able to do this properly? Tweak showlabels/showkeys - wrap the label Can showlabels wrap the label in the margin? A very similar question is , but the solution of @DavidCarlisle does not solve the more general case. Consider the following MWE:  \documentclass{article} \begin{document} \begin{figure}[ht]   \centering   \rule{1cm}{1cm}   \caption{default}   \label{fig:a very very very long and detailed label} \end{figure} \end{document}   When adding the package showkeys the output is:    Similar problem occurs with the showlabels package (whether the hack of @DavidCarlisle is used or not):   So, is there a way to fix it? Includegraphics maximum width With \includegraphics I can give the width of the resulting image (which would be scaled).   How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep the smaller image, if the image is larger than X, then the image width should be X.  Using pdflatex/graphicx. How do I get my Mac to boot from an Ubuntu USB key? In Illustrator is there a way to precisely scale to a pivot point or "reference point" that is off the screen? I mean when you want to zoom in somewhere far away from where you set that point and then scale precisely to align something.   Here's :     To scale relative to a different reference point , click where you   want the reference point to be in the document window, move the   pointer away from the reference point, and then drag until the object   is the desired size.   Well, I tried using this click-drag scaling method as well, but the level of precision is too low to be usable. It overshoots or undershoots the guide I'm aiming for.  The Scale tool's pop-up dialog isn't useful either. It only offers percentages. And moving/zooming are disabled while the dialog window is up, meaning I cannot navigate to the guide I need to see.  For these reasons, I need to be zoomed in on the guide, tweaking the measurements from the top Control Panel.  Some images to help illustrate what I mean:    ▲ The circle marks where I would like the center of my scale transformation to be.    ▲ Now zoomed in somewhere else, I am trying to get the black border of this bitmap image to align perfectly with the vector guide by scaling it.    ▲ I nudge the numbers in the Control Panel until the image is perfectly aligned.  One would think all would be perfect, but then I look and my reference point has vanished!   It seems the scaling has been executed relative to one of these limited nine reference point choices  instead of the reference point I specified.  There must be a way to scale precisely to a specific reference point in illustrator. Can somebody please enlighten me? How should ip2long converted IP's be stored in MySQL? I am getting a Too many SOQL queries: 101 error on a trigger when I am trying to deploy another trigger.  I am posting the trigger which is causing the error.  trigger rollupAccountShowings on Account (before insert, before update) {    if (trigger.isinsert) {       for (Account a:Trigger.new){           a.No_of_Viewings__c = 0;        }    } else {      for (account a : [select                   id,                  (select id from pb__Showings__r)                  from account                   where id in:trigger.new LIMIT 1]) {           trigger.newMap.get(a.id).No_of_Viewings__c = a.pb__Showings__r.size();      } }   Can anyone correct me where I have gone wrong and suggest me the changes.  Thanks I have been denied a visa several times in a row. How does one deal with such serial refusals? Pretty much every application I use in full-screen (including Firefox, MacVim and the Terminal) have tabs on the top of the screen.  The problem is, when I move my mouse to reach the tabs I'll often accidentally touch the top of the screen, bringing in the OS menu OVER the tabs:    Is there any way to change this behavior? I'd prefer it if the menu bar would stay hidden when I'm using a full-screen app, even if my mouse does touch the top of the screen. Best way to select a subset of items in a long list I dont need this vertices and/or edge. What is the best way to get rid of them? Code working in jsFiddle but not in browser C99 stdint.h header and MS Visual Studio Best VNC / remote desktop software for assistance Poll on best VNC / remote desktop software for assisting others on Windows/Mac machines from Ubuntu?    I've heard good things about TeamViewer and Fog Creek Copilot, but I'm wondering if the included GNOME Vinaigre VNC client is good enough for this.  To specify, I'm looking for best option based on:   SIMPLEST ease-of-use for client to download/use on their end. See #1. Works cross-platform I am able to control client's mouse and/or keyboard from remote machine.