Formatting a text file.
Hey! I'm jsut learning Python (I just finished the codecademy course) and am working on this project. I have a text file which is pretty much just numbers that I want to re-format (ie. change the...
View Articlerun time error 3061 - too few parameters. expected 2
hello everyone. im getting the error: "run time error 3061 - too few parameters. expected 2" when using a select query. i have the following code: dt.recordsource="Select * from Table_Name WHERE Field1...
View ArticleDetect circles in an image, detects whole image instead?
Im using the symmetry property in the isCenterofCircle():check at a distance +r and -r away from the pixel(center) (vertical and horizontal direction) to see if those 4 pixels are different than the...
View ArticleCant understand
Can someone explain me what method setValueAt is doing? i know it makes checkboxes work..but how? public class Model extends AbstractTableModel { private String[] headers...
View ArticleHow to nicely format contents of array
I'm familiar with formatting with iomanip, but my output is horrendous. Because the data (like city, name , etc ) are all different word lengths, it does not output nicely. Any tips to make this look...
View ArticleUnsortedList$Link cannot be cast to java.lang.String error help
Hi, I am currently working on a Priority Queue that enqueues an element and a priority. My getHighest method works but it will not allow me to actually print out the priority and I continue to get an -...
View Articlememofield in datagrid
I am trying to populate a VB6 datagrid with a access memofield but the contents of the memofield isn't visible in tha datagrid. Does anyone has a workaround how to do this. Thanks in advance. Rini
View ArticleWhat is an argument?
Okay so the tutorial I'm on is pretty straight forward but one thing I've noticed is that sometimes they say words and don't explain anything about them. Such as 'arguments' I hardly know what they're...
View ArticleHow do I get program to identify prime number?
Here is my code thus far: #include <math.h> #include <algorithm> int main() { int a, b, c, d, e, f, g, h, i, j, s, x; int largest, smallest; printf("Enter 10 digits\n"); scanf("%d %d %d %d...
View ArticlePHP WebSocket connects via localhost only
I've been looking into using websockets for the past few days in a project I'm working on in which users can collaboratively edit a document together in real time (sort of like Google Docs, but much...
View ArticleCompare characters in 2D array with characters in 1D array
Hello, I'm a newbie to C language so I need some help on comparing two strings to see if they're identical. I have a set of characters in array1 (2D), and a character array2 (1D). Basically what I want...
View ArticleRemove duplicates from an array string
I am trying to remove the duplicate words from a sentence entered by the user without punctuation. I believe I am over thinking this. If the user types in "that cat is black and this cat is yellow",...
View ArticleCant understand
Can someone please explain me what this code is doing..analytic please.. public Object getValueAt(int row, int column) { if(row < 0 || row >= studentList.getStudentList().size()) { return null; }...
View Articlehow to use get variable from page 1 for page 3
Hi, I have 3 pages. How do I use get method for page 3? For page 2, I can get the variable from page 1 but how do I do the same for page 3? I need to have get the same variable from page 2 to page 3?...
View ArticleUsing scanner and if/else statement to draw one of two graphics.
Hey there, I have a homework problem for us to solve. I have to make a program for my introductory programming course that displays either one picture (a "wild face") or another (a "happy face") when...
View ArticlePolymorphic help and static/dynamic cast
Hey all, So I have the following code if(static_cast<cBlock*>(&ObjVec[t])) { ObjVec[t].FreeMe(); } cBlock is the derived class of what is stored in ObjVec. Shouldn't the FreeMe function be...
View ArticleNot getting the suitable output!
i am writing a program that stores high scores in non decreasing order. I have written the code with no error but I am not getting the required output. Hope someone can help me out with it. /** * Class...
View Article「int16」 converted into 「int32」 implicitly
The following segment of code kind of confused me . private void button1_Click(object sender, EventArgs e) { Int16 nTemp = 1; NumberTest(nTemp + 1); } private void NumberTest(Int16 v_nValue) {...
View ArticleDerive a second class
This is only my second C++ assignmet. I have been working on this all day. The question is a 2 part question. the first part is as follows, A point in the x-y plane is represented by it's x-coordinate...
View ArticleFormatting / Dividing by 0 (My first Calculator)
I put parameters to not allow for characters.. but formatting goes out of whack. Try putting a letter as an integer. Need help with getting it to look clean. Also, I also put parameters so it cannot...
View Article