64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cdea06

Could someone explain how the flow of control works with a nested for loop? [CODE]for (initialize; condition; increment) for (initialize; condition; increment) statement; [/CODE] I know a single for loop is: initialize --> condition --> statement --> increment--> condition -->.......

Member Avatar for JamesCherrill
0
130
Member Avatar for jenxin

Hi guys/girls. I have a program due soon for my assembly class. My teacher expects us to bruteforce through this program, but I'm wondering if theres any other way. Here's my code basically, edx is the pointer to the value located at a position on a sudoku matrix. ie. [edx …

Member Avatar for jenxin
0
783
Member Avatar for noXi

Hi, i've been looking around the web but could not find anything about the filestructure of the following file: [CODE]{"tickets":[{"name":"Test", "id":"906935000", "description":"gültig", "userID":"310000", "price":"Preis: 1,90€", "productID":"119", "checksum":"6017", "dailyCode":"u", "hourlyCode":"y", "barcode":"", "rebuyLink":"191000", "buydate":"52744", "buydateString":"17.08.2011", "legalNote":".", "validString":"gültig bis 17.08.2011", "demo":true, "validDescription":"gültig in 210"}], "currentMonthExpenses":"1,90€", "getMoreTicketsAvailable":false, "monthlyTurnover":170};[/CODE] This .dat-File is generated in javacode. …

Member Avatar for noXi
0
257
Member Avatar for opawix

Hello ma'am/sir any help for the codes of input to be align.heres my code: [CODE] #include<iostream> using namespace std; int main() { float pre, mid, semi, final, total; cout << "Prelim: "<<setw(20)<< "Midterm: "<<setw(20)<< "Semifinal: "<<setw(20)<< "Final: "<<setw(20)<< "Final grade: \n"; cin>>pre>>mid>>semi>>final>>total; total = (pre+mid+semi+final)/4; system("pause"); return 0; } [/CODE] …

Member Avatar for namratag
0
105
Member Avatar for Zababa

Hey there guys! :) I'm quite a newbie to Android programming, and I need to get the dimensions of the screen, that is the visible area of the screen. I know I can just set the layout of the controls in the .xml file, but I explicitly need to do …

Member Avatar for Zababa
0
119
Member Avatar for AquaNut

Hi All, Been reluctant to drop this on anyone as I wanted to resolve it myself but alas it has got the better of me. I am trying to do an insert into an Access 2007 DB but keep getting a syntax error even thougt I can get the generated …

Member Avatar for Naveed_786
0
305
Member Avatar for liphoso

new to php and mysql. i would like to build a system that will allow me to save to two databases at the same time. i know how to send data from my interface(i use html for the interface then use php to link with the mysql to design the …

Member Avatar for broj1
0
106
Member Avatar for Karthik J

Hi all, Does anyone know how to convert raster images(bmp) to vector images using C#?. My task is to convert raster images(bmp) to list of vectors using C#. I surfed in the net, got many open source tools which does the job, but my constraint is not to use any …

Member Avatar for VIeditorlover
0
2K
Member Avatar for lobstar

Hi, I am having an issue with updating my database with info from an excel spreadsheet. I am using php-excelreader from: [url]http://sourceforge.net/projects/phpexcelreader/[/url] Here is what I have thus far: [code=php] <?php require_once 'reader.php'; $Host = "..."; $User = "..."; $Password = "..."; $DBname = "..."; $Link = mysql_connect ($Host, $User, …

Member Avatar for rrpandiarajan
0
297
Member Avatar for PlUmPaSsChIcKeN

Im a beginner to python and my professor has assigned the following assignment: You buy an international calling card to India. The calling card company has some special offers. a) If you charge your card with $5 or $10, you don’t get anything extra b) For a $25 charge, you …

Member Avatar for PlUmPaSsChIcKeN
0
238
Member Avatar for BlurrieBlue

Hi, I had some problems on setting the value for a variable when user clicks on the image button. This is wat I have in the aspx file [CODE]<asp:ImageButton ID="NewBtn" runat="server" ImageUrl="image/plus.png" Width="24px" onclick = "newUser = 'True'"/>[/CODE] At first i tried to declare the variable in code behind as …

Member Avatar for BlurrieBlue
0
510
Member Avatar for DmytriE

I am having the hardest time figuring out how to pass a pointer as an argument. All of the examples I have come across are using predefined array sizes while my array is dynamic. The following code is a simple representation of what I am trying to do in a …

Member Avatar for DmytriE
0
122
Member Avatar for violette

hi all! i'm not sure where to post this. i hope i'm posting at the right section. previously i use formula as below; [CODE] Dim total1 As Label = CType(e.Item.FindControl("total1"), Label) total1.Text = e.Item.DataItem("receivable").ToString * 365 / e.Item.DataItem("revenue").ToString[/CODE] note that the 'receivable' and 'revenue' are taken from database(mysql) however,if the …

