- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
35 Posted Topics
I recently got blue screened about four times. Some time later, i noticed that the nVidia GPU(630M), which is used with Optimus along with the onboard graphics, isn't being detected by the computer. I just want to know if there is some way to maybe make sure that the GPU … | |
I have a program that's supposed to interact with a databse but I keep getting a NullPOinterException. I know it means that something is set to null. But how to change them from null is my main problem import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; /* * To change … | |
I have to make a small paint program using the GUI. I need to know how to use the combo box. I know I have to make an array with the list of colors but I don't know how to add it to an action listener and choose the items. … | |
Re: What exactly is the difference between a System Programmer and a Software Engineer? I have seen the two terms being used interchangeably. | |
This program is supposed to output some shapes using the GUI. I can't get it to actually output the shapes, but the panel shows up fine. Could someone show me what I am doing wrong? This one does the Panel and all that other stuff. [CODE]package pregui; import java.awt.Color; import … | |
I am just learning Java and am trying to use variables from objects that I passed into another method. Can someone help me here [CODE] package data; public class Data { private int day, month, year; public Data(int day, int month, int year) { this.day = day; this.month = month; … | |
Re: First step: plan it out. | |
Re: I am 18, still studying , learning in C++ and I already know C. I hate SQL, maybe becuase I just don't get why its so different from other languages. I decided to do programming in school because I could do IT without knowing material beforehand. I didn't have a … | |
Re: Code::Blocks is a good IDE. it's free, works on all Operating Sytems, much simpler than Microsoft's alternative (where I still can't understand why they made the 'build' and 'run' options so difficult to find) and you can make single files instead of having an entire project for every single instance … | |
Re: Since he is a begginer, I would suppose he means once it is over ten with the m being a typo. Put 'Manta' as an enum. I think begginers know of that. That would allow the variable to be a predefined value only. you could then write a separate function … | |
Here is the class definition that I have so far: [CODE]#ifndef SAVINGACCOUNT_H #define SAVINGACCOUNT_H #include<iostream> #include<string> class SavingAccount { public: /** Default constructor */ SavingAccount(); /** Default destructor */ ~SavingAccount(); string getfirstName() const; string getlastName() const; static double modifyInterestRate();//static method declaration static double calculateMonthlyInterst(double,double); void setannualInterestRate(double); double getannualInterestRate() const; private: … | |
Re: This seems a bit vague. If you're getting problems to solve in a limited time in a test or something, then you can go over theoretical stuff, like syntax | |
Can someone please explain these functions when creating a class please. Searching hasn't helped much. I need to know how they are used and examples or links to examples would be helpful. Any help is appreciated. | |
I got this question: Create a SavingAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the savers. Each member of the class contains private data members: firstName, lastName, and savingsBalance to indicate the amount the saver currently has on deposit. Provide member … | |
Re: I really didn't know what Angry Birds was till about a week ago...after i downloaded and ran the free version for about two levels, i sat there for about five minutes. O.O what the hell do people see in this game. Congratulations to the genius who invented this cyber-crack. You … ![]() | |
Well I have made separate programs for testing and debugging purposes and now I want to put them together. Is it possible to use one .cpp as some sort of a header file, and call it later on? I saw it done before but I think it was a makefile(which … | |
The line "getline(cin,get_password);" doesn't repeat if the user chooses to re-enter the password. It pauses for a short while when it should run that line, refuses to accept any data, and then continues as normal. [CODE]#include<iostream> #include<string> #include<windows.h> using namespace std; int main() { string get_password; string password="abc4"; char repeat1; … | |
Re: I don't know how this reputation thig works either. It doesn't seem to mean much to people other than those who have thousands of posts. | |
Re: I'm a PC gamer, seeing as I'm not in America and the price for thise consoles would bankrupt a guy after buying just one game. I used to buy PC games, but then it just wasn't worth it. I like FPS games too, but they are all the same, only … | |
I want to run Ubuntu 10.10 on my laptop preloaded with Win 7. I already made a 20 GB partition, and I understand most about booting it up, except for the loader concept. Can someone explain that to me. | |
Re: From experience with trying it, it doesn't work if you have more than one main(). main() is the leader of it all. Don't you think you would be able to do without a main() if you could have more than one?? | |
I need a program for making flowcharts. I used to use OpenOffice Draw, but I'm looking for something else right now, preferably a stand-alone program or one that comes with little unrelated functions. It would be better if free ones are separated from paid ones. | |
How do I create a pointer for a struct. This is an example [CODE]typedef struct worker_t { char name[25]; job_t title; double payrate; double hours; }; int input(worker_t); [/CODE] I tried it here [CODE]worker_t employee[10]; worker_t* ptr_worker; *ptr_worker = &employee; input(worker_t employee[10]); [/CODE] I know how to use pointers on … | |
Re: Check your function declaration. put only the data type [CODE]double CalcResults(double, double, double, double);[/CODE] You didn't declare that WriteResults would be passing any parameters either. Declare it similar to CalcResults that I have there. | |
Re: Just a quick question: What's the variable that you are returning? You should probably close this thread since you got a solution. | |
Well first of all. I am pursuing my associates in CIS, and wanted to continue by getting a bachelors in CIS. The university I am able to go to(UWI*) does't offer that, instead it has MIS and CS. I have done one year of CS(CAPE*) before, and MIS does too … | |
Re: try a switch function inside a loop, and g=how about posting the rest of what you have | |
[CODE]typedef struct electro { char name[20]; int access_number; char address[50]; float balance_due; }; electro account[10]; electro account[0].balance_due=$ 120.52; electro account[0].address[50]={Cane Gardens};[/CODE] Can someone tell em how to correct this piece of code. I'm using Codeblocks and it says it " expected an initializer before '.' " in the two last … | |
Re: C is indeed a general use language. It can be used to write most things. | |
Re: You could try initializing all variables to zero like the above post. | |
Re: [QUOTE=WaltP;1456401]Not true. By setting a value, (for example- a loop counter before a while loop) [I]is[/I] initializing the value.[/QUOTE] When you do that, aren't you declaring that variable?? That makes the guy you quoted correct. | |
Re: Yes, %c should be used instead of %s. This isn't technically a C-string, just a simple array. A string would require 7 spaces, to accommodate for the NULL value at the end. | |
Well I got into PC gaming after I got a laptop and the one I have is the Intel Graphics Media Accelerator HD with up to 1754 MB DVMT. What I want to know now is what graphics card would that be equivalent to? It has 1754 DVMT which I … | |
[ICODE]int main() { int count,rec_temp[]); count=read_temps(int temps[]); rec_temps=hot_days(int count,int temps[]); return 0; } [/ICODE] Can someone identify the error in this code please. I'm using Codeblocks; it says that it "expected a primary-expression bofre "int" " It says the error occurs once in the first function call, and twice in … |
The End.