I am an aspiring (at the age of 27) programmer using C++. I have future undertakings including getting a refresher course at a premier University in my country. I am just interested to know in advance how it is to become a programmer. What are the regular routines that you do to start and end your day (shift) as programmers? Is it all about programming from login to logout? Are there other things that you do such as reporting, documenting, taking a cup of coffee, then coding, coding,coding.... Thank you guys in advance. Your answers will mean a lot to …

Member Avatar
Member Avatar
+0 forum 7

Why is it that whenever I use the getline function I get an error during execution. To clarify... I have this code; cout<<"Enter your string: "; getline(cin, myString); //line 1 cout<<"Enter your name: "; getline(cin, myName); //line 2 cout<<"Age: "; cin>>age; //line 3 output: ____________________________ Enter your string: gfgfkjhjkhgg Enter your name: Age: 25 ____________________________ As you can see, when you use the getline function the second time, the extraction stream fails and skips to the next non-String variable. Is that not weird? The result is that you can't enter any succeeding string variables anymore. What is the solution to …

Member Avatar
Member Avatar
+0 forum 7

Hi guys, after learning that MingW is newer than Cygwin, I immediately switched over to MinGW and deleted my Cygwin file. I have added the MinGW directory into my Path Variable and also separately downloaded the MSYS which contains the make.exe program. Everything seems fine... until when I ran the program, it won't accept input. Have a look at my code; int num; cout<<"Enter number: "; cin>>num; _________ run: Enter number: _________ THe cursor(that usually blinks for input) does not blink. When I enter any number it won't accept it. THe only time it will do something is when the …

Member Avatar
Member Avatar
+0 forum 1

Good day. I was surprised to see that there are no members on objects declared as IFSTREAM and OFSTREAM. I have this code; ifstream indata; ofstream outdata; indata.open(""); outdata.open(""); It can't seem to recognize the member "open". Why is that? Any solution?

Member Avatar
Member Avatar
+0 forum 3

Hi guys, I just found out that setw is not recognized in Netbeans C++ with Cygwin even when IOMANIP is included in my program. Is there anything I can do for this? I need to format the output of my program, thanks.

Member Avatar
Member Avatar
+0 forum 3

Hi, my question is very simple. Like the title says; How to declare an object? I have this declaration in my program; Class_name Object_name; and it is giving me an error, saying "Expected a ';' before "Object_name" And this is driving me nuts because putting a ';' before the object name doesn't look like an object declaration. Please help. Thank you all.

Member Avatar
Member Avatar
+0 forum 7

I have an issue with the random generator. I use the code; myNumber = rand() % 100; //for numbers 1 - 100; My problem is, the numbers getting generated have a pattern. Such that the first output is 33, 43, 62, 29, 0, 8 ... Why is this so? I am on Windows 8, Using Netbeans 8, with Cygwin installed. Thanks in advance...

Member Avatar
Member Avatar
+0 forum 5

Hi guys! Just needing a little of your help here. I have been looking for a free IDE where I can program in C++ for the past months now after messing up my MSVS 2013 for Desktop. I found Netbeans to be a nice alternative. But I am having some issues about setting it up. I am not sure (even after watching youtube videos) how to add compilers I thought I needed to download and install Cygwin, which I did. But everytime I try to create a new project, a pop up says "No valid compilers were found..." or something …

Member Avatar
Member Avatar
+0 forum 2

Hi guys, good day! I have a question here pertaining to Visual C++ graphics based. I recently started out incorporating GUI into my C++ programs, in this case, a calculator. I have a textbox named TextBox1, the user enters the numbers and operators inside it, and when the button is clicked, it outputs the result. Here is a sample input; 4+2 when the user clicks the button, it outputs 6 into a label. Problem is, I could not obviously use cin here to get the numbers and store into my variables. Can someone show me a very simple code as …

Member Avatar
Member Avatar
+0 forum 2

Guys I really need your help here. Recenty my laptop has been having limited connection issues which I was able to resolve via some helpful command prompt such as netsh and ipconfig. However, problems never seem to stop. Now I am getting DNS issues. I attribute it to DNS because my laptop can't connect to the Internet without entering a valid IP address of the website. It is such a pain to remember IP addresses when there is actually a server that should be doing the job. What can I do? specs: browser: IE OS: WINDOWS 8.1 connected to a …

Member Avatar
Member Avatar
+0 forum 2

My main issue here actually is Visual Studio installer (just could not find a specific category above). So here is my poblem. Visual Studio won't progress installing. Once it reaches the Visual Studio C++ Runtime version (and some numbers), it does not progress any further. I even tried leaving my laptop overnight and when I woke up it was still on that same screen. So that should conclude it that the problem is not on my internet speed since if it were slow, at least for an overnight download, it should have moved the progress bar a little bit. Something …