Member Avatar for violette
0
93
Member Avatar for crane476

I am writing a program that should allow the user to enter however many payroll amounts they want for 3 different stores. It should then display the total payroll for the three stores. The first time through the loop is fine but the second time through, even though it appears …

Member Avatar for crane476
0
111
Member Avatar for HackRabbyt

Hello, I was wondering if I could get a little guidance regarding an error I keep running into on this assignment. I'm not necessarily looking for any answers as I'd like to complete as much of the assignment myself as possible. However, I've been beating my head against a brick …

Member Avatar for HackRabbyt
0
117
Member Avatar for linux

I have to rewrite the atoi function - that is, convert a string given by a command line argument and convert it to an integer. It works for single digit numbers, but when you give it two or more digits, it only converts the first number. I'm not sure what …

Member Avatar for linux
0
303
Member Avatar for AndyPants

hello I'm NOT new to vb.net but i have never used a UserControl in the following manner: In need to make a UserControll that can be put in a list of them depending on how many the user chooses and then if there are more than 4 to have a …

Member Avatar for AndyPants
0
191
Member Avatar for AndyPants

Hello, i was wondering how would i make a search kind of thing, for example if string1 contains all the words in string2 words. like a search(not just if string1 contains string 2). it should work something like this: If string1 is "an apple" and if string2 is "djsjfsfg apple …

Member Avatar for AndyPants
0
476
Member Avatar for NuGG

This is problem that I have struggled with for some time, but im sure the answer is very simple... I have a sub report that performs calculations on 2 fields ( [Rate] [Hours Worked] ) from a table called [Hours]. The report is GROUPED by [Rate] and is as follows: …

Member Avatar for NuGG
0
2K
Member Avatar for Slyvr

I made a basic JUnit test to set up this oracle database on my computer with hibernate. The database works and everything, but trying to hook it up to Hibernate is proving to be a challenge. My config file is below: [code] <hibernate-configuration> <session-factory> <!-- Database Connection Properties --> <property …

Member Avatar for Slyvr
0
1K
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 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 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 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 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 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 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 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 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 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 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 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 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 JoshuaBurleson

I'm trying to use cx_Freeze and everything everything seems like it should work fine, however I'm getting an import error for import tkinter [CODE]Traceback #... from tkinter import __fix #... import_tkinter ImportError: DLL load failed: The specified module could not be found.[/CODE] This only happens when I take the the …

Member Avatar for JoshuaBurleson
0
354
Member Avatar for jshenn

Second post on this project ... I am working on a bowling scoring system for a non-profit. They would like to be able to enter up to 9 games worth of scores into a form and have the shot results and game scores captured in a database. I have accomplished …

Member Avatar for jshenn
0
2K
Member Avatar for rotten69

Hey everyone, I have been looking for video tutorials on SWING class and pretty much of GUI side in Java .. I found tutorials on Oracle site but they require lots and lots of reading.. if anyone knows a good site that has videos on GUI, please share it.. Time …

Member Avatar for ceyezumma
0
433
Member Avatar for Fattman

Hi All, I have noticed that there is another thread about this matter, but could not quite get my head around it. Basically I have to create an application which is a quiz. According to the users score it will then determine what level of skill they have. I know …

Member Avatar for codeorder
0
370
Member Avatar for Zssffssz

Well when I run my program the bar at the top says C:\programing\C++\Test\Test.exe (<<just an example) How do I change this? And how do I make the console window look more XPish (I heard it was called luna). Answer the title one first please. I wnt this too be all …

Member Avatar for NathanOliver
0
445
Member Avatar for Wilha

im trying to write a code that i can input a,b,c and the code will run it in the quadratic formula and give me the answer but i keep getting a error problem import math from math import sqrt print print ("Welcome to the Quadratic Program") print ("--------------------------------") print a=input("Enter …

Member Avatar for Wilha
0
373
Member Avatar for jshenn

I am working on a bowling scoring system for a non-profit. They would like to be able to enter up to 9 games worth of scores into a form and have the shot results and game scores captured in a database. I have accomplished the scoring part with an html …

Member Avatar for jshenn
0
163
Member Avatar for Sudo Bash

Hi all, I am trying to create a class to serve as a customized cout class. Right now I have made some test code to see if I can do it. Right now I am trying to make it function just like cout, but later I will have it do …

Member Avatar for Sudo Bash
0
2K
Member Avatar for StephNicolaou

Hi all, Trying to simply call method, (below) from another class and return the value found by the scanner. Please see below: [code] public int getInt(String prompt) { System.out.print(prompt + "a"); //int result = in.nextInt(); if (in.hasNextInt()) { x = in.nextInt(); y = in.nextInt(); sum = x+y; System.out.print("sum" + sum); …

Member Avatar for StephNicolaou
0
150

The End.