Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for alkeshtech

Hello, I am currently working on a sample class registration system for which I need to maintain class prerequisites. I have to display class prerequisites as a boolean expression. Example: Class A's prerequisites (B AND C) OR D I am not sure how to handle this. Design so far: A …

0
65
Member Avatar for alkeshtech

Hello all, I am using MySQL on Windows box for one of the project I am working on. My design for a Emplyee table is: employee ([B]id[/B], first_name, last_name, hire_date, start_date, end_date, active_status....) Active status = true if end_date is in future, else false One of the functional requirement is …

0
58
Member Avatar for alkeshtech

Hello everyone, I am creating a webapp of employees. Now each employees has fields such as loginId, firstName, lastName, email, last review date, last reviewer, last review type and I can go on and on. My question is each employee has ONLY last review. So what is the best way …

Member Avatar for griswolf
0
100
Member Avatar for alkeshtech

Hi guys, I am creating a university database, where student can take sections and courses have prerequisites. I have to make sure that when user takes a section, he has met all the prerequisites for that course he is signing up for. And, when a course is deleted from the …

Member Avatar for alkeshtech
0
91
Member Avatar for alkeshtech

Hi guys, I am wondering how can I create a sorted linked list, without using Collection.sort(). Is there a way I can add element in a list in a sorted fashion?

Member Avatar for Andreas Hollman
0
111
Member Avatar for alkeshtech

Hi guys, I am writing a method which given an instance of a class and a type (as a string), it will return an instance of the named type constructed from the instance if possible, null otherwise. So say, class A{ A(B b) { .. } .. } class B …

Member Avatar for javaAddict
0
97
Member Avatar for alkeshtech

Hey guys, is it possible to always remove ambiguity? May be by changing precedence? Can you always do it? Or no?

Member Avatar for alkeshtech
0
76
Member Avatar for alkeshtech

Hey guys, what are advantages of external and internal iterators? I understand that internal allows you to add and remove nodes as it has implicit reference to data in the outer class? So, why would we need an external iterator? What are pros and cons of both?

Member Avatar for JamesCherrill
0
108
Member Avatar for alkeshtech

Hey guys, I am writing a program which reads in 2 floating point numbers from file and write the output to a file. The multiply part is very easy, but I can't seem to figure out how to write f loat to a file.

Member Avatar for rahul8590
0
97
Member Avatar for alkeshtech

Hi guys, I know whene we shift left, MSB is moved into carry flag. Is it possible to store the value in carry flag into a variable? What i want to is, multiply the bit in carry flag by some number. So that, once I have the bit in a …

0
73
Member Avatar for alkeshtech

Hi guys, I am kinda confused on how to read integers from a file, named input. txt. Here is what i have: [CODE] TITLE MASM Template (main.asm) INCLUDE Irvine32.inc .data fileName db "input.txt", 0dh, 0ah, 0 fileHandle dword ? err_Msg BYTE "Cannot open file", 0dh, 0ah, 0 .code main PROC …

0
62
Member Avatar for alkeshtech

So, I am writing a program which reads inputs from a text file. The prgoram plants a plant at (x,y) location which is read from a file as PLANT 3,4 for example. It also puts the plant in flames from command FLAME 3,4. So, there will be multiple plants and …

Member Avatar for verruckt24
0
88
Member Avatar for alkeshtech

Hi Guys, I am newbie to Java, I have take C++ at college. I want to create a 2 dimensional grid like on a graph paper with x-y axis. # of rows and columns will be specified by the user. Need some right direction to start this.

Member Avatar for Ezzaral
0
54
Member Avatar for alkeshtech

Hey Guys, I want to read from a file. And store the string in a string class array. Number of strings in the file is unknown. How could this be done? [code=C++] int n=0; while(!inFile2.eof()) { string tempStr = getWord(inFile2,n); if(tempStr.length() >=1) { wordCount++; } } inFile2.close(); inFile2.open(inFileName2.c_str()); string wordStr[wordCount]; …

Member Avatar for Ancient Dragon
0
128
Member Avatar for alkeshtech

Hey Guys, So, I am writing a program that reads in from a file, and prints the word and counts the number of lines in the document. Here is the function that is supposed to do the work. Every time I run it lineCount is always 0. [CODE]string getString(ifstream& inFile, …

Member Avatar for Ancient Dragon
0
202
Member Avatar for alkeshtech

hey guys, I want to create 6 different random numbers without repetitions and this what I have done. I just wanted to make sure if this logic makes sense. [CODE] for(int n=0 ; n<6 ; n++) { randomInt[n] = generateRandomInt(0,20); cout << randomInt[n] << endl; } for(int i=0 ; i<6; …

Member Avatar for alkeshtech
0
103
Member Avatar for alkeshtech

[B]why is this keep giving me same 2 numbers?[/B] [code=cplusplus] #include <iostream> #include <iomanip> #include <ctime> #include <cstdlib> #include <windows.h> using namespace std; int generate(int,int); int _tmain(int argc, _TCHAR* argv[]) { int random[1000]; for(int n=0;n<1000;n++) { random[n]=generate(1,50); cout << random[n] << endl; } system("pause"); return 0; } int generate(int min, …

Member Avatar for alkeshtech
0
193