199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for k3na26

Hi, I kind of need help with my homework. I already have a code but it doesn't seem to work. I'm confused about the parameters I put. I don't know which part I actually messed up. I don't know what else to do. Thank you so much in advance for …

Member Avatar for satabios
0
3K
Member Avatar for mbhanley

I am trying to figure out why I am getting this error notice, Does anyone have an idea as to why this is happening. Notice: Undefined offset: 5 on line: `if ($tree[$i]['level'] < $tree[$i+1]['level']) {` on line: `} elseif ($tree[$i]['level'] == $tree[$i+1]['level']) {` on line: `$diff = $tree[$i]['level'] - $tree[$i+1]['level'];` …

Member Avatar for mbhanley
0
198
Member Avatar for Icekilla

Hey guys, I'm building a program in C that can get powers of 2. The user inputs the value of n, and the program calculates 2^n. Here's the code #include <stdio.h> double power(int n) { int q; double c=2; for (q=n; q>1; q--) {c=2*c;} return c; } int main() { …

Member Avatar for Adak
0
176
Member Avatar for shills300

hi guys. our teacher posted a bonus a while ago that has me scratching my head. he still will not show us how to do it. i was wondering if u guys could crack it. here are the instructions: [Click Here](http://prntscr.com/inqqz) there are also **2 ** files to supplement: **.txt** …

Member Avatar for shills300
0
556
Member Avatar for joeyliew7

i have this problem for checking for duplicate username in database. this error appear whether the username is duplicate and does not duplicate. Please help. Warning: mysql_num_rows() expects parameter 1 to be resource, boolean in <?php include_once 'db/db.php'; include_once 'admin-class.php'; $admin = new itg_admin(); if(isset($_POST['Submit'])) { $con = mysql_connect("localhost","username","password","tablename"); if …

Member Avatar for dancks
0
229
Member Avatar for Carc369

How do you do that? This code reads in the book. It reads in fine. Now I just have to alter it so it doesn't read in repeat words in the book. How would I do that? void readInStory(){ ifstream inStream; // declare an input stream for my use int …

Member Avatar for vijayan121
0
701
Member Avatar for Carc369

I've tried cin >> userInput; and it stops reading the word after it hits a space. but then I tried cin.get and it just skips all the other cins. Then I tried cin.getline and it skips over the userInput cin and goes right to the next cin (cin >> direction). …

Member Avatar for vijayan121
0
570
Member Avatar for flyboy567

Afternoon everyone, I'm having a bit of trouble writing a program just to open the serial port for communications, its the first time ive really dabled in c# so if i'm missing something really obvious let me know as im only using it to open the serial port. Many Thanks! …

Member Avatar for Momerath
0
175
Member Avatar for Hakoo

Hello, I am facing this difficulty here : First I'll give code public class Game extends JFrame { private JPanel contentPane; //private JPanel settingPane; protected JLabel lblPlayerName2; // I am using this one for my testing JLabel[] lbls = new JLabel[9]; private final ButtonGroup buttonGroup = new ButtonGroup(); public static …

Member Avatar for Hakoo
0
293
Member Avatar for Venter

i'm Having 3 tables those are like 1.State table 2. District Table 3.college Table state table cat_id state 1 Andhrapradesh 2 Gujarat 3 Punjab 4 mumbai --------------- district Table cat_id d_id district 1 1 vizag 1 2 eastgadavari 1 3 hyderabad 1 4 westgadavari -------------------------------------- college table Cat_id d_id c_id …

Member Avatar for david.leatherman.908
0
412
Member Avatar for kc.smith.100

My objective is to send an SMS "receipt" from an Agent's mobile (viewing our web page) instantly to the "payer" to acknowledge receipt of a (small) cash payment .... using the bundled SMS package wih the Agent's phone contarct ... not an external SMS service. I'm hoping to do this …

Member Avatar for kc.smith.100
0
171
Member Avatar for Riu 2009

hi everyone..hope every1 is going great..well i'm a beginner in mysql and php and i cant fix the query as i desire..iam joining 3 tables here and displaying thre data.. 1st i have displayed course names from the courses table 2nd i have displayed the subject names from wich the …

Member Avatar for Riu 2009
0
233
Member Avatar for SaaDwTk

I have tried this command but is not working, can someone tell me why? Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.Arguments = "/C " & "rabcasm.exe " & "\Source\" & "3.3.0-1\3.3.0-1.main.asasm" myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden myProcess.StartInfo.CreateNoWindow = True myProcess.Start() myProcess.WaitForExit(1000) If Not myProcess.HasExited Then myProcess.Kill() End If …

Member Avatar for Reverend Jim
0
1K
Member Avatar for manishp5

I am trying to insert my form's data radio buttons into my mysql database. it works very well but when i skip any one value of my radio button,as this is more than 20, its giving error that Notice: Undefined index: qr1 in C:\wamp\www\exam\contents\omr.php on line 134 Call Stack # …

Member Avatar for manishp5
0
5K
Member Avatar for mcmanuel20

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package primenumber; /** * * @author mcmanuel */ public class PrimeNumber { /** * @param args the command line arguments */ public static void main(String[] args) { int num, a, b, …

Member Avatar for Taywin
0
171
Member Avatar for ritchonson101

Hi all...I really need someones help and real fast. I am trying to read a textfile with multiple columns that are each separated by a #. eg: Inventory.txt Nokia Lumia 610#Nokia#Touch#8GB#8#Tango OS#3899.00# Blackberry Curve 9380#Blackberry#Both#1GB#8#Blackberry OS 7#3499.00# Samsung Galaxy S3#Samsung#Touch#32GB#8#Andriod#6999.00# iPhone 4S#Apple#Touch#16GB#8#IOS#7899.00# I am trying to save each bit of …

Member Avatar for mLearning
0
165
Member Avatar for ThePythonNoob

Hi I need some help with this code, at the moment I am just trying to get the commandline function to work. It should when I type a command like help or exit react to it, however I have to type the command 3 times for it to work which …

Member Avatar for ThePythonNoob
0
181
Member Avatar for neoanomally

**Lay of the Land** I have been tasked with rewriting a website, (I'm new to the ways of PHP). This website is a way for users to transfer files, usually between 10 MB - 1 GB using HTTPS; which includes a coupling to a broad single-sign on service. Half the …

Member Avatar for neoanomally
0
199
Member Avatar for s1994

I'm missing something obvious here I think I'm trying to check for the existence of a file, and I hear this is possible with ifstream's .good property. Not even managing to get that far. Forgive me on this, I'm new to C++ Created a new VS console application. I then …

Member Avatar for mLearning
0
1K
Member Avatar for greg2186

I have a homework question that I'm a little thrown off by. Mostly because we haven't messed with strings much in class. Any help would be greatly appreciated. Using the UML class diagram as a reference, complete the Student class declaration. (fill in the blanks) class Person { public String …

Member Avatar for greg2186
0
270
Member Avatar for SaaDwTk

How can I write to a specific line in a text file? Can someone make me a function sWrite(filePath as string, noLine as integer, newText as string)?

Member Avatar for Reverend Jim
0
1K
Member Avatar for TraderX

Hello all I am trying to find a menu tree that I can use on my vbulletin site in my left column. I have looked at [URL=http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm]DHTML Switch Menu[/URL] I like it but, it doesn't remember what you had open (if you were in a sub folder) when you get …

Member Avatar for HunainHafeez
0
222
Member Avatar for eburlea

Hello. I want to get data from a table. I wrote the folloing JavaScript code: var homeTeam = document.getElementById('home').firstChild.data; The html code for the table is: <table> <tr> <td id="home"><span class='yellowcard'></span>Tottenham</td> <td id="away">Chelsea</td> </tr> </table> How is it possible to get the word 'Tottenham' in this case? My JavaScript code …

Member Avatar for Jimnto
0
18K
Member Avatar for diablo4151

I am working on login form where multiple users can sign in using their username and password. Depending on who it is, it will take them to certain file or link depending on how we set it for that user (john.doe goes to test1.php and jane.doe goes to test2.php). When …

Member Avatar for dbalas
0
11K
Member Avatar for ncis_sg1

I am trying to understand how exactly you are meant to prompt a user for two numbers and then list a menu for them to choose the course of action they want to do with those numbers however I am quite new to java and do not understand the concept …

Member Avatar for ncis_sg1
0
4K
Member Avatar for timon.bijl

Hello , I was actually very interested in making a server or ftp server in VB.NET but it needs so many functions and events that i even never heard of so i was wondering if you guys knew a good site for me to learn it or i also have …

Member Avatar for timon.bijl
0
276
Member Avatar for chris.causey.37

This code should read in some data from sector zero off of a USB flash drive, then print out some of the data. However when I run it there is nothing that was put in the buffer. int _tmain(int argc, _TCHAR* argv[]) { int ReadSect = 0; char diskname[60]; sprintf_s(diskname, …

Member Avatar for dx9_programmer
0
311
Member Avatar for jjones41

I know you guys are normally not usually willing to mess with stuff like this because it is so beginner, but i'm in need of major help. I have already created the code for the game it self, and it works perfectly fine. I now want to know how to …

Member Avatar for Reverend Jim
0
138
Member Avatar for jonnahealey

Hi All, Sorry if this isn't the appropriate place to put this question, but I'm new to the forums. My issue relates to ASP and a DSN-less connection. I have a website, which was built quite a while ago using DSN connections to an Access database, which ran on a …

Member Avatar for hielo
0
172
Member Avatar for SandD

Word Wrap I am new to python and I have no idea how to do this...Can you please help me.. For this option, first ask the user what the maximum number of columns for printing will be. ("How wide should the output be?") Next, the user will enter in a …

Member Avatar for vegaseat
0
162
Member Avatar for pattmorter

Hey everyone. So I'm trying to create a siple text editor for handling HTML. I got the majority of the program written to where when you click the toolbar the text is inserted. The only problem is that it only inserts it at the end. So Now I'm trying to …

Member Avatar for pattmorter
0
249
Member Avatar for LastMitch

Hi, I'm learning OOP and I'm having issue echoing an `attribute` function. This is my example: <?php class sandwich { function sandwich($hero) { echo "I like to eat $hero sandwich.<br>"; } } $a = new sandwich("roast beef"); $b = new sandwich("pastrami"); $c = new sandwich("turkey"); ?> When I echo it …

Member Avatar for LastMitch
0
143
Member Avatar for Delusional

Hello can anyone help me with the following problem? Here goes... I have the following in my js file: $(function () { $('a.modalDlg2').live("click", function (event) { loadDialog(this, event, '#User Details'); }); }); /* end document.ready() */ function loadDialog(tag, event, target) { event.preventDefault(); var $loading = $('<img src="../../Content/assets/images/nivo-loader.gif" alt="loading" class="ui-loading-icon">'); var …

Member Avatar for AleMonteiro
0
113
Member Avatar for stefano.a.feltre

i make a program that create a number of texboxes equal of number that i insert in the first textbox,after i received the others number of the other texboxes in input and i make the sum of these numbers The problem is that i insert in the first textbox "5" …

Member Avatar for Momerath
0
149
Member Avatar for riahc3

Hello I have the following: String somestring="203/9834/345"; somestring.replace("/",""); System.out.println(somestring); But it does not remove the slashes. How can I remove them? Thanks

Member Avatar for riahc3
0
143
Member Avatar for ZeroZen

Hey Folks! I'm using a windows hook to scroll horizontally through a listview. I have it aligned so it only adds items horizontally. I have 2 big buttons I'm using to scroll right and left with nice bitmaps on them... The problem is the listbox has scrollbars appear when I …

Member Avatar for ZeroZen
0
2K
Member Avatar for hwoarang69

this code works fine. all it's doing is setting collision around enemy. and if player touches player from the right than player moves to the right. if player touches enemy from left than player moves to the left. playerX = player x postion playerY = player y postion playerW = …

Member Avatar for Taywin
0
249
Member Avatar for findlay

Hello, Is there any way to access a large number of keys in a dictionary efficiently. Perhaps via indexing with an array of lookup values. Some pseudo code may help; dictionary={a:1, b:2, c:3 ...etc} lookup=[a, a, b, c, c ... etc] print dictionary[lookup] thanks, Joe

Member Avatar for woooee
0
271
Member Avatar for aus525

i want to Calculate and list the average response time taken from the current set of job recruitment records, i.e. all the communications between the School and casual candidates for the express Job, and then update the response time for each casual staff according to updated response time =(currentresponse time …

Member Avatar for BitBlt
0
196
Member Avatar for cnad

i am newbies here. i need help in build fuzzy logic in java. actually i did not have any idea how to built it. i want to built a fuzzy system using java for my final project. # i need a sample as my guide to build this system. # …

Member Avatar for Taywin
0
469
Member Avatar for Kerma

Hello I'm quite new to Python and would require some advice. I'm trying to create a picture viewer that changes pictures with regular intervals. The problem arises when I try to use time.sleep() along my go(), which changes the image. The code first loads images from a folder and uses …

Member Avatar for woooee
0
305
Member Avatar for BkPrahallad

I'm New in php & practicing a MLM Project, So i want know how to Calculate this & echo the Stages. ![MLM01](/attachments/large/4/MLM01.jpg "MLM01")

Member Avatar for urtrivedi
0
345
Member Avatar for ibthevivin

>Write a Java program that recursively reads ten names from a file, and then outputs the total number of characters in the names, the list of names, and the list of names in reverse order. All looping must be performed recursively. > Jay Walker Erol Flintstone C. Erol Madre Billy …

Member Avatar for Taywin
0
2K
Member Avatar for hanzo2001

Hello I have been trying to get past certein exercises in Pascal but for some reason I always run into problems that I don't understand. I have the following (synthesized) TYPE Triangle = RECORD x, y, z : word; END; Triangles = ARRAY OF Triangle; {more code} TriangleSize : integer …

Member Avatar for hanzo2001
0
567
Member Avatar for prathiyus

hetThe code is the executing fine,but i need to keep a pointer variable to return the last index of the array //for eg if i enter n as 20,my lastindex is 19,the pointer will return the lastindex... void sort(int a[],int *,int); void swap(int a[],int *,int,int); int main(void) { int i,n,a[100],b[100]; …

Member Avatar for prathiyus
0
136
Member Avatar for vivosmith

Hello, I have started learning php and mysql recently, and I have run into problems. I received this code: * Parse error: syntax error, unexpected 'average_user' (T_STRING)* and the problem is that I granted SELECT to average_user in the databse, but it is coming up with an error. What is …

Member Avatar for vivosmith
0
382
Member Avatar for bibiki

Hey there, I have these three tables: A, B, and C. A has a one-to-many relation with both B and C. Right now, what I am doing is: I run a select query on A. I put the results on an array, lets say aArray. For each row in the …

Member Avatar for nduduzo
0
286
Member Avatar for rssk
Member Avatar for daniel36

i am having the code if (eregi($file,$_SERVER["HTTP_ACCEPT_LANGUAGE"]) && !$use_lang) $use_lang = $file; This line of code is giving error:-Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\spm\includes\header.php on line 15

Member Avatar for pritaeas
0
157
Member Avatar for vicky30312

I'm still stuck on my number guessing game. (The program guesses the number the user inputs)I have wokred out some kinks but i am stuck again. I have a bunch of stuff but i am focused right now on getting the program past asking if the first guess of 50 …

Member Avatar for vicky30312
0
161

The End.