It's just a struct  #define _CRT_SECURE_NO_WARNINGS //def   #include&lt;iostream&gt; #include&lt;conio.h&gt;   using namespace std;   my struct  struct muncitor   {     int id;     char *nume;     float salariu;     char init_t;     bool fct_conducere;     int nr_calificativ;     int *calificativ; };   reading struct content  void read(muncitor m)  {      cout &lt;&lt; "Id: ";     cin &gt;&gt; m.id;      cout &lt;&lt; "numele: ";     char aux[20];     cin &gt;&gt; aux;     m.nume = new char[strlen(aux) + 1];     strcpy(m.nume, aux);      cout &lt;&lt; "salariul: ";     cin &gt;&gt; m.salariu;      cout &lt;&lt; "initiala: ";     cin &gt;&gt; m.init_t;      cout &lt;&lt; "functie: ";     cin &gt;&gt; m.fct_conducere;      cout &lt;&lt; "nr calificative: ";     cin &gt;&gt; m.nr_calificativ;     cout &lt;&lt; m.nr_calificativ &lt;&lt; " ";      m.calificativ = new int[m.nr_calificativ]; here is the problem      for (int i = 0; i &lt; m.nr_calificativ; i++)     {         cout &lt;&lt; "calificativul: ";         cin &gt;&gt; m.calificativ[i];     }  }  void main() {      muncitor m;      m.id = 1;     m.salariu = 1250;      read(m); //call void     _getch; }   Can't figure it out. The debug stops at m.calificativ = new int[m.nr_calificativ]; What is wrong? Please help me. A test is coming soon. I can't find a solution, so I'm asking here.
What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?
Can one create a video from sequence of meshes that you already have using blender? If I have a sequence of .obj (or any other readable format) files created from my own simulation code (say cloth simulation), can I use the rendering capabilities of blender to generate a video?   Is there a way to set the material properties for frame 1 and use the same or rest of the frames while the corresponding meshes are imported afresh from that ones I provide? Expressing an opinion: to me or for me? How can I make sure that my on-screen colors are consistent? What is the difference between using a colon and a semi-colon to join two sentences? I've seen a few questions on this site relating to semi-colons, which I believe I correctly understand, but what I'm not as clear about is colons.  For example:     The man ate the apple; it tasted good.   Is this not correctly also written as:     The man ate the apple: it tasted good.   In this case, what is the difference between the two sentences? Should I always use a comma before a quote? "Nobody want to go there," or "nobody wants to go there"? In English, the number 0 is treated as plural. It is then:   0 seconds 1 second    1.2 seconds   2 seconds     Shouldn't it be "nobody want to go there," instead of "nobody wants to go there"?  I also saw in TOEFL that "any __" should be used with a singular.  But I see it very common that it is a plural also.  Why is that?  (updated: example, "we don't have any apples any more" vs "If you get any apple, please let me know.") How to stop event propagation with inline onclick attribute? Consider the following:  &lt;div onclick="alert('you clicked the header')" class="header"&gt;   &lt;span onclick="alert('you clicked inside the header');"&gt;something inside the header&lt;/span&gt; &lt;/div&gt;   How can I make it so that when the user clicks the span, it does not fire the div's click event? I have found film reels some with tails of film others not. Is there a way of telling if they have been exposed/used in a camera? Film types are for 35mm and one Kodak Advantix. Obtaining zero-length string from strtok() Silencing "Your disk is almost full" notification After upgrading to macOS Sierra, I'm getting the notification that "Your disk is almost full. Save space by optimizing storage.":    The options appear to be to store my files in iCloud, automatically delete files, or manually delete files:    My problem/irritation is that I have 80GB free of my 440GB volume.  The question: is there a way to silence this notification in a (semi-)permanent fashion, or to change the threshold it uses for the notification? The SPListItem being updated was not retrieved with all taxonomy fields Xorg: High CPU Usage (94%) on Moving Mouse (Ubuntu 18.04) whenever I move my mouse enough it causes high cpu usage. Screenshot provided is on a fresh X session.    This also causes some frequent freeze ups if I'm running some other programs e.g gaming.  [1075299.085] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077813.434] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.079] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.246] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.682] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (EE) client bug: timer event4 debounce: offset negative (-18ms) [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: WARNING: log rate limit exceeded (5 msgs per 30000ms). Discarding future messages. [1120008.128] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost.   Is there any way for the CPU usage not to be this high?  EDIT:  I tried with other mice. The CPU usage appears to increase with the Mouse DPI or to be exact, a generic mouse will cause a CPU usage spike, but not as much as a gaming mouse.  I also checked if I have hardware acceleration enabled.  $ glxinfo | grep "direct rendering" direct rendering: Yes   EDIT 2:  CPU is an AMD FX-6350  GPU is AMD RX Vega 56 Why am I allowed to turn my focusing ring beyond infinity? Vertical Text in Wpf TextBlock Is it possible to display the text in a TextBlock vertically so that all letters are stacked upon each other (not rotated with LayoutTransform)? What is the best way to implement constants in Java? I've seen examples like this:   public class MaxSeconds {    public static final int MAX_SECONDS = 25; }   and supposed that I could have a Constants class to wrap constants in, declaring them static final. I know practically no Java at all and am wondering if this is the best way to create constants. Prove that $|\log(1 + x^2) - \log(1 + y^2)| \le |x-y|$ I need to show that $ \forall x,y \in \mathbb R, |\log(1 + x^2) - \log(1 + y^2)| \le |x-y|$  I tried using concavity of log function: $\log(1 + x^2) - \log(1 + y^2)=\log(\frac{1 + x^2}{1 + y^2})=\log(\frac{x^2y^2}{(1 + y^2)y^2}+\frac{1}{1 + y^2}) \ge \frac{2(\log(x)-\log(y))}{1+y^2}$  Also the middle value theorem: $0&lt;\frac{\log(1 + x^2) - \log(1 + y^2)}{x^2-y^2} &lt;1$  But both attempts has not led too far. How to initialize HashSet values by construction? How can I say this? Does ClamAV Scan Windows virus? I'm new to Ubuntu.  I'm now setting up an OwnCloud server which supports ClamAV file scan.  Since most of the users connected to the server uses Windows OS, can ClamAV scan for Windows virus?  I also did some research that such as BitDefender. It clams that it scans real time, if someone upload files to the server, will BitDefender scan the file even OwnCloud doesn't support?  By the way, I heard that if I update the system frequently, I don't have to install any antivirus that scan for Linux virus. Is that right? Simple question:     My apples and orange are wrong   or     My apples and orange is wrong   I am not a native English speaker, and I am having some trouble choosing between plural are or singular is for that kind of example.