199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kharri5

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 …

Member Avatar for roopa09
0
174
Member Avatar for JohnBlanco

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

Member Avatar for JohnBlanco
0
121
Member Avatar for rishabh95verma

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] …

Member Avatar for macneato
0
99
Member Avatar for dasatti

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() …

Member Avatar for macneato
0
86
Member Avatar for Kystadio

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)) { …

Member Avatar for pritaeas
0
98
Member Avatar for kobalt

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 …

Member Avatar for kobalt
0
104
Member Avatar for Chargerfan

how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox?

Member Avatar for privatevoid
0
102
Member Avatar for revenge2

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.

Member Avatar for fjallstorm
0
107
Member Avatar for anup.maverick

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 …

Member Avatar for greyhound
0
572
Member Avatar for miag

[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 …

Member Avatar for jonsca
0
113
Member Avatar for newto

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"; } …

Member Avatar for newto
0
197
Member Avatar for unseenedges

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 …

Member Avatar for vinnijain
0
2K
Member Avatar for help_lucky

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 …

Member Avatar for help_lucky
0
203
Member Avatar for FancyShoes

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] …

Member Avatar for FancyShoes
0
133
Member Avatar for the_Famous

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 …

Member Avatar for javaAddict
0
103
Member Avatar for emilio

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 …

Member Avatar for emilio
0
3K
Member Avatar for vssp

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

Member Avatar for Rajivgandhi
0
244
Member Avatar for psychoangelo89

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 …

Member Avatar for psychoangelo89
0
148
Member Avatar for nychick

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 …

Member Avatar for jonsca
0
89
Member Avatar for adamwilden

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 …

Member Avatar for me655321
0
627
Member Avatar for rt.arti

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 …

Member Avatar for nezachem
0
100
Member Avatar for mandar2886

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 …

Member Avatar for love_dude1984
0
115
Member Avatar for mymyzzz

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, …

Member Avatar for Clinton Portis
0
404
Member Avatar for nccsbim071

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 …

Member Avatar for nccsbim071
0
1K
Member Avatar for beforetheyknew

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 ? …

Member Avatar for gunjannigam
0
81
Member Avatar for mahela007
Member Avatar for RogerI

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. …

Member Avatar for RogerI
0
2K
Member Avatar for eduard77

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) …

Member Avatar for Clinton Portis
0
141
Member Avatar for amel036yippee

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() { …

Member Avatar for amel036yippee
0
102
Member Avatar for vinnijain

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 …

Member Avatar for vinnijain
0
136
Member Avatar for 9w43

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 …

Member Avatar for gunjannigam
0
211
Member Avatar for Stefano Mtangoo

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++?

Member Avatar for Stefano Mtangoo
0
176
Member Avatar for venkatnams

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 …

Member Avatar for vb5prgrmr
0
199
Member Avatar for draxous

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 …

0
51
Member Avatar for uberian22

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 …

Member Avatar for uberian22
0
79
Member Avatar for tig2810

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 …

Member Avatar for tig2810
0
119
Member Avatar for 07tr0wa07

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 …

Member Avatar for Lerner
0
276
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
654
Member Avatar for fawkman

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 …

0
108
Member Avatar for richman0829

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 …

Member Avatar for Lerner
0
108
Member Avatar for checker

[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 …

Member Avatar for checker
0
207
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
586
Member Avatar for DevC++4.9.9.2

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 …

Member Avatar for r.stiltskin
0
125
Member Avatar for Mattpd

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:: …

Member Avatar for Mattpd
0
165
Member Avatar for jasong911
Member Avatar for goldriverdancer
0
5K
Member Avatar for BigTito89

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 # …

Member Avatar for BigTito89
0
161
Member Avatar for Fenrir190

[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 …

Member Avatar for r.stiltskin
0
226
Member Avatar for ahspats

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 …

Member Avatar for woooee
0
145
Member Avatar for girl.java

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 = …

Member Avatar for girl.java
0
113
Member Avatar for Kadjii

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 …

Member Avatar for Kadjii
0
128

The End.