64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for djcrab

I'm taking a "self-paced" class trying to learn a little javascript. I'm doing the old Dino Quiz trying to add pop up alerts after a click on a radio button of any question. I only added the javascript functions "scoreQuestion" at the top. The rest was already typed for me …

Member Avatar for djcrab
0
167
Member Avatar for programmer12

Hi, I have a piece of Javascript that I need help revising it to fit my needs... My NEEDS: I need this script to work with Megavideos as well, Right now it works with just Youtube videos, and Vimeo Vids. Here is the Script: [CODE] (function($){$.prettyPhoto={version:'3.0'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:false,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'facebook',hideflash:false,wmode:'opaque',autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div …

Member Avatar for programmer12
0
217
Member Avatar for AaronLLF

I followed through a Java/LWJGL n lloydgoodall.com for a first person camera. There were about 33 errors that I fixed, though I get a message in the Eclipse console "java.lang.NoSuchMethodError: main Exception in thread "main" " Here is my code: [code] import org.lwjgl.Sys; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.GL11; import org.lwjgl.input.*; import …

Member Avatar for kramerd
0
681
Member Avatar for speedy94519

Hey you guys I have a question about binary representation. I was given two signed binary (SB) number and Im suppose to determine which has the largest magnitude. I get the problem and I dont want any help on it but Im not sure how to[U] read[/U] this binary information. …

Member Avatar for hamshu88
0
137
Member Avatar for Blitz-labs.com

I'm new to mysql and was wondering if someone could help me Im using the following code on search engine on my site I have to table blog and news when i change blog to news and post to article the error disappears but when i change it back i …

Member Avatar for Blitz-labs.com
0
304
Member Avatar for awadojag

I have a text file with a few cars brands and some information for the cars. I want the cars together with the information for the cars to be sorted in alfabetic order. Anyone can help me to get this working? This is my code: [CODE] #include<fstream> #include<iostream> #include<string> #include<conio.h> …

Member Avatar for awadojag
0
106
Member Avatar for fuston05

I have been using fopen, fread, and fwrite to create and add content to txt files. Now i need to be able delete only certain sections of a txt file. the sections are appending "=>" to beginning of entries, I was using it to properly explode() the file for reading …

Member Avatar for fuston05
0
120
Member Avatar for yapkm01

This seems to be weird: [code] int main(int argc, char* argv[]) { cout << "function main() .." << '\n'; char ch = 0; double number_value=1.1; cin >> ch; cin.putback(ch); cin >> number_value; cout << "1 .. " << " " << cin.good() << " " << number_value << '\n'; cin …

Member Avatar for Apple4
0
146
Member Avatar for facarroll

I've got my code working OK in that the correct results are drawn from the database. What I have here in the code is an array consisting of an image, accompanied by its title and thirdly a link to activate a quiz associated with the image. Everything works fine, except …

Member Avatar for facarroll
0
103
Member Avatar for gaurav_13191

This is my code for drawing a circle using mid point algorithm:- [CODE] //Midpoint circle algorithm #include<graphics.h> #include<stdio.h> #include<conio.h> void drawcircle(int xc,int yc,int r); int main() { int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"..//bgi"); drawcircle(250,250,10); getch(); return 0; } void drawcircle(int xc,int yc,int r) { int p,x=0,y=r,incr1=2*x+3,incr2=incr1+2-2*y; void drawPixel(int,int,int,int); drawPixel(xc,yc,x,y); p=1-r; while(x<=y) { if(p<0) …

Member Avatar for Adak
0
134
Member Avatar for jjemphoung

hi! please help me. i want my data report to be in landscape mode. i've read many forums and they suggest to install vb6 sp6. i've already downloaded it from MS site and installed it. and now when i open my project in vb6 and type datareport1. there is no …

Member Avatar for dspnhn
0
222
Member Avatar for ErlendHL

Hi. I am making a chat program. In the index.php file, I create a session 'session_username'. I use ajax when someone chat, so I send the message to another php file. That php file should get the session_username session and write that + the message to mySQL, but there are …

Member Avatar for ryan311
0
69
Member Avatar for El3et

Currently making a space invaders game using a game engine framework from my university called EGG. It tackles all the DirectX for me and even has collision detection. All I have to do is add the game code into the framework using c++. At the moment I'm finding it hard …

Member Avatar for PsychoLogic
0
120
Member Avatar for Violet_82

Hi guys, I have a problem with a program: #include <iostream> #include <string> using namespace std ; // Uses a class with "public" member variables, so directly accessible class Student { public : string name ; int reg ; } ; int main( ) { const char NL = '\n' …

Member Avatar for Violet_82
0
129
Member Avatar for john_beginner

hello eve one, i'm student of Bsc (IT) i have to made one small application in VB with in month so whould u pls suggest me any application which can be made with in one or one & half month .... thanx in advance...

Member Avatar for kinwang2009
0
151
Member Avatar for sjn21682

hi everyone!!! need help here, how can i pass a string to a class? i have two forms and a class, my 1st form is the main form and the other form is used for assigning to a keyer, this form has a combobox where i will select the keyer …

Member Avatar for destruct0
0
1K
Member Avatar for burcin erek

I want to generate 10 random numbers. but all numbers will be different. so I tried to use bool first make all false. and each generate, assign that argument with bool but someting is wrong. because outcome is not correct. [CODE]#include <cstdlib> #include <iostream> #include <ctime> #include <windows.h> using namespace …

Member Avatar for burcin erek
0
183
Member Avatar for Alerwiali

hi Everyone !! i need help guys with hash table in c ..could anyone help me by a little explaination of how to use hash tables ...please give examples.. Thanks in advance for all.

Member Avatar for Alerwiali
0
134
Member Avatar for dschuett

how come my real escape strings are getting entered into my table as blank entries - if i don't escape them, they enter just fine.... Any ideas? [CODE] <?php session_id($_POST['current_email']); session_start(); if (!empty($_FILES)) { $con = mysql_connect("xxx", "xxx", "xxx") or die("cannot connect"); mysql_select_db("xxx", $con) or die("cannot select DB"); $tempFile = …

Member Avatar for dschuett
0
136
Member Avatar for Thropian

I've been doing programming in tkinter for awhile now and I came across a problem...this problem only shows up after a single part but here is the code...kinda lengthy.if you go to the equip menu and equip bare neck you can't change necklaces again. any help in shortening this or …

Member Avatar for Thropian
0
4K
Member Avatar for jib

I need to create an application that displays math problems by randomly generating two numbers, 1 through 10, and an operator (*, -, /, +) and prompts the user for an answer. The application should check the answer and display a message, display the correct answer and generate a new …

Member Avatar for killbill07
1
297
Member Avatar for mikecronauer

Hi all, a few quick questions. (Theory related) 1. Can you put javascript in a PHP file? 2. If the answer to that is no ... how can a website have user sign ins / security and also be using ajax to dynamically update a pure xhtml web page? 3. …

Member Avatar for quasipickle
0
117
Member Avatar for stvnddich

I have to write a C++ program that finds all the perfect numbers between 1 to 10,000 and print out the factors after the code finds them. I have written the code to find the numbers, but cant seem to wrack my brain on how to make the factors print …

Member Avatar for Kontained
0
713
Member Avatar for zachattack05

Is something like this possible: [CODE=C#] int MyParameter = 3356; DataTable x = new DataTable("CommandParams"); x.Columns.Add("ParamName"); x.Columns.Add("ParamType"); x.Columns.Add("Object"); DataRow y = x.NewRow(); y["ParamName"] = "@SomeParamName"; y["ParamType"] = MyParameter.GetType(); y["Object"] = MyParameter; SqlCommand z = new SqlCommand(); z.Parameters.Add(new SqlParameter(x.Rows[0]["ParamName"], (x.Rows[0]["ParamType"])x.Rows[0]["Object"]); [/CODE] I'm trying to come up with a method that can …

Member Avatar for zachattack05
0
188
Member Avatar for ccube921

I wanted every variable in the array to have .x, .y, and .cont, the error occuired on line 11: [CODE]#include <iostream> using namespace std; struct attrib{ char x; int y; char cont; } attrib brd[8][8]; //ERROR WAS HERE int main() { for ( x=-1; X<8; x++) //accesses all columns in …

Member Avatar for Unimportant
0
128
Member Avatar for ibdatx

Hi all, I am new to XAML however I have an understanding of XML. I am trying to bind a button to an XML file such that when the button is clicked, it the xml element is displayed within a listbox. Then I want the listbox selected item to be …

0
112
Member Avatar for chudapati09

I need to write a program that changes a Roman Numeral to a numeric value. I've been inputing the roman numeral "CCLXXXVII", expecting it to output "287". Instead I've been getting "7101". Here is my code: [CODE] #include <iostream> #include <string> using namespace std; const int VALUE_I = 1; const …

Member Avatar for chudapati09
0
178
Member Avatar for frogboy77

How do i create a large array in c++? Apologies if this has been answered already but after searching didn't find what i was looking for. i want to create an integer array of size 1500000 i.e int array[1500000] but my compiler wont allow it. I remember seeing something about …

Member Avatar for frogboy77
0
323
Member Avatar for RobBobSmith

Hello all: I would appreciate some advice on array subscripts. I am having problems passing 2-D arrays to functions I have written. The reason is that some of the arrays are dynamic arrays subscripted as array[i][j], whereas some of them were created in a class I wrote and these are …

Member Avatar for RobBobSmith
0
138
Member Avatar for chudapati09

I have to write a program where the user would input multiple numbers. This is what it could look like. [CODE] 3 29 98 78 88 100 9 70 73 81 [/CODE] The input is never the same, and I just need to access each number one at a time. …

Member Avatar for chudapati09
0
156
Member Avatar for ceyesuma

I keep getting this error. The app is looking for a class and in fact so am I where should this class be? I can't find it in the: [b]db-derby-10.6.2.1-bin[/b] and check sup of the dl said it was unaltered? Thanks [code] java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) …

Member Avatar for ceyesuma
0
2K
Member Avatar for ricardo.crudo

Is necessary deallocate memory of pointer-to-pointer? Example: [CODE] my_type_t **example; example = (my_type_t **) calloc(10, sizeof(my_type_t *)); for (i = 0; i < 10; i++) { example[i] = (my_type_t *) malloc(sizeof(my_type_t)); } // ... free(example); // it enough? // Or is necessary do this... for (i = 0; i < …

Member Avatar for gerard4143
0
90
Member Avatar for hanvyj

I have a load of methods that throw exceptions sometimes, if they throw them I want to catch them, call a functino and then try them again a few times, here is what I am currently doing: [CODE]bool loop = true; int i = 0; while (loop) { try { …

Member Avatar for nick.crane
0
236
Member Avatar for claw72

Hello everyone. i really need help on this one.. sorry for bad english! I have made 2 listbox.. listbox1 and listbox2. data on listbox 2 comes every after i double click listbox1 data. my codes for that works properly. i am working in a excel worksheet. i have these columns …

Member Avatar for AndreRet
0
179
Member Avatar for Jsplinter

The following code generates an error when the [code]//vector<int> myVofInt2(n);[/code] line is uncommented. I get: error C2059: syntax error :'constant'. Does anyone know why it treats the declaration/initializations differently when the vector is inside a class? The vector<int> in the main function creates a vector<int> with ten elements, which is …

Member Avatar for Jsplinter
0
175
Member Avatar for tomlocke

Hi I am having problem connecting to my sql2000 database. The database is on a MS Server 2008. I had no problem connecting to my other server Server2003. I selected '.Net Framework Data Provider for SQL Server', entered my server name, and selected 'Use SQL Server Authentication'. But when I …

Member Avatar for tomlocke
0
112
Member Avatar for plasticfood

[CODE] String[] names = new String[namesListSet.size()]; int[] nums = new int[namestimesSet.size()]; namesListSet.toArray(names); [B]namestimesSet.toArray(nums);[/B] for (String s : names) { System.out.print(s); } [/CODE] i'm getting an error on the bold part. getting symbol not found.

Member Avatar for plasticfood
0
82
Member Avatar for techie1991

Can someone please direct me to the code for the class <int> in python. I know that it must have written in C, but I could not understand, where to ask this query. Though I tried to figure it out myself, but could not even understand, which folder to attack …

Member Avatar for techie1991
0
156
Member Avatar for nukabolhi

How can I get the values in Check box while loop in php. Pls give me some tips to get the values from the below php code. [CODE] $sql=mysql_query("select * from tree"); while ($result = mysql_fetch_array($sql)) { echo "<br>"; echo "<label> <input type=checkbox name=Test value=checkbox id=Test_0 > $result[fruit] | $$result[fruit_charges] …

Member Avatar for phpology
0
2K
Member Avatar for fobos

Hello all, well i have a problem, but it sorta works. Here is my code. [CODE=JAVASCRIPT] var toggleState = 0 function toggleMe() { if(toggleState == 0) { alert("Checked"); toggleState = 1; } else { alert("Unchecked"); toggleState = 0; } } [/CODE] HTML [CODE=HTML] <input type="checkbox" onclick="toggleMe()" />Toggle me <input type="checkbox" …

Member Avatar for fobos
0
96
Member Avatar for gedas

can somebody tell me what this code actually does? [CODE] int i = 0; while (i < -1) { double x = xCoordinates[i]; double y = yCoordinates[i]; long xx = getWidth() - Math.round((double) getWidth() * x / 1024.0); long yy = getHeight()- Math.round((double) getHeight() * y / 768.0); g2.translate(xx, yy); …

Member Avatar for gedas
0
92
Member Avatar for shanker86

Hi all here is my pair.h file which when I run using g++ on linux I am getting error like "pair.h:39: error: expected constructor, destructor, or type conversion before ‘ostream’" any help would be greatly appreciated! Thanks WRAP template <class T1, class T2> class pair2 { private: T1 first_; T2 …

Member Avatar for shanker86
0
431
Member Avatar for whitetigerclaws

I have the same assignment someone else ask help with. The assignment calls for a test score calculator that calculates and displays the score total, score count, and average score. If the user clicks the Display scores button, the application sorts the scores and displays them in a message box. …

Member Avatar for sean_king
0
345
Member Avatar for miss_indie

aww. i'm so sorry for posting again. i have so many questions. i'm so sorry. ahm. i was just wondering if my code is possible if ever i'm going to insert a remarks to my database. here is my code: [CODE]$totalg=($totala+$totalb+$totalc+$totald+$totale+$totalf)/6; if(totalg <= 5.00 && totalg >= 4.51){ $remark=Excellent;} else(totalg …

Member Avatar for miss_indie
0
104
Member Avatar for DoEds

I have this txt file containing names and scores. "[COLOR="red"]ex. Player1 35[/COLOR]". My program able to read it and store it to an Array of String. Here's my question. Is possible to separate the name and the score and store them in different Arrays? [CODE]ex. myArray = {"Player1 35","Player2 30"};[/CODE] …

Member Avatar for DoEds
0
108
Member Avatar for Roadphantom13

Hello everyone. This is my first post so if something doesn't work, bear with me. I'm a beginner at python and tried to write a program that will calculate Average Word Length. I wrote what I thought should work but the final answer keeps coming out to an average of …

Member Avatar for forsakenedzero
0
5K
Member Avatar for andydeans

hi, i am struggling and it will prob be a simple answer but cannot figure it out at all today. checked online but no use. my to create my view i need to compare a column to a yes or no. at the moment i have tried this but no …

Member Avatar for andydeans
0
85
Member Avatar for gchurch

hey all i have an array stored in a variable - $SelectRoom which is put through a foreach to display each value of the array: [CODE] foreach($SelectRoom as $value) { echo $value; } [/CODE] no that works fine however i want to send this array through the url with other …

Member Avatar for gchurch
0
115
Member Avatar for jbrock31

I am exporting data to an excel file. This works, however, one of my columns doesn't format properly with currency. Through code, how can i make an entire column currency just like when i do it through Excel itself, by going to the format options. I have tried using the …

Member Avatar for jbrock31
0
119
Member Avatar for akvlko

Hi Friend, I have a Jquery Validation code in which I have written [CODE]element.focus();[/CODE] When I view that page into other browser I able to modify that previous Field if I was left next field blank or wrong input. but in chrome i wont able to do so..! Can you …

Member Avatar for akvlko
0
115

The End.