199,114 Archived Topics
Remove Filter ![]() | |
[CODE]Public Sub DisplayData(strArray() As String) Dim intPerson As Integer For intPerson = 1 To mintNumPeople Cells(2, 1).Value = strArray(1) Cells(2, 2).Value = strArray(3) Cells(2, 3).Value = strArray(2) Cells(2, 4).Value = strArray(5) Cells(2, 5).Value = strArray(4) Cells(2, 6).Value = strArray(6) Next intPerson Cells(intPerson + 1, 1).Value = strArray(intPerson * mintDataPerPerson)[/CODE] I'm … | |
![]() | Hello! I wonder if anyone used google-diff-match-patch for fuzzy string comparisons, i.e., for finding a closest/most similar string? Can anyone explain and give some examples? Also, in genera, what would be the best matching algorithm in Python. I tried Levenshtein, but matches are not so good, and I tried difflib.get_close_matches … |
![]() | Hi, I would like to develop a php web application using wamp - just something simple to start out. What IDE should I use? and how do I link it to wamp? Thanks! ![]() |
I'm making a hash table using a linked lists to handle collision. So I'm creating an array of "head" pointers to access each linked list. I can't figure out why I'm getting the error below: error C2440: 'initializing' : cannot convert from 'LinkHash::ListNode' to 'LinkHash::ListNode *' I commented **not working** … | |
Hey guys, I have a bit of a problem with implementing an ajax based contact form. I am sure I forgot something...does this almost look right? What do you think the problem is, the form still submits but the page refreshes instead of just sliding the form up and fading … | |
I am working on the UVa problem 10032 - Tug of War, where I'm given the time constraint of 3 seconds to solve the problem. I have pasted the criteria for the problem below. [INDENT]A tug of war is to be arranged at the local office picnic. For the tug … | |
I'm populating a dropdown from a mysql table with php but some cells in the column are blank, so in the dropdown there are gaps where these blanks are. Can i choose not to show blank cells or something? Thanks | |
can anyone create a program for this? In this program, you will be creating a very simple pizza-ordering menu. At this pizzeria, there�s only one kind of pizza you can order: regular (cheese,) no toppings. Your choices are what size of pizza, and how many of them. You�ll need to … | |
HI, I am using an Image Hosting Script... I want to modify it according to my needs... Is there anyone who can help me in this? I can also pay for that.... But its Really Urgent.... Regards.... | |
hey everyone, well i have made a method that would return array of string. the strings would be obtained from the file(employee.txt) every 4th line in the file contains employees loginID i need to store those ids in to one array and then return it. here is the code of … | |
i am trying to change the background color of a tooltip i am using tooltip.backgroundcolor = color.colr no errors but thecolor doesn't change any ideas ? | |
So I made a few tutorial applications and understand the most basic Python concepts and I'm well on my way to become a Python addict, only one thing is standing between me and the road ahead. I'm trying to make my first "useful" Python application - a program that allows … | |
![]() | Hey During my web browser program i want to embed the very basic feature set as desktop background. i know how to set the image as desktop background but i am unsure how to get the image of the website Any help is much appreciated NSSLTD Method to set image. … ![]() |
anyone kno why java keeps telling me illegal start of type , in the first if statement thanks in advance Airline reference = search(choice, airlineObjects); if(!choice.equals("QUIT")) { if(reference == null) { System.out.println("wrong flight number enter another flight number"); } else { System.out.println("your file detail is ....."); System.out.println(reference.getFlight() + " " … | |
So I have my site templates complete and I know that I have the right database connection because I can register, but I am having problems with dynamic pages. I originally started the site with all the pages in their own unique separate PHP file, but I ran into problems … | |
using recursive Java method [CODE]import java.util.ArrayList; public class Count { private String word; public Count(String w) { word = w; } public ArrayList<String> getUpper() { ArrayList<String> result = new ArrayList<String>(); if(word.length()==0) { result.add(word); return result; } for(int i=0;i< word.length();i++) { if(Character.isUpperCase(word.charAt(i))) { String shorter = word.substring(i); Count shorterCount = new … | |
Does anyone know how to create ASM code in VS2008? I am so confused and cannot find the method in which I can code in Visual Studio. | |
i'm writing a program that can tell me where my curser is and whether the bottons are being pressed | |
I am trying to produce a random walk solution but I get some strange results. Here's the code : [CODE] #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> int main (int argc, const char * argv[]) { // insert code here... char myArray[10][10]; char letters[26] = {'A', 'B', 'C', 'D', … | |
When i try to dynamically change the height of an iframe in ie through a java-script to match its content (a html page containing a flash movie), it doesn't resize the iframe at first, but when i reload the same page into the iFrame it resizes as planned, how come? … | |
Windows Form Application, C#, in VS2010 Express. I get the "Object reference not set to an instance of an object." error with the line of code below, when I attempt to close the Form. [CODE]Int32 myID = Convert.ToInt32(((DataRowView)projectBindingSource.Current).Row.ItemArray[0]);[/CODE] This is a simple form with two data-bound controls. The record has … | |
I'm pretty sure there's just a small bug I'm missing, but I can't seem to find it. Error: g++ -Wall Proj3.cpp -o proj3 -pthread Proj3.cpp: In function âvoid initLockVar()â: Proj3.cpp:52: error: expected primary-expression before â{â token Proj3.cpp:52: error: expected `;' before â{â token Proj3.cpp:256: error: expected `}' at end of … | |
Hi, I am looking for some help with my script, since only half of it is working. The image path will not be put in the database for some reason and when I process the form all I get is white space: [CODE] $reg_errors = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') … | |
It may be the compiler, but it just doesn't work. The program it's suppose to return the string "a m". [CODE] #include <iostream> #include <string> int main(int argc, char *argv[]) { std::string x = "hola mundo"; std::cout << fromto(x.c_str(),"l","u") << std::endl; return 0; } [/CODE] [CODE] const char* fromto(const char* … | |
I'm not sure if this belongs in PHP or in SQL forum but basically... when using odbc_result_all, the bottom results is missed all the time, i don't know why it does this but i think its something to do with the driver. So, to get the last result from the … | |
Hi all, i'm working on some exercises which i have to load data from Image library. I write a load function and it work fine except when the number of images in the library becomes large. At this moment, the limited number if around 700 images. When the number reaches … | |
please i can someone help me about creating chat massager application, please if anyone one know it please help. thanks | |
hi guys, i'm just starting out c++. Now the problem is, no matter whatever program i write, i'm getting this warning. [QUOTE]#warning This file includes at least one deprecated or antiquated header. \ Please consider using one of the 32 headers found in section 17.4.1.2 of the \ C++ standard. … | |
Hello everyone I am trying to find duplicates for part of a string, not the whole stHello everyone I am trying to find duplicates for part of a string, not the whole string. The strings are stored in a file. Each line of file contains a string and many of … | |
I would like to compare user input against and entire file and print out message when item is found or item not found. My program below appears to do that but it is doings so one line at a time. Please help. Jems [CODE] import java.util.*; import java.text.*; import java.io.*; … | |
Hello, I'd like to know how to make a div height maximum f.e. 200px. If the height goes above 200px it should come some text saying "View more" or something and then it expands. This I need because I have a page where I will post posts and if the … | |
Hi , I am basically working on a snakes game in C++. I have managed to move the snake around on the screen with the WASD keys . The snake is a result of a looped putpixel() functions in the ancient graphics.h Borland file. I was hoping to find solution … | |
i've started learnin OOPS lately... and i hav a question... check it out... i started studying abt friend class and friend functins... a friend function program... now, how can i write a progarm 2 add two complex variables... can i use: void getdata() { cin>>a+i; cin>>b+i; } to input two … | |
hi folks the program I am attempting to do here, even though its horrible so far, is one that reads in a file containing: [code] Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair … | |
In my program I need to have the user get two chances before ending the program. Currently if the condition is not satisfied then they only get one try. I would like some help in getting a second try. [CODE] // Takes user entry Scanner user = new Scanner(System.in); System.out.println("Please … | |
Hello everybody, I have spend the last 6 hours on trying to access a char * type within a static struct without success. I guess I use the pointers wrong but after trying "everything" I am pretty lost right now. So hopefuly someone of you can help me. I have … | |
Hi there, I have a question about a really simple program. The code below doesn't work, the compiler comes back with "fatal error C1083: Cannot open include file: 'ofstream': No such file or directory": [CODE]#include <iostream> #include <ofstream> using namespace std ; int main( ) { ofstream myfile("newfile.txt") ; myfile … | |
Hi I'm beginning a new game project involving Event data cards. Most have common types of data. They fall broadly into three types: terrain, movement or fire. Although there are some special event cards or modifier cards but on the whole, similar data on the most part. Except the fire … | |
what are the modules do you prefer to do when you are creating a COMPUTER AIDED INSTRUCTION SYSTEM?? | |
Hello. I need some help in deducing time in a game. The current time is (06:45:10) I have two fleets that is send to attack a planet. The first fleets arrival time is known (10:31:15) 24 hour format The second fleets time to get to the target planet is known … | |
hey everyone, well i got a little problem im trying to write input from the JTextField into the file (file4.txt) but the problem is it keeps overwriting the text file each time i make input and any data ther was is changed in to new data.all i need is that … | |
I'm trying to write a program that, after playing a game with the user, asks if they want to play again. For this test, I want to simply test the first letter of the word they input and if it's a "y" then the game will repeat. at first, I … | |
I'm not sure if this is the correct place to post this but a website I recently created keeps being unable to load. It will go through periods of loading fine and everything working and then all of a sudden it just wont load, then awhile later it'll load again … | |
my program is made to enter a matix,in which it finds all of the column`s minimum numbers which are[COLOR="Red"] >0[/COLOR] and then put them under the last row.i have sucseded entering the array and puting it out,but i think my IF is wrong somehow.I have tried initialising the last row … | |
I was just wondering if there is a method or something in Java that, once a URL has been passed, can determine if a webpage under that URL was written in HTML, PHP, XML, and so on. I looked in URL and HTTPConnection classes but didn't find anything. Maybe missed … | |
The program like the title says is supposed to return the largest integer value in an user-inputted integer array, using binary recursion. And in the case of an empty array, return Integer.MIN_VALUE. I am kind of stuck on the logic of this binary recursive algorithm. I know there is errors … | |
what r sum applications of very common microprocessors and microcontrollers that uses assembly language as its basic or core language | |
I've been doing research on data structures but I just can't really wrap my head around what they are. I'm thinking classes, enums, structs are data structures; but then I also see linked lists and queus, etc that I don't understand either. Could anyone tell me what they are, what … | |
[CODE]#include <stdio.h> #include <ctype.h> #include <string.h> #include <unistd.h> #include <libgen.h> #include <time.h> #include <errno.h> #include <ctype.h> #include <math.h> #include <float.h> #include <stdlib.h> static char * string_tok( char *str) { static char *next = NULL; if(str == NULL) { str = next; } else { next = str; } if(str == … | |
I am writing another header file. And I am still trying to get my head around these templates. They seem extremely easy to understand but I have had the compiler moaning at me for the last 2 hours. This is what i have: [CODE] #include <iostream> #include <cassert> using namespace … |
The End.