199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lostelf

Hello I'm trying read data from a file and display it into 3 arrays coloums. however I keep on getting an error on line 33 stating [expected primary-expression before "int,double,int,int"] [ISO C++ forbids declaration of `readHousehold' with no type] I cant figure it out but I know it has to …

Member Avatar for Lostelf
0
469
Member Avatar for godzab

<html> <head> <title>Hell WOrld</title> </head> <body> <form method = "get" action = "index.html"> <input type = "text" name = "username" /> <input type = "submit" value = "submit"> </form> <script type = "text/javascript"> document.getElementByName("username").onsubmit = alert("Hello World"); </script> </body> </html> In the code, when ever you click the submit button, …

Member Avatar for godzab
0
164
Member Avatar for sourab

Hi, i am developing a website but got stuck. I got couple of queries , I would appreciate if anyone can help me out. 1. is it possible to re-size image ( e.g on facebook thumbnail picture ) without loosing quality using php code. 2. If not is there third …

Member Avatar for cereal
0
255
Member Avatar for Suzie999

I'm trying to split an array which is that of unsigned char where NULL marks the split point I have written this code, but it just looks clunky, and I would like to ask advice on any other more efficient methods of doing such a thing there might be. #include …

Member Avatar for Suzie999
0
1K
Member Avatar for njbst18

I'm new to creating jar files. I'm using JCreator and have set up the jar creation and the manifest using winrar and txt to get it to run. However if I run the .jar from anywhere other than the programs root directory all the images vanish. I have been looking …

Member Avatar for NormR1
0
753
Member Avatar for Violet_82