Member Avatar
Member Avatar
+0 forum 2

My computer keeps popping this message everytime I turn on my computer or when I install downloaded programs. Can somebody tell me what this file is? What it does? Where to get one? and Where to save it? Please.. Thanks.

Member Avatar
Member Avatar
+0 forum 2

I just downloaded WAMP 64 bit. Successfully installed. Everything went fine. Problem is, I don't know where to go. Where do I put my codes? Online resources I have read says just create a directory in the root folder or something. Does that mean create a folder in the "www" folder??? I did that. And yes, it created a folder link in the localhost page. But when I clicked that link, it displays nothing. Can somebody shed some light here?

Member Avatar
Member Avatar
+0 forum 6

Hi guys, I just thought of starting PHP as my web scripting language but I don't know which applications I should be downloading. The online resource that I was reviewing says I need to install; PHP Web Server MySQL Can somebody tell me where to get these stuff? (all those three) Thanks.

Member Avatar
Member Avatar
+0 forum 4

Guys is there any other solution (other than reinstalling my entire Visual Studio) to this component loading problem that I am having. I have just finished reading my C++ book and I am getting ready to start graphics-based C++ programming when I run into this problem. This is the message that pops up whenever I try to add components (i.e., button, textbox); "Failed to create component button could not resolve mscorlib for target framework.Net framework version 4.0" or something like that. Thanks in advance.

Member Avatar
+0 forum 0

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is as follows; Adam Larson 89 90 This data is saved in a text file manually created with Notepad. Furthermore, I also want to add the average of 89 and 90 into the outfile target file however, it doesn't do it. it does nothing at all. I also observed that there …

Member Avatar
Member Avatar
+0 forum 4

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is as follows; Adam Larson 89 90 This data is saved in a text file manually created with Notepad. Furthermore, I also want to add the average of 89 and 90 into the outfile target file however, it doesn't do it. it does nothing at all. I also observed that there …

Member Avatar
Member Avatar
+0 forum 3

I have this AVG Tuneup 2014 installed days ago, expired free trial and of course, like many other software, will ask you to buy the pro version. I would love to buy the pro version but I just do not have a credit card yet (common in my country). So I tried to uninstall this, BUT, after clikcing the Uninstall button in Control Panel, pops up a message telling you the things it will cost your computer due to the uninstallation, gives you two options YES to uninstall, NO otherwise. CLick Yes and it won't do anything, Click NO, and …

Member Avatar
Member Avatar
+0 forum 2

Hi I am working on a simple C++.Net project which will allow me to run another program (e.g., I. Ex., Word etc.). However, I can't seem to find any working codes online. Here are the codes I have found so far; ShellExecute(GetDesktopWindow(), "open", "c:\myTestFolder\myfile.exe", NULL, NULL, SW_SHOWNORMAL); requires the inclusion of the header Windows.h The error that I get says "Argument of type Const Char is not compatible with parameter type LPCWSTR ???? System("iexplore.exe); This is the code that I thought would accomplish this at first but also did not work. Error says "Not recognized as an internal or external …

Member Avatar
Member Avatar
+0 forum 2

*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says identifier func_compare not found. It seems to me that my compiler does not know that it was actually a user-defined function. I am also suspecting that my IDK is missing some components??? Here is my code; __________________________________________________________________ #include <iostream> using namespace std; int main(){ int num1, num2; cout << "Enter …

Member Avatar
Member Avatar
+0 forum 2

Error : Object referrence not set to an instance of an object Situation; I have an array declared publicly (i.e. outside any events) as Public Shared array_shuffle() As Integer What I want to do is to be able to specify the length and elements of this array from inside events such as click event, however I am getting the error (specified above). The code that is triggering the error is this line; array_shuffle(0) = 0 I think that the '0' inside the parenthesis is the culprit here but I am not quite sure. Please let me know if you have …

Member Avatar
Member Avatar
+0 forum 3

here is my code, it is very simple Me.Validate() Me.TableBindingSource.EndEdit() Me.TableTableAdapter.Update(Me.Database1DataSet.Table) MsgBox("Update successful!", MsgBoxStyle.OkOnly, "") Me.TableTableAdapter.Fill(Me.Database1DataSet.Table) Actually, I have been programming for a year or two three years ago but I stopped after my laptop was stolen and due to work. But now I I have a new laptop, and upgraded from vb 2008 to 2013. I have been through all these kind of errors before and it is so surprising that I can no longer solve them. Please please help

Member Avatar
Member Avatar
+0 forum 2

The End.