No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
23 Posted Topics
Re: Hi I'm taking a guess, but i think you are looking to build a 2D array. If that is the case, you will need to read the whole file in order to know how many rows it has, as that will give you the dimenssions of the first column of … | |
Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, … | |
Hi, I'm having problems with line 37 in my Driver class. I know that I get that error because, according to Java, the variable Task, in the Driver, has not been initialized, but I do not see how I'm not initializing it. Thanks [CODE]import java.util.Scanner; import java.io.*; public class Driver … | |
Re: I think that asking what are the cons of OOP is the same as asking which languages you should not use. And everyone know that the best language is the one we know best......everything else will not be as good on our hands unless we take time to learn it.... … | |
Re: i think it'll be more helpful if you can paste the whole code, or at least on what is in the struct tagVariant and how you are passing the values to myfunc() | |
Hi, I put a computer together about a year ago, and I've gone through 4 PSU. Each PSU lasted longer than the previous with the last one lasting about 5 month. Could this be because of the different parts I have put together or just my bad luck of getting … | |
Hi, I'm having some issues with my homework. It is a polymorphism homework. IFrom the console it takes two string (title and author/performer) a char (format for records) and a call number (int). Currently it compiles fine with some warning for strcpy. I have used the same data and sometimes … | |
Hi, I'm working on an overloding operator homework. I'm overloading the + = += << [] && operators to work with objects that contain int arrays that can be set to have index from x to y instead of 0 to x. I'm getting the LNK2010 & LNK1120 errors on … | |
Hi, I need some help figuring out what's wrong with my code. I'm getting quite a few of syntax errors for missing ';' which I have and missing type identifier. This errors are happening on my intarray.h file for string declaration (line 34). I get more errors that still need … | |
Hi, I'm having some problems with an infinite loop. For some reason, the process 112 is not being send anywhere. What i'm suppose to to do is to mimic a CPU. Each line represents a process which the first number is the machine time that it suppose to be send … | |
Hi, I was cleaning up a friend's computer and decided to schedule a disk check for bad sectors from the Tool section in the C:\ Property window. I told him that next time he boot up his pc, the scan was going to start. When he did that, the scan … | |
hi, i'm having problems with the output. I do not get anything when I select 4 and enter a binary number. Here is my code, if anyone could point out what i'm doing worng, thanks. [CODE]import java.util.Scanner; public class Driver { public static void main(String [] arg) { LineWriter Lw … | |
Hi, I'm trying to manually translate 16-bit assembly intruction into the format Instruction Prefix-Opcode-ModR/M-SIB-Address Displacenebt-Immediate Data for an Intel8086. I'm having problems trying to figurit out when to use the respective values for the Mod, the R/M. If anyone could point a good book or site for this type of … | |
Hi, like the title says, I have a problem with XP and setting up a wireless network. I do know how to do set it up, but I just run into a problem......let me tell you my story....once upon a time.....I set up a wireless network with printer sharing at … | |
Re: You can declare any of those 2 classes into the other one, as long as you have the respective function returning and using the right data. To make a reference to the thread name, I would declare the scanner class as a base class for scan class, so the scan … | |
Re: If you are writing a function to do the insert, keep in mind that you have to have a variable that knows where the items that go after the inserted item are located, so they will not be lost to the program | |
Re: To answer your question on why the program is not stopping, it is because you have an infinite loop on line 19 where you are using the AND operator [CODE]while(rta != 'n' && rta!='N')[/CODE] | |
I'm having problems reading taking an input using cin.getlin [CODE][LIST=1] [*]cout << "Enter record: "; [*]cin.getline(title, 100); [*]csis << "Enter record title: " << title << endl; [*]rec->setTitle(title); [*]cout << "Enter performer: "; [*]cin.getline(name, 100); [*]csis << "Enter performer: " << name << endl; [*]rec->setPerformer(name); [/LIST][/CODE] The program jumps to … | |
Hi, do not know how possible is this but here it goes, i'm trying to declare an array once a program is running. This is how i'm thinking: [CODE][LIST=1] [*]int size; [*]cout << "Enter size of array: "; [*]cin >> size; [*]Holding *holdLib[size]; //this is a base class pointer array … | |
hi, i'm having problems with my homework. I have to create a Base classes from which 2 classes have to be derived, then i have to write a program to test their function. The problem that i'm having is that i'm taking the input from the keyboard and passing it … | |
Hi, i'm having some problems with my inheritance homework. It consists on writing a progrma that mimics the String lib by overloading different operands and then create two derive classes that will revert a string and that will change the cases to lower and upper. This is as far as … | |
Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the … | |
hi everyone, i'm interested in AI research and if anyone could point me in the right direction where to start, any good books or websites will be more than appreciated, thanks |
The End.