Hi all, I wonder if you can help me again with some more json. I have this json fragment: cars_data={ "haveAlook": { "xmlns:fo": "http://www.w3.org/1999/XSL/Format", "xmlns:inlineData": "Lookup", "CategoryAttributes": { "attOne": "MyattOne", "attTwo": "MyattTwo", "attThree": "MyattThree", "attFour": "MyattFour", "attFive": "MyattFive", "attSix": "MyattSix", "attSeven": "MyattSeven" }, "TheThumbnails": { "thumb1": "first.png", "thumb2": "second.png", "thumb3": …

0
100
Member Avatar for kytro360

Hello, I am trying to multithread a listBox which has URL's in it. Basically what I am trying to do is to make it so each thread I make, will visit one of the URL's in the listBox and do a GET request. I was wondering how do I make …

Member Avatar for kytro360
0
235
Member Avatar for Aghtar

Hello, first time here in the forum, though Ive used it before for help. Okay so I have to create a constant to define the size of two float arrays and Create two one dimensional float arrays in the function main() called highs and lows. const int MAX = 7 …

Member Avatar for NathanOliver
0
134
Member Avatar for 3e0jUn

How do you make Python accept multiple strings and break them down in an input? For example, main = input ('> ') if main == ('ECHO',some_words): print (some_words) But everytime I do that, the some_words string wouldn't be defined. Error Message: Traceback (most recent call last): File "<pyshell#7>", line 1, …

Member Avatar for TrustyTony
0
187
Member Avatar for triumphost

I hooked a game's OpenGL.dll with my own glwrapper but this game uses two dll's.. It uses a wrapper of OpenGL32 and my hook is also a wrapper. So what I need: I want to know if these symbols point to the same functions.. http://i.imgur.com/eMZC5.png @28, @28, @28.. That means …

Member Avatar for gusano79
0
136
Member Avatar for jigar23

I am trying to create a basic program with a user defined header file.I created the project in visual studio. #test1.cpp # #include <stdio.h> #include "multiply.h" int main() { int y; y=multiply(5,10); printf("%d\n",y); printf("%s","jigar"); getch(); return 0; } # multiply.h # int multiply(int a,int b); # multiply.c # #include "multiply.h" …

Member Avatar for jigar23
0
315
Member Avatar for techy23

Hi! i have to *create a game , purely in C Language*. How to start and how to end? what kind of game can i try to make? which IDE to use ? i cant run <graphics.> header file for graphics in any IDE. How to configure init() = (&gm, …

Member Avatar for WaltP
0
420
Member Avatar for laura301019

Hi, so practicing some web development code and the part im stuck on is when a button is clicked it changes to picture and the caption is supposed to change. However no matter what i try the caption remains the same. The following is part of the code i have. …

Member Avatar for laura301019
0
194
Member Avatar for rakibtg

I am trying to write current website url in a frame using javascript. Butt my methods does not working... What I want to do is to write the current url path into this code instead of "CURRENT+WEBSITE+URL+HERE" text. My current iframe code: `<iframe allowtransparency='true' frameborder='0' height='600px' id='web search' marginheight='0' marginwidth='0' …

Member Avatar for rakibtg
0
354
Member Avatar for laura301019

So i need to write or modify javascript code i think, for what i want to do. The web page im developing displays a table with two arrows beneath, one to go show next and one to show previous. I need the show previous arrow to display an alert box …

Member Avatar for Taywin
0
690
Member Avatar for Majestics

I am working on a project which require to add panel over another panel and repaint it. I can easily do in java. I am getting some problems in c# I have a form name : Registeration.Form I have a panel name : mainPanel I want mainPanel to display Registeration.Form …

0
93
Member Avatar for dwhite12

I need to write a code that imports a list of files then goes through each file and rewrites only half the file. Cutting off the file at a key word. If I can make my code print the half I need I can make it write new files with …

Member Avatar for dwhite12
0
232
Member Avatar for AlBars

Hi I am using the following code to retrieve all the members of a specific active directory group. The code works but the problem is that the code returns all users in "distinguishedName" form which has a lot of extra info I don't need. I need the users to be …

Member Avatar for paulreg
0
2K
Member Avatar for Bobby99

<!DOCTYPE html> <html> <body> <h3> Send review request to test@something.com:</h3> <script type="text/javascript"> function FormValidator(theForm) { // check to see if the field is blank if (theForm.sname.value == "") { alert("Sandbox name should not be blank"); theForm.sname.focus(); return (false); } // require at least 3 characters be entered if (theForm.sname.value.length < …

Member Avatar for Taywin
0
115
Member Avatar for osiron

Hey guys, I'm trying to create a iterative heapsort program and for some reason when I input 10 random numbers into the array, only 9 numbers are sorted. Here is an example of my input/output: Input: 45 15 2 44 30 83 30 86 66 49 // 10 random numbers …

Member Avatar for Taywin
0
145
Member Avatar for eLaunty9487

hello, i have a dropdown list of several values, now i am successfully created a script in which data is display from database by selecting a value from drop down i.e a post value thrown by select a value from drop down. My question is how to display data for …

Member Avatar for ibakir
0
2K
Member Avatar for tan3587

I have created a linked server in ms sql 2005 on server machine A . It links to another database(say D1) located physically on a different server machine B. I have jsp code on Server A which accesses local database on server A. Can I access the remote database D1 …

Member Avatar for tan3587
0
186
Member Avatar for kovidd

i have recently started learning java .... i completed "head first java" recently ....it is just an intro to java . now i am looking to learn other aspects of java so could you tell me which book to read next . Or should i jump straight into a example …

Member Avatar for JamesCherrill
0
245
Member Avatar for Pidgetastic

I'm trying to create a treeview which is mostly populted by a database. I have two code snippets which on their own work fine but when I place them together it won't seem to work no matter what I try. Main Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html …

Member Avatar for blocblue
0
739
Member Avatar for McLaren

Hello, is my eyes wrong or what but I cannot see simple thing. //ok $this->utils->logging('DEBUG', 'submit dogs card5: ' . serialize($slip_data)); foreach ($slip_data as $data) { //not ok $this->utils->logging('DEBUG', 'submit dogs card7: ' . serialize($data)); }; the first logging line logs this array: array ( 36017 => array ( 'subtypes_id' …

Member Avatar for McLaren
0
89
Member Avatar for Tinnin

Hi Daniweb community. This is my first post. I'm new to this programming lark and I've hit a snag with an exercise I'm attempting. EXERCISE Write a program that asks the user to type an integer N and compute u(N) defined with : u(0)=3 u(n+1)=3*u(n)+4 My Attempt: // Iteration #include …

Member Avatar for Tinnin
0
117
Member Avatar for Ararat

I'm trying to compare the element pointed by an iterator to an integer, but so far i haven't had any luck in doing so. please correct whatever i'm doing wrong. Thank you. vector<int>::iterator y; for (int i = 0;i<n2;i++) { cin>>temp; cnt = 0; y = lower_bound(a.begin(),a.end(),temp); if (*y == …

Member Avatar for Ararat
0
1K
Member Avatar for Ashenvale

hi, I originally made a 1 dimensional array but then modified it into 2 dim. Problem is, I used percentage to determine who has the most number of votes but variable newPresident only output Estrada J. which belong to array candidate[0]. When I tried printing the elements in percentage[], only …

Member Avatar for Ashenvale
0
370
Member Avatar for asthaaa

hey..m a student of last year of BCA...i m making my project on crime management system...i had made my database in ACCESS 2003 n using the C# language...in database i hd taken the auto number as datatype in my serial number column. bt when m accessing my code in C# …

Member Avatar for hericles
0
116
Member Avatar for TarkiB

Hi there, I'm having trouble with floats in Java. My program accepts a number in the form of a float. The number typically has two decimals (but not always). It seems to work fine in most cases. For example, I could put in 54.67, and that number would be passed …

Member Avatar for JamesCherrill
0
443
Member Avatar for anand01

Hi all, How could we validate that given string should only contains alphabetic characters, pls share some ideas, thanks in advance

Member Avatar for anand01
0
108
Member Avatar for kletig

Hi guys Currently working on a webshop and have been running in to some noob problems. So i have three tables that i need to pull some data out of. One table stores the suppliers, the other one orders and the third ordered products. It looks something like this: ::: …

Member Avatar for pritaeas
0
153
Member Avatar for 3e0jUn

Can someone give a code snippet on how to 'chat' using the XMLRPC library in Python? Here's my server code: from xmlrpc.server import SimpleXMLRPCServer from xmlrpc.server import SimpleXMLRPCRequestHandler import os from os import access, path PATH = 'chatlog.$' class RequestHandler(SimpleXMLRPCRequestHandler): rpc_paths = ('/RPC2',) server = SimpleXMLRPCServer(("localhost", 8000), requestHandler=RequestHandler) server.register_introspection_functions() server.register_function(pow) …

Member Avatar for Gribouillis
0
526
Member Avatar for mitesh.24jain

In datasource i have 5 columns and i want 3 columns data in particular dropdownlist having a distinct value... plz help

Member Avatar for mitesh.24jain
0
214
Member Avatar for system_Broken

after execut this command netstat -na have a display which are showing some listening ports and local address and state i want know which port i can use for socket c# programming ?

Member Avatar for samsylvestertty
0
138
Member Avatar for Violet_82

Hi chaps, I wonder if you can help me with this. I have the following script: $(document).ready(function(){ init_get_data(); }); var cars_data; function init_get_data(){ my_data={"data1":{"-xmlns:fo":"http://www.w3.org/1999/XSL/Format","-xmlns:inlineData":"Lookup","TheAttributes":{"-price":"Price","-other_attribute":"other_value"... console.log(my_data.data1.TheAttributes.price); } Being very new to json I am trying to write on the firebug console to check how to get the values out of the …

Member Avatar for Violet_82
0
119
Member Avatar for architact

Hello, I am assigned with the task of cloning digg.com, I am doing quite well except one issue, I want the user to enter a link in a text field and then I want the take a screen shot of that url (like digg.com). Please help me with what libraries …

Member Avatar for pritaeas
0
643
Member Avatar for GlenRogers

I'm going to build my wife a home banking application so she can easily keep track of our finances. I want it so that it you can input every credit to our bank account(wages etc). For each item of credit there will be 3 seperate input fields: date, amount, source(where …

Member Avatar for JamesCherrill
0
149
Member Avatar for megdan

hi, Please im developing an application reserves rooms for clients it is in a way that you cannot insert another clients details if another client has chosen the room for a particular date. i have binded a comobox with a database that contains information about the various rooms. MY PROBLEM …

Member Avatar for Pgmer
0
232
Member Avatar for vijayram

Hai everybody, i want to layout rcords in three columns. 1. previous records 2.todays records 3.nextday records i did query. but i have problem in display records in layout page. how to make it . anybody plz help me. public function executeIndex(sfWebRequest $request) { $myplans_obj= Doctrine_Query::create()->select('m.personal_id,m.photo,m.plantitle,m.country_id,m.zone_id,m.city,m.plantype,m.about_plan,m.date,m.what,m.where_go,m.time')->from('meetnewpeople m') ; $result = …

Member Avatar for diafol
0
153
Member Avatar for yousafc#
Member Avatar for ChrisHunter
0
222
Member Avatar for lesliebielski

I am in beginning Java and using Dr. Java to write my programs. I am trying to write an array that user input sets up the length of the array(#of students) that character grades are stored in. It is suppose to ask if you want a full print out, to …

Member Avatar for lesliebielski
0
199
Member Avatar for mascot07

I have a problem on using php array for checkbox by using **foreach**

Member Avatar for themastermind
0
112
Member Avatar for vizz

For below code I want scrollbar that can scroll content inside div **#inner_content**. I have tried lots of scrollbars, but, nothing works. I have purchased [this](http://codecanyon.net/item/rollbar-jquery-scrollbar-plugin/2113353) scrollbar which is also not working for my code. Suggest scrollbar which will work! Help me please... <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"</script> <script type="text/javascript" src="http://code.jquery.com/ui/1.8.22/jquery-ui.min.js"></script> <script …

Member Avatar for vizz
0
156
Member Avatar for kothaisaravan

Hi, My Application was developed using c#.NET with java web services to connect to oracle database. It is working fine with my windows XP machine, but when i deployed the same app in another win7 machine by just cpoying the release folder with dll and exe files and launched the …

Member Avatar for kothaisaravan
0
228
Member Avatar for srinivaskolli

> Hi everyone, I have to implement a circular queue using linked list here. > We imagine a queue in a circular shape where we break at a point such that now it has 2 ends > Now we have to perform insertion and deletion at both ends one at …

Member Avatar for srinivaskolli
0
2K
Member Avatar for aianne

Hello everyone! I need your help. So I am currently working on my school project for web based voting system and I'm having a hard time to figure it out how to pass value 1 of multiple selected radio buttons to database. Here's my code so far: Here is my …

Member Avatar for aianne
0
1K
Member Avatar for *sharath*

Does the number of classes show any impact on the speed of an application? For example if there are more number of classes (or packages) does it make the application to run slow compared to the one that has less number of classes (or packages)? Thanks in advance.

Member Avatar for *sharath*
0
122
Member Avatar for james.price.39501

#pragma once #include <fstream> namespace testrun1 { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::IO; using namespace std; #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { ifstream inputFile; ofstream outputFile; inputFile.open("1.txt"); outputFile.open("sum.txt"); int num1; int num2; …

Member Avatar for Ancient Dragon
0
442
Member Avatar for tutusaint

I have a registration form which sends confirmation email to the new user. i also want the same email to be sent to all registered users. I have a table containing all registered members email and i need to inform all of them of the new user. This is what …

Member Avatar for Javvy
0
110

The End.