199,114 Archived Topics
Remove Filter ![]() | |
Does anyone know how to fully set up a circular linked list, and its methods, remove, insert, and find? Here is what i have so far but i have no idea if its proper public class CLL { public class Node { int item; Node next; public Node() { this.item … | |
Hi, I am having troubles finding something about dropdowns with javascript. I have two dropdowns, and I wanted to choose an option from the first and change the values that appear in the second. Can anyone help me? Thanks in advance | |
I want to create a a application for my web page as seen on pageflakes.com by which a user can easily logon to his facebook account and see all his facebook information. A similar gadget can also be found on igoogle and you can add it from this URL [url]http://www.google.com/ig/directory?type=gadgets&url=www.brianngo.net/ig/facebook.xml[/url] … | |
Hi, The following JQuery works fine in all browsers excluding ie-8. It works fine even in ie-7. Not tested in ie version gater than 8. It works fine in Firefox, Chrome and ie-7. Can any body figure out what is the problem and how to solve. [CODE] <script type="text/javascript"> $(document).ready(function() … | |
Right now, I have a PHP script which - ideally - selects "posts" from a table, based whether or not the the time in the post is greater than the current time. [code]if(isset($_POST['id'])) { $id=addslashes($_POST['id']); $time=date("h:i:s"); $sql=mysql_query("SELECT * FROM public_wis WHERE mig_id='$id' AND time >= '$time'"); if(mysql_num_rows($sql)!=0) { while($rows=mysql_fetch_array($sql)) { … | |
![]() | Hello all! I'm very much a noob to c#... and programming for that matter... and xml! So, I'm having troubles with a project that I'm working on that I hope someone here can help me with. I wish to search through an xml file that is generated by a Share … ![]() |
how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox? | |
Hello there, I am having trouble copying text into a string, what am i doing wrong? [CODE=c] #include <stdio.h> int main() { char instructions[80]; FILE *f; f=fopen("a3.txt","r"); while (fscanf(f,"%s",instructions != EOF){ fscanf(f,"%s",instructions); } printf("%s",instructions); } [/CODE] the contents of a3.txt are B404 239A 2412 5345 350C C000. | |
Hi, I have 3 pages(Page1, Page2, Page3) in my Application, Now the problem is that I don't want the User to go directly to Page 2 or Page 3. User should be redirected to Page 1, if they do so. How this can be achieved? “There has to be evil … | |
[COLOR="Green"]i'm so confused with this program. should anyone give me some clues how to begin?[/COLOR] Define a class called StringSet that will be used to store a set of STL strings. Use an array to store strings. Create a constructor that takes as an input parameter an array of strings … | |
hello, can anyone help med check what I am missing in this code: [CODE]//here I want to make the lists unvisible when you enter the page. function borja(){ var vanster=document.getElementsByTagName("h2"); for (i=0; i<vanster.length; i++) { vanster[i].nextSibling.nextSibling.className="osynlig"; } } function visa(){ var sibling=this.nextSibling.nextSibling; sibling.className="synlig"; } function dolj(){ var sibling=this.nextSibling.nextSibling; sibling.className="osynlig"; } … | |
hi.... Iam new to programming in C#,have just started programming.Can anyone tell me how to write code to convert numbers in to words...for istance if you put 1500 as input,the output should be "Fifteen Hundred. Also i need a C# Code to check if an input string is an identifier … | |
Hi All, Terminate session on closing the browser/tab. I am designing a site for the internal use of company employees at the client place, which contains some important secured data. Whenever a user logs in, modifies the data and they directly close the browser instead of logout. so the session … | |
I want it so that when a user doesn't enter char r,p,g,m,c,y it will come up and say incorrect input enter 4 correct values. This is what I have. [CODE]while( (g.one || g.two || g.three || g.four) != ('r' || 'p' || 'g' || 'm' || 'c' || 'y') );[/CODE] … | |
i need help to count lines, paragraphs and articles ("a","an","the") in txt file with java. here is what i've got know:[code] import java.io.*; import java.util.*; public class Main { public static void main ( String[] args ) throws FileNotFoundException, IOException { String line=" "; char t=9; String s=""+t; int lines … | |
hi i wanted to write a windows application that sends keyboard strokes to another application something like a virtual keyboard. i researched the subject and read few articles. i managed to find a code that partially works. in the sample code above i'm trying to send strokes to a word … | |
Hai fiends I want to disable the righ click option in my web application. How to hide the right click option usong php? Please send me any idea. Thanks Prabu __________________ Thanks Vssp | |
I have a trouble in my login form. The program doesnt execute my else statement, especially if I'm going input wrong usernames and passwords. It just did nothing. NO error warnings, etc... please help.. :( [CODE] private bool CompareStrings(string string1, string string2) { return String.Compare(string1, string2, true, System.Globalization.CultureInfo.InvariantCulture) == 0 … | |
Hey everyone, I'm trying to implement a operator overload of several operators. I want to make sure my syntax is correct. Here's my old Class implementation: [CODE]#include <iostream> using namespace std; class Date { private: int mn; //month component of a date int dy; //day component of a date int … | |
Hi Folks, Really desperate for help here as I've spent days trying to resolve this one. We have a VB 2008 web browser app using a webbrowser control on our Kiosks at our uni - it works very well and locks down the workstation so teh students can only use … | |
Hello, I am trying to generate multiple files out of a single text file by changing one parameter. My text file is of the form -- p 3 6 [COLOR="Red"]n 1 1 n 3 -1[/COLOR] a 1 2 0.8 a 1 3 0.7 e 1 2 1 2 0.7 e … | |
Hi i'm new to asp.net & i'm developing an enquiry form for a website in asp.net 2003 which contains the foll fields: Name: Email id: Message: Submit Submit is a button & on clicking it all the information entered in the above fields should be directed to the company email … | |
I need to finish this program, but i have no idea how to! please help me figure this out. [code] #include <iostream> #include <fstream> using namespace std; void printShips(char [15][15]); void fire(int row, int col, char ocean[15][15], char &result, char &ship); struct counter { int B, C, D, F, T, … | |
Hi I have a solution file that consist of two different projects. In one of the projects i have a code to upload the file and save it. Currently the file is saved in same project directory that consist of code to upload the file. I want to upload the … | |
Hi guys, I'm returning this, it is similar to how you percieve dollars, $"32.95" etc. I calculate it in cents which is an int, but the problem is the second half cuts off the 10s of cents part if the number is less than that. eg/ 32.08. Any ideas ? … | |
Is there a way to get the date a file or folder was last modified into python? | |
I need to read in a large amount of data from a csv file into arrays. I am using Numpy as I need to later manipulate and plot the results. I have decided to use numpy.loadtxt as this appears to be the most efficient method to read in the data. … | |
Can anyone tell me what is wrong with this code? I found it on Wikipedia When I compile it it gives me a lot of errors [code] void parallel(int num_threads,int matrix_demention) int i; for(i=0;i<num_threads;i++) create_thread(&threads[i],i); pthread_attr_destroy(&attr); // Free attribute and wait for the other threads for(i=0;i<p;i++) pthread_join(threads[i],NULL); void *gauss(int thread_id) … | |
Hello! I'm a newbie here... Straight to the point, I tried to create a program as stated in the title above musing C++. Below are the code I used: [CODE]#include <iostream> #include <cstdlib> const board=8; const pop=20; using std::cout; using std::endl; double table[board][board]; int r; int c; int main() { … | |
Hi!!!! how can I convert words into numerals...In first textbox i enter word and on button click equivalent numeral is displayed in another textbox for Example we enter "One crore twenty lakh thirty four thousand seven hundred eighty four" , then its corresponding numeral should be "12034784". What will be … | |
![]() | I have no idea what to do, it keeps on saying can not find constructor Time(int, int) here is my Patient Class [CODE] //Patient Class store patient details such as name, age /* * Field declaration for patient, which stores each input to indicated type * p stands for patient … |
I see alot of libraries written in C and I like C++ OOP way. How can I use a given C library functions in C++? | |
guys,,i use vb6 and access 2007,,i hav a problem with my project,,,,my project is about college admin s/m,,,on runtime if i give certain id's for input it hangs and just crashes,,,i dont know why this happens,,,,,i hav applied the same code in many other places of my project but they … | |
I used below code to display some data using crystal report.i used separate dataSet() object and connected it to the crystal report setDataSourse. There are no compile errors,but after running it gives me the error [B]"Load report failed". [/B] plz help.. The code. [CODE] String ConnectionString = ConfigurationManager.ConnectionStrings[0].ConnectionString; SqlConnection con … | |
i am getting errors when i compile this program [CODE]#include <iostream> #include <cctype> using namespace std; const int MAX_DIGITS = 20; int size; // number of digits in the integer int digit[MAX_DIGITS]; // the digits stored in reverse order void inputBigInt (int a[], int& sizeA); / void outputBigInt(int a[], int … | |
Hi all I'm new to the Entity Framework and trying to get my head around it but struggling somewhat. I'm trying to do something basic like the below but it bombs out with a 'Null reference exception - Object reference not set to an instance of an object." when I … | |
Hi guys i'm new in C++..:icon_wink: I have a homework that i need to pass soon and i need help because i only have 1 error and i'm staring at it for 2 hours:icon_cry: going back and forth to my book and came up with no solution:icon_sad:. ok so heres … | |
Some C++ buzzwords a programmer need to grasp really boggles my mind. I try to understand them but I strangely, get dim understanding of them (am I tired? Need a vacation?). Anyway please help me understand the following big words in C++ 1. Virtual Functions 2. Polymorphism Thanks alot | |
Hey Guys I am coding a grid in c#. I have posted the code below. I get the grid to print, but I want to allow the user to change the Grid Size by using a checkbox. I have tried writing some code to achieve this but I am not … | |
I think the pieces, taken separately, are okay, but they don't seem to play together well. [CODE] //lab12: This program requests input of ten employee names and salaries; //a file is created and they are written into it, and the file is closed. //The file is then reopened and the … | |
[CODE]class Database(Student): def __init__(self): g = [] choice = ['Basketball','Football','Other','Baseball','Handball','Soccer','Volleyball','I do not like sport'] data = student.sport k = len(student.fname) print k freq = {} for i in data: freq[i] = freq.get(i, 0) + 1 for i in choice: if i not in freq: freq[i] = 0 for i in … | |
Okay, well I've been looking for at least an hour now for some straight-forward python-xlib documentation, and I have been unable to find any. Luckily...I have quite the easy problem. If somebody would be able to help me create a simple script that would say "Hello" every time the left … | |
hey im trying to do a quick mod function, i know % exists but this will have other applications... Basically the main issues is when you return "num" it is a different value than if you look at num before it is returned... Any ideas? thanks in advance [code] int … ![]() | |
My attempt of a "bubble sort" only partially works. Say for example if this is my structure declaration: [code] struct part { char name [NAME_LEN+1]; char owner [OWNER_LEN+1]; char status [STATUS_LEN+1]; char date [DATE_LEN+1]; char renter [RENTER_LEN+1]; } parts [MAX_PARTS], temp [1]; [/code] and the following code print: Piston:Mike:In:: Hook:Mark:In:: … | |
Hi how do i call a pdf file from a form in ms access please ? | |
Hello, for my final team project for C++ we are making a simple space invaders clone with the [URL="http://www.libsdl.org/"]SDL[/URL] libraries. Most of it is working great so far but in order to 'destroy' the enemies, they must not be drawn anymore and should be destructed. ER is just the # … | |
[CODE] void readData(ifstream& file, char& operation, int& numOfData) // Purpose: To read data from a file specified by the user { file>>operation>>numOfData; if(operation == 'I') { Array<int>* array; array = new Array<int>(numOfData); } } [/CODE] That's where the problem is coming from. [CODE] const int DEFAULT_SIZE = 30; template <class … ![]() | |
How could one find the length of longest row of same elements in a list. For example if i have a list list = [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1] and i … | |
hi all this is my code i got an error but unfortunately i can't see it:( please help me.... [CODE] public class QUSTION5 { public static void main (String args[]) { double n = 20; int counter= 0; for (int t =0; t<=25; t++) { n= (220/(1+10*Math.pow(0.83>,t))); System.out.println("At t = … | |
Hi, I was wondering if it was possible to update the value of a mySQL cell by a method similar to using += in php code. For example, I'd like to do: [code] $sql = "UPDATE inventory WHERE userID = '$_SESSION[userID]' SET money+='$ssmoney'"; [/code] I know I can instead run … |
The End.