Posts
 
Reputation
Joined
Last Seen
Ranked #630
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~7K People Reached
Favorite Tags
Member Avatar for homeryansta

[CODE=C++] #ifndef LIST_H #define LIST_H #include <iostream> typedef char Item; class List{ public: List() {first = NULL; last = NULL;} //~List() void append(Item entry); void remove_last(); void output(); private: struct Node { Item data; Node *next; Node *back; }; Node *first; Node *last; }; #endif [/CODE] I'm writing a class …

Member Avatar for Syed Zuman
0
968
Member Avatar for homeryansta

Hello, I know RIM is pretty much dead, but I need help with some development. I'm currrently developing an app that pushes data to my device. I downloaded some code that was supposedly developed by blackberry called the Emergency Contact List. Here is my issue: The gui isn't popping up …

0
72
Member Avatar for sunn shine
Member Avatar for FRGT/10
Member Avatar for FRGT/10
Member Avatar for homeryansta

[CODE=C++]void List::remove_last() { if(first == NULL) { first -> data = ' '; } else { Node *newnode; newnode = new Node; newnode = NULL; newnode -> data = last -> back -> data; last = newnode; } }[/CODE] am I doing something wrong? I'm trying to remove the end …

Member Avatar for sunn shine
0
175
Member Avatar for homeryansta

I created a piece of code that simulates a pendulum with the gravity(assuming no friction or resistance). However, it is not as smooth as I want it to be. So.. does anyone know what I can do to make it smoother? [CODE=java] import java.awt.*; import java.awt.event.*; import java.lang.Math; import java.lang.Runnable; …

Member Avatar for Eric Cute
0
275
Member Avatar for homeryansta

Greetings fellow programmers! I'm doing a computer vision project in my AI class and am looking for some tips. My task is to read a bitmap into memory and alter that image file and find an object within it. In my case, I'm searching for a box that appears in …

Member Avatar for Taywin
0
147
Member Avatar for homeryansta

[CODE=cpp]void BOARD_Unselect_All(System::Windows::Forms::Form^ Frm) { Frm.a1->BackgroundImage = Image::FromFile("elephant_pla.gif"); }[/CODE] a1 is a picturebox from the form. How do you use the buttons, picturebox, etc from the form being passed in?

Member Avatar for Milton Neal
0
198
Member Avatar for homeryansta

I'm currently converting an application that utilize sqldmo which has a feature .script that can just magically retrieve a script for a particular index for me. Is there a query I can write or a already built in stored procedure I can use to do similar things? Any help would …

0
56
Member Avatar for homeryansta
Member Avatar for homeryansta

hello all! Anyone know how to count all the constraints in a given table? I'm new to stored procedure and need it to finish some work.

Member Avatar for homeryansta
0
127
Member Avatar for homeryansta
Member Avatar for Teme64
0
205
Member Avatar for homeryansta

I've been working on this for hours! the code makes perfect sense, but wont' work!!! aaah! about to pull my hair out. the code is suppose to do get the sum of this 1/1 + 1/2 + ..... + 1/n I blocked all the codes and just print out the …

Member Avatar for Nathan Campos
0
109
Member Avatar for homeryansta

how do you do a square root in MIPS? I have to write a program to find the hypotenuse of a right triangle and I'm stuck on this part. Please help.

Member Avatar for wildgoose
0
2K
Member Avatar for homeryansta

hello everyone! i usually hang around the c++ area, but I'll need to learn assembly for computer architecture 2 in the fall so here it is. I wrote a simple program to convert temperatures from C to F. PCspim doesn't like it for some reason. here are my codes, it …

Member Avatar for homeryansta
0
134
Member Avatar for vasek

since the file being read is a matrix of "i x j". I would read the file first to get the dimension(read the file character by character to get the i), and read the total /n and /0 character to get the j. Then use these values for your 2 …

Member Avatar for homeryansta
1
128
Member Avatar for homeryansta

csci>g++ -c queue.cpp csci>g++ queue.o project6.cpp Undefined first referenced symbol in file Queue<int>::return_index() /var/tmp//ccHbZwrM.o Queue<int>::enqueue(int) /var/tmp//ccHbZwrM.o Queue<int>::dequeue() /var/tmp//ccHbZwrM.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status These are my errors. As you can see, my implementation file compiles, but does not compile …

Member Avatar for homeryansta
0
128
Member Avatar for homeryansta

Why won't this let me choose my own array size? Queue line[qs_pair] is what i'm concern about. As you can see, I have the user input from the terminal the size of the array. But when I compile it, it gives me an error on visual studio. line unknown size …

Member Avatar for Freaky_Chris
0
102
Member Avatar for homeryansta

I'm trying to write a a program that simulates a multi queues, multi server such as a grocery line at the grocery store. The user will enter the desired number of queue/server pair. how would i write this? I mean, I can have 3 - 4 different queue stacks as …

Member Avatar for homeryansta
0
132
Member Avatar for homeryansta

I have a linked list of operators ()+-*/ , how would I be able to compare them if they are all of type char? I looked at the ascii table, but they are all out of order so that isn't a choice.

Member Avatar for homeryansta
0
111
Member Avatar for homeryansta

[CODE=c++] inFile >> x; while(!inFile.eof()) { if(x == '\n') { cout << endl; } cout << x; inFile >> x; }[/CODE] will this code detect end of line? I'm having trouble with this. Can anyone help?

Member Avatar for DemonGal711
0
282
Member Avatar for homeryansta

[CODE] ifstream inputfile; cout << "enter the name of the file: "; cin >> filename; inputfile.open(filename); string temp; int i = 0; while(filename != NULL) { while(isalpha(filename)) { temp[i++] = filename; } if(i > 0) { insert(temp, 1); i = 0; } } [/CODE] this is my code, what am …

Member Avatar for homeryansta
0
126
Member Avatar for homeryansta

[CODE=C++]/************************************************* Student: xxxxx ID number: xxxxx Instructor: Dr. Julstrom Class: CSCI 301 Project 1 *************************************************/ #include <iostream> #include <cmath> #include <cctype> using namespace std; const int SIZE = 61; int getinput(char []); void compare(char [], char [], int, int); /************************************************* The purpose of this program is to have a user …

Member Avatar for homeryansta
0
204
Member Avatar for homeryansta

I'm trying to pass a character as parameter into a function. I will then get the user's input( characters and numbers etc), the function then will return all the input characters excluding everything else. I've gotten the sorting the characters from everything else figured out, but returning the array back …

Member Avatar for homeryansta
0
142
Member Avatar for homeryansta

[CODE]void getinput(char sentence) { cout << "enter something => " << endl; char ch; cin.get(ch); int count = 0; int i = 0; while(ch >= ' ' || count >= SIZE) { if (isalpha(ch)) { [B] [COLOR="Red"]sentence[i] = ch; [/COLOR][/B] i++; } cin.get(ch); count++; } }[/CODE] This is the function …

Member Avatar for homeryansta
0
66