199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jimbakl

hello everyone... i ve got this txt file and i want to scan it and insert the 2nd row digits at profit[ncustomer] matrix, where ncustomer is the 1st digit which readed from file. After that i want to add all the other digits in a 2 dimensional matrix dis[ncustomer][ncustomer] ... …

Member Avatar for Mouche
0
167
Member Avatar for techyworld
Member Avatar for Joemeister

I'm using sessions to receive my info from my database table... But I'm not quite sure how to get a image because if I just say this: [CODE]echo "<img src='" . $_SESSION['pic_location'] . "' />";[/CODE] I only get like a little black dot thingy. I don't know if one could …

Member Avatar for diafol
0
103
Member Avatar for java.util

Hello, I have this little piece of code [CODE]System.out.println("Write a sentence: "); String sentence = tastatur.next(); String[] temp; String divider = " "; temp = sentence.split(divider);[/CODE] The problem is that when I enter a sentence only the first word gets stored in the string. For instance if I enter "dum …

Member Avatar for java.util
0
146
Member Avatar for Syrne

Hi guys, So for my next assignment I am required to, at some point, create a function that searches through an array of objects and sets a boolean value in a corresponding boolean array at the same position as the object in the object array, if that makes any sense. …

Member Avatar for ~s.o.s~
0
152
Member Avatar for toms ace

Hey, I currently have a link that links to a different part of the same page using <a href="#title"> which is defined using <a name="#title">. It all works fine but when clicked it adds #title to the end of the URL and when the user clicks the back button it …

Member Avatar for toms ace
0
2K
Member Avatar for cypherscouter13

I keep getting these error messages: "error LNK2019: unresolved external symbol "void __cdecl MainPhase(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > *)" (?MainPhase@@YAXPAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z) referenced in function _main" "error LNK2019: unresolved external symbol "void __cdecl DrawForKaiba(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > …

Member Avatar for sfuo
0
267
Member Avatar for techyworld

am having these error: /home/Desktop/L3Q3.c: In function ‘inputStudent’: /home/Desktop/L3Q3.c:23:2: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’ /home/Desktop/L3Q3.c: At top level: /home/Desktop/L3Q3.c:27:27: error: expected ‘)’ before ‘std’ Help please? [CODE]#include<stdio.h> typedef struct student { char surname[20]; char oname[20]; char address[20]; int age; }stud; void inputStudent(stud …

Member Avatar for techyworld
0
118
Member Avatar for inspireddesign

Hello all, My first problem is that I would like to refresh a DIV tag on the same page using href onclick handler. Currently I can't seem to get this to work with the code I've developed. My second problem is that once this works for one DIV I would …

Member Avatar for okansari
0
892
Member Avatar for ucdbrummy

I'm new to this site and am desperate for help. I'm learning C++ for university, and have just received my second project. it goes like this: Write a program in which: A random integer between 0 and 500 is generated at the beginning. The user is asked to guess the …

Member Avatar for ucdbrummy
0
76
Member Avatar for xenan

hi can someone helped me in my triangle ><? my prof told me to make a program that ask the user to input the height of the triangle and the user must be able to input the height.. and the triangle must be a triangle not a right triangle.. this …

Member Avatar for gerard4143
0
140
Member Avatar for XmaarX

Im making an very simple Blackjack game and i need to add values to my cards. and being an beginner is not really helping me =). Any ideas?!? this i what i got so far(for the deck of cards). using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication10 { …

Member Avatar for XmaarX
0
152
Member Avatar for hiyatran

I trying to display a random number using innerHTML Here's my code: [code]<html> <head> <script language="JavaScript"> var myArray = new Array("String1", "String2", "String3", "String4", "String5", "String6", "String7", "String8", "String9", "String10"); var num = Math.floor(myArray.length * Math.random()); document.writeln(myArray[num]); //document.getElementById("myString").innerHTML = myArray[num]; </script> </head> <body> <div id="myString"></div> </body> </html>[/code] it works when …

Member Avatar for MartinRinehart
0
92
Member Avatar for bradz1993

[CODE]Public Class Form1 Private Sub Button1cmdRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1cmdRun.Click ' Variable declaration & initilization Dim hour As Integer Dim minute As Integer Dim second As Integer ' Validation If IsNumeric(txbTotal.Text) And txbTotal.Text Then >= 0 Then ' Total number of seconds Dim totalSeconds As …

Member Avatar for Unhnd_Exception
0
186
Member Avatar for DriftingFable

Hello Daniweb, I am a student in my CSC 194 using Visual C++ 2008. I am designing a program according to these standards. Most of my knowledge is strictly textbook information so bare with me. [QUOTE]Imagine you are developing a software package that requires users to enter their own passwords. …

Member Avatar for DriftingFable
0
478
Member Avatar for techyworld

Can someone help me with these lines of codes?it gives me this error: /home/Desktop/L3Q2.c: In function ‘main’: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘char (*)[20]’ /home/Desktop/L3Q2.c:19:2: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘char (*)[20]’ /home/Desktop/L3Q2.c:22:2: warning: format ‘%s’ …

Member Avatar for techyworld
0
205
Member Avatar for gd740

Hi, i am still a beginner in vb.net, please help me.. My question here is when i input data to a textbox1 and then i press enter using keyboard, then another description will appear in textbox2. For example, i have to key in a company's code: A001 into textbox1, after …

Member Avatar for Mitja Bonca
0
166
Member Avatar for sullivan757

I'm trying to figure out how to produce the following code: • Add person • Print all people (alphabetically by name) • Print all people of a designated type (faculty, staff, students) • Print a faculty member and the students who are studying the program taught by the faculty member …

Member Avatar for sullivan757
0
3K
Member Avatar for caswimmer2011

Hey, Is there a way to play a system beep on mac os x in Java? I usually use the beep function in Toolkit class for my PC but I tried the beep function in Toolkit but it doesn't work on my mac. Any help? Thanks in advance!

Member Avatar for harinath_2007
0
281
Member Avatar for matt_570

Hey I have this tough assignment that just keeps on getting harder and harder. I have 3 more functions to complete. Function1: I have to print the positions of the three consecutive values that have the largest average. If more than 3 consecutive values have the same average, print the …

Member Avatar for pratik_ghulaxe
0
1K
Member Avatar for luweegee

[CODE] <?php session_start(); $con = mysql_connect("localhost","root",""); $sql = mysql_select_db("blog", $con) or die(mysql_error()); ?> <html> <head> <title>///</title> </head> <body> <div id="admin-content"> <?php if($_SESSION['uid']){ $sel = "SELECT * FROM `users` WHERE `id`='".$_SESSION['uid']."' "; $result = mysql_query($sql) or die (mysql_error()); if(mysql_num_rows($res) == 0){ session_destroy(); echo "Please <a href='login.php'>Login</a> to your account, or <a …

Member Avatar for luweegee
0
716
Member Avatar for Sorcher

Hello guys, im a PHP system programmer. My javascript/ajax skills are very limited. What i need to do is updating a div tag whenever an XML file updates. And if you cant help me with that i can do with just updating a div tag with PHP script inside every …

Member Avatar for Airshow
0
115
Member Avatar for zack_falcon

I'm working on a C# project that requires a lot of buttons, but most of the buttons do mostly the same thing, with simple variations on the number to be passed. Here's what I've done so far: [CODE]public void setPieceOne(int x) { if (pressStartFlag == 0) { pressStartFlag = 1; …

Member Avatar for zack_falcon
0
145
Member Avatar for vlaskiz

As you may guess I'm pretty new to c++. I'm asked to write a program which would read and out put data files. Now im halfway through (that's why I'll ask you not to mind lots of what is on current code) but I'm stuck on this certain error for …

Member Avatar for vlaskiz
0
298
Member Avatar for Java2011

Hey i have a assignment in which i have a digital billboard its almost complete but i just have 1 line that is stopping my program from doing what its suppose to do. Im suppose to have a program that can display block letters when the user enters a word …

Member Avatar for Java2011
0
147
Member Avatar for daNiUB

Hello, I was wondering if anybody can help me write data fields for an instrument(Guitar) and the number of strings it has (6) and an array of string names representing string names (E,A,D,G,B,E). I have my code done for tuning and playing not sure how to do the other part: …

Member Avatar for ceyezumma
0
124
Member Avatar for kulpreet lkaur

hii i've java 1.6.0_11......n window 7...whnevr i try to save file in java\jdk1.6.0_11\bin then it gives a msg i.e you don't have permission to save in this location.contact to administrator to obtain the permision.... so um nt coming to kwon how to take permision from administrator and save my file... …

Member Avatar for kulpreet lkaur
0
143
Member Avatar for chiiqui

I am once again experimenting and Only to find out that java is pass by value, how do I actually manipulate a method or an array that has been pass to another method? for example [CODE]int[]a ={1,2,3,4,5,6}; modify(a); ________________________ void modify(int[] aTest){ aTest[1]=2; }[/CODE] //take note that those arrays are …

Member Avatar for JamesCherrill
0
251
Member Avatar for Bedjovski

First of all sorry for my bad thread title, really didn't know how to name it. I am wondering how to make a following banner to another page. e.x: When somebody clicks a link from my webpage to show the link with my extra code. Like this alexa banner up …

Member Avatar for Bedjovski
0
101
Member Avatar for rajhans

Hello All, I have stuck in a problem. There are set of strings of different length. I have to remove repeated elements from all the strings except from the string in which it appeared first. For example say the input strings are "3 4 7 2 15 10" "5 7 …

Member Avatar for rajhans
0
210
Member Avatar for aaloo

plz somebody help with this code . i m fed up now [CODE]<?php $x=5; echo $x; session_start(); $_SESSION['y']=$x; $string = '<?php session_start(); $x=$_SESSION['y']; echo $x;?> '; $fp = fopen("6.php", "w"); fwrite($fp, $string); fclose($fp); ?>[/CODE]

Member Avatar for aaloo
0
266
Member Avatar for sidra 100

m a begineer of java programing plz tel me wats wrong in my program. [CODE]// my first program public class HelloWorld { public static void main(String[] args) { System.out.printIn("Hello World"); } }[/CODE] it shows the error cannot find symbol. symbol:method PrintIn(java.lang.string) location: class java.io.printstream system.out.printIn("helloWorld") 1 error

Member Avatar for vijaykavin10
0
98
Member Avatar for minitauros

What I would like to do is to create a repeating pattern inside a rewriterule. For example: RewriteRule ^([\w]+)/([\w]+)/[B](([\w]+)/([\w]+))*[/B]/?$ index.php?p=$1&s=$2[B](&$4=$5)*[/B] Breaking it down: On every page my ?p=BLA refers to a certain page, and every &s=BLA refers to a certain subpage. The rewriterule for this would obviously be: RewriteRule ^([\w]+)/([\w]+)/?$ …

Member Avatar for cwarn23
0
301
Member Avatar for user543820

Hi! I try to open an existing excel file and have included namespaces and libraries as well but the highlighted words show errors. Please help. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Excel; using Microsoft.Office.Interop.Excel; namespace excel { public partial …

Member Avatar for Teme64
0
178
Member Avatar for eziekiel123

[CODE]import java.util.*; public class scwhile{ static Scanner input = new Scanner (System.in); public static void main (String[] args) { char letter; String inputMessage; String inputString; String outputMessage; inputMessage = "Program to convert uppercase " + "letters to their corresponding "+ "telephone digits.\n" + "To stop the program enter #.\n" + …

Member Avatar for JamesCherrill
0
234
Member Avatar for techyworld

A program that accepts two positive integer values x and n, and uses a function to calculate the value of x raised to the power n. The function should calculate power by repeated multiplications. The result should be returned to the main function and displayed. I use linux terminal to …

Member Avatar for techyworld
0
175
Member Avatar for iamnot

This code is give in a data structures book I issued from my library. I am not able to understand how the functions are working. I am aware of the algorithms. Can anyone please explain how qinsert(),qremove(),build(),encode() are working.Please explain in detail [CODE]#include <stdio.h> #include <string.h> typedef struct node_t { …

Member Avatar for Mouche
0
236
Member Avatar for silverarrow23

Hi, I Am Having Problems With this Piece Of Code: [code]<?php // Config $Conf = array(); $Conf['db'] = array(); $Conf['template'] = 'default'; $Conf['language'] = 'en'; $Conf['title'] = 'Care In Mind File Server'; $Conf['db']['server'] = 'mysql17.000webhost.com'; $Conf['db']['username'] = 'a6670856_fileser; $Conf['db']['password'] = 'ja23mes'; $Conf['db']['name'] = 'a6670856_fileser'; $Conf['docUrl'] = 'http://careinmindintranet.co.cc'; $Conf['job_server'] = 'http://careinmindintranet.co.cc/Secure/FileServer/jobs'; …

Member Avatar for silverarrow23
0
445
Member Avatar for gahhon

[CODE] public class Rectangle { private double length; private double breadth; public void Rectangle(){} [COLOR="Green"]public Rectangle(double length, double breadth){[/COLOR] this.length = length; this.breadth = breadth; } public void setLength(double length){ this.length = length; } public double getLength(){ return length; } public void setBreadth(double breadth){ this.breadth = breadth; } public double …

Member Avatar for ~s.o.s~
0
124
Member Avatar for nick6987

we given a program department program which user enters a number to a specific department and now our teacher wants us to convert that to a switch and use enum data type having a little trouble with some of the errors. [CODE]import java.util.Scanner; enum MenuOptions currentPrompt { BILLING, FORECLOSURE, LISTING, …

Member Avatar for stultuske
0
151
Member Avatar for Arcrammer

Someone please explain Ruby to me. I've already used tryruby.org and I really like it. I'm fifteen years old and I am going to be a Web Designer and Developer. I can code HTML and CSS almost professional and I can code PHP fairly well. I want to learn Ruby …

Member Avatar for cwarn23
0
220
Member Avatar for manugm_1987

Hello everyone How can i get all the table names of database and display these table names using combo box. Or store the table names in an array . I am using sqlexpress and c#

Member Avatar for manugm_1987
0
350
Member Avatar for phfilly

Just something small and I'm not sure how to do it. What I want to do when the user cannot be found in my DB then it should: 1. Print out -I wanted to use a pop-up to inform the user that he has entered incorrect log in details. Which …

Member Avatar for phfilly
0
252
Member Avatar for dennysimon

hello all in dataGridView1 I have 2 columns Column fruitname and column fruitpictures The content are : banana (picture of banana) orange (picture of orange) etc How to print the content of the dataGridView1 (including the fruits picture ) ? thank you denny

Member Avatar for dennysimon
0
403
Member Avatar for WDrago

All, I can't seem to find anything on the web about how to connect to a LibreOffice database. I am currently using the following code to connect to a MS Access database and would like to know how to change it to work with LibreOffice. [CODE]String strConnect = "jdbc:odbc:DRIVER=Microsoft Access …

Member Avatar for WDrago
0
3K
Member Avatar for techyworld

Write a program containing a function that takes 2 integer parameters x and y and returns the value of x2 + y2. The main program should then allow the input of two integer values a and b and display the value of a2+b2. Can someone help me?am having this error: …

Member Avatar for techyworld
0
112
Member Avatar for garyrichard

Hi.. I am new to PHP Mysql and i am facing following problem.. .............................. Database 1 [COLOR="Red"]G[/COLOR] 1 [COLOR="red"]G[/COLOR] 1 [COLOR="red"]G[/COLOR] ........................... I want to print records like this ........................... 1---[INDENT]g[/INDENT] [INDENT]g[/INDENT] [INDENT]g[/INDENT] .............................. As we do in in crystal reports ( suppress if duplicated ) ALSO PLEASE SUGGEST ME …

Member Avatar for cwarn23
0
363
Member Avatar for phfilly

Hi guys! I got a problem with my logging in system. I can connect to my database with the code: [CODE]session_start(); include('header.html'); $page_title = 'Home Page'; $mail = $_POST['email']; $password = $_POST['password']; $msg =''; if(isset($mail,$password)){ $con = mysql_connect('127.0.0.1','root',''); if(!$con) { die('Could not connect: '.mysql_error()); } else{ echo "Connected!"; } } …

Member Avatar for phfilly
0
171
Member Avatar for swissknife007

What are the settings I require so I can debug line -by line? Or else ,I can identify lines of code where run time errors are occuring.. I want to view exact line number of error in this code/[CODE]#include<stdio.h> #include<conio.h> #include<string.h> struct node {struct node * left,*right; int freq; char …

Member Avatar for gourav1
0
299
Member Avatar for guidely

Hi, I having problem with enter file name to read file it give me result like this [CODE] Please Enter Ship File path or Ship File name: data Segmentation fault: 11 [/CODE] Here is my code [CODE] #include <stdio.h> #include <stdlib.h> struct harbour { int harbourId; int maxCap; int timeUpload; …

Member Avatar for WaltP
0
221

The End.