64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Silen

I'm writing a cross-platform code and I need to be sure the following won't make me trouble. [code=c] struct X { unsigned char a:3; unsigned char b:5; }; [/code] Is using other then int types is part of the ANSI C? Will it be compiled with every compiler?

Member Avatar for Silen
0
133
Member Avatar for ceyesuma

Hello The ActionPerformed will not unload the viewPort to load the new viewPort that holds a table. is there a way to reload the table? The first actionPerformed supplies the table but the next will not remove table and add the new one. [code] package view.content.panels.guide; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

0
58
Member Avatar for vello
Member Avatar for ticktock

Hey all, having a little trouble transferring my listview items into a database. I have transfered all of the listview items into a List<> for use during the population of the items in my database here is my dataaccessor class, it contains the reader writer and writer statements generator: [CODE] …

Member Avatar for finito
0
264
Member Avatar for zango

So the following is where I think the problem lies in my code: [CODE]public void actionPerformed(ActionEvent i) { int temp; double newtemp = 0; String inputString; inputString = infield.getText();//pulls the number that was entered in the input field temp = Integer.parseInt(inputString);// makes a new variable to handle the input //tells …

Member Avatar for javaAddict
0
755
Member Avatar for Smith5646

I have a program that adds controls on the fly to an auto-scroll panel. When the panel is scrolled (viewing the bottom of the panel for example) and a control is added, it looks like it is added assuming the top left corner of the panel is still at 0,0 …

Member Avatar for Smith5646
0
813
Member Avatar for SenTnel

Hello! I need your help again... thanks! I have a table where I need to insert the same value in all rows and dont know how to. Table: equipment, Column: available How can I enter a number 1 in column "available" in all rows? Thanks again!

Member Avatar for finito
0
78
Member Avatar for ahaykal

Hello members, Well I am always facing trouble with operator overloading. I just have this Assignment in which when I reached operator overloading nothing worked. I tried to do it in many ways but couldnt. Could someone help with this issue please! the question asks to include d) An overloaded …

Member Avatar for nbaztec
0
178
Member Avatar for gkaykck

Hi I am trying to make my homework about a command line calculator, and i am trying to divide the entered string into small parts and i am trying to use strtok for this. [CODE] #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct var { char name[10]; double value; …

Member Avatar for gkaykck
0
601
Member Avatar for Martin.S

Hi, I'm having some trouble with trouble with an If statement in my program. It's a series of wind speed brackets to select the category from the Saffir Simpson Scale of hurricane classification. The problem I'm having is that it won't select the correct category based on the wind speed …

Member Avatar for Martin.S
0
96
Member Avatar for Shaida

[B]I've written a code but it doesn't run! I can't find the problem and the Error is : Declaration Syntax Error will anyone help me?! :)[/B] [CODE] #include<iostream.h> void hi(void); void name(void); int main() { int m; cout<<"Enter one of numbers below:\n"<<"1.Hi\n"<<"2.Name:"; cin>>m; switch (m) { case 1: hi(); break; …

Member Avatar for Shaida
0
2K
Member Avatar for sme30

I have created a class Vacancy which has some variables : public $salary; public $id; ... I am looping through the result of a query and creating a vacancy for each match Then I adding the vacancy to an array. [icode] $tempVacancy=new Vacancy(); $tempVacancy->salary = mysql_result($result,$i,"salary"); $tempVacancy->id =mysql_result($result, $i, "yid"); …

Member Avatar for SikoSoft
0
583
Member Avatar for Ms.passion

Hi everyone I'm really exhausted with this error I'm using visual studio and I'm trying to build a contact form And all the information should be saved in contact table in the database Would you please help me with this error? I tried a lot to figure what's wrong, but …

Member Avatar for Ms.passion
0
202
Member Avatar for dragonlee

hello every one, i have a problem to execute the second SQL query, its working fine on my local machine and when i uploaded it to the server but suddenly stoped functioning and keep showing error on the numRows after the query in line 213, any suggestion will be appreciated[code]<?php …

Member Avatar for dragonlee
0
108
Member Avatar for Ferny84

Hi everyone, I am having some trouble here... I am asking the user to enter a file, and that file will read the contents and determine if the student will pass or fail the class. That part I am having trouble with is when I have to decide if the …

Member Avatar for csmgsarma
0
124
Member Avatar for m khan

can nay on etell me tht why if i am moving a ball thn my hurdl also moving .. here is the code [code]#include <glut.h> // Also included gl.h, glu.h #include <Math.h> #define PI 3.14159265f // Global variables char title[] = "Bouncing Ball (2D)"; int windowWidth = 640; // Windowed …

Member Avatar for Ezzaral
-1
153
Member Avatar for dietdew12z

Basically what I'm doing is an if.then.else and depending on a value in the DB it's supposed to load one page or another. Right now I have it kluged together with a submit button but I'd like it to load automatically. This PHP script sits alone with no HTML output, …

Member Avatar for dietdew12z
0
852
Member Avatar for JOSheaIV

okay I have been looking all over the web trying certain pieces of code and I have had no luck. I am tired and I really am at a lost right now. I am trying to make it so that when the user mouses over a select set of cells …

Member Avatar for JOSheaIV
0
7K
Member Avatar for qqabb

im a beginner of coding and using python. Im trying to code for a linear search but I don't know how to:(

Member Avatar for TrustyTony
0
1K
Member Avatar for zreed

I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. …

Member Avatar for jwenting
0
295
Member Avatar for cyon

Given a coordinate string -- 'x, y' -- where x and y are 1-4 digits, separated by \D+: '34, 58' I want to able to get a tuple with each number as an integer: (34 , 58) [B]Method 1[/B]: I could find the numbers, convert the tuple groups() to a …

Member Avatar for ultimatebuster
0
7K
Member Avatar for Dyed Purple

I'm currently trying to create a program which factorises a number entered by the user, as reccomended by the sticky. When I run the program, I get "error C2061: syntax error : identifier 'cin'". Here is my code: [code] #include <iostream> using namespace std; int main() { int iFigure; int …

Member Avatar for thelamb
0
230
Member Avatar for MrDiaz

Hey everyone, I have a series of loops that read through a text file and then output the occurrences for each letter on the file. This seems to be fine when using small text only. When providing a lot of text it just takes too many CPU resources and that's …

Member Avatar for Tellalca
0
117
Member Avatar for madonline

CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. …

Member Avatar for madonline
0
525
Member Avatar for ktsangop

Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python …

Member Avatar for ktsangop
0
378
Member Avatar for Keidi

Hi all I'm trying to learn php by myself I got as far as creating my first data base and table using the following code: [code=php]$con = mysql_connect("localhost","root",""); if (!$con) { die('Could not conect: '.mysql_error()); } //Create database if (mysql_query("CREATE DATABASE FATBYTES",$con)) { echo "Database created"; } else { echo …

Member Avatar for scaiferw
0
200
Member Avatar for SweetDeath

Hello there, so i have this current project for school and i`m kinda stuck the program i`m suppose to write is this : __________________________________________________ ____ Each year many tourist visit our country please write a program that collect the following information: Name(first,middle,last) sex country age profession Also the program shoud …

Member Avatar for SweetDeath
0
115
Member Avatar for Daffodil_Thursday

Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear …

Member Avatar for Daffodil_Thursday
0
483
Member Avatar for Bukhari1986

Hi I need code of how to copy part of string. like 0092-333-1234567 so i need to copy the part 333 or 1234567 in to a new string variable sample inputs 0092-1234567-333 333-0092-1234567 NOTE: poiters can also be used i need it in Turbo C++ or Dev C++ Thanks

Member Avatar for Bukhari1986
-2
137
Member Avatar for chaituu

I have written code for adding and removing dynamic rows.i am using same file for both ADD and MODIFY operations.this page is working for ADD operation. lets say for MODIFY operation one employee has added 3 rows and i need to display those rows and user can edit thoese rows …

Member Avatar for fxm
0
79
Member Avatar for viscorus2004

Hy sorry for my bad english I have transaksi_pembayaran table and have a tgl_tran field, tgl_tran is a date but has type varchar, how can I get date range in mysql? date range like this : 14/2/2005 to 27/2/2005 (d/m/y)

Member Avatar for tyson.crouch
0
118
Member Avatar for ErlendHL
Member Avatar for tenix

Hi, Is it possible to read a file only to get the first 100 bytes from the begining and the last 100 bytes at the end? I have to get info from files that are in the first 100 bytes and in the last 100 bytes of the file and …

Member Avatar for tenix
0
8K
Member Avatar for Medalgod

I am relitively new to C#. On thursday I started out writing a Tic-tac-toe game. Just a basic gridbuilder, ask the user where they want to go, alternate the users, as player2 where he wabts to go (checking if the move is 'legal'). I've just kept adding to it... This …

Member Avatar for amir pr
0
1K
Member Avatar for liamfriel

Hello I was helping a fellow daniwebber and I noticed that I have no idea if it is possible and how the syntax works for it. Any help appreciated. example of how I think it works. [CODE] function retTrue(){ return true; } //code in if if(retTrue()){ //do some php } …

Member Avatar for SikoSoft
0
6K
Member Avatar for ypdev

Hi, I would like to pass data to dialog box where the page in background is faded out. A good example is when I click 'LOG IN' on DANIWEB, I get a dialog box with username and password fields and the rest of the screen is in gray. Can someone …

Member Avatar for ypdev
0
879
Member Avatar for reanopp

Hi guys, We have a custom-written online invoicing system, written in PHP. Right now, it generates an HTML invoice (with CSS etc) and sends that to the clients as an HTML mail, but since a lot of mail clients regard it as spam, disable functionality and images, or just completely …

Member Avatar for abeltenny0210
0
938
Member Avatar for jemz

hello can you please help me how do i put checkbox in my ms access..or how to code this in my program hoping for your positive responds...thank you in advance

Member Avatar for jemz
0
130
Member Avatar for TheUbuntu

Hello, Can i make one picture for all my website, please ? like Google: [url]http://www.google.com/images/srpr/nav_logo13.png[/url] Thanks.

Member Avatar for abeltenny0210
0
94
Member Avatar for vsagarmb

<code=python> >>>f = file("sendBuffer.dat","rb") >>> f.read() '\x81x\x00>\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00A .\x00\x10aG\xce\x00 \x00\x00\x00\x00\x00\x00\x00\x01\xcd\xccL@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' >>> text = f.read() >>> print text </code> In the above code f.read() prints the data, but when i say print text or print length of text it returns NULL and zero respectively. Any Ideas?

Member Avatar for vsagarmb
0
89
Member Avatar for Kingcoder210

Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first …

Member Avatar for Teme64
0
3K
Member Avatar for lllllIllIlllI

I am currently doing a project where i am using C# and databases. I am using visual C# 2008 and i am having issues accessing the tables that i made. So what i have done is that i have a couple of tables, one with students in it, another with …

Member Avatar for kvprajapati
0
217
Member Avatar for MrDiaz

Hi folks, I've been trying to solve this but I keep hitting a brick wall. Here's what I am trying to do: I'm reading a file with text in it, I am storing every letter of this file as an element of this array (this part is already done) and …

Member Avatar for Ral78
0
103
Member Avatar for ceyesuma

Hello There is no error and no table. Could someone find the missing code needed to render the table? How do I Verify that outocommit is OFF? output: [code] in personalDataTable: Supports Scroll headers: ADMIN_UID headers: ADMIN_PASSWORD headers: ADMIN_LNAME headers: ADMIN_MNAME headers: ADMIN_FNAME headers: ADMIN_GENDER headers: ADMIN_AGE headers: ADMIN_START_DATE headers: …

Member Avatar for ceyesuma
0
116
Member Avatar for Serrafine

I've looked over the forums but I can't find anything to help me. I've tried out some of the code but I still end up with a blank image. What I'm trying to do is allow the user to draw an image in a JPanel and then I want to …

Member Avatar for Ezzaral
0
2K
Member Avatar for ceyesuma

Hello I am using : [icode] conn = ddf.getConnection(); setConn(conn); ps = (PreparedStatement) conn.prepareStatement( ModelUtils.getXMLResource("selectAdmin"),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); ps.setString(1, thisUser); rs = ps.executeQuery(); [/icode] and [icode] public int getRowCount() { try { rs.last(); return rs.getRow(); } catch (SQLException ex) { Logger.getLogger(AdminPanel.class.getName()).log(Level.SEVERE, null, ex); ex.printStackTrace(); return 0; } } [/icode] and it is …

Member Avatar for ceyesuma
0
262
Member Avatar for niall_heavey

Hi all, I'm very new to perl but I will try to explain where I am at the moment. I have a lot of information in a .csv file. The 2nd columb has different values relating to different things. For example "no" = nokia, "se" = sony ericsson, "ip" = …

Member Avatar for mitchems
0
108
Member Avatar for tenix

Hi, I am total new in C. I have an array, then i loop it to get array elements. How can i add this array element into existing array? thank! [CODE] char arr[] = {1}; for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++ ) { something happend here = …

Member Avatar for tenix
0
16K
Member Avatar for Ap0ca1ypse

Hello All, i am after a little information on a query i have. I have three forms that are fairly similar in the process that they take, the only difference is an extra textbox and different SQL DB Updates. so what i plan to do is merge all three forms …

Member Avatar for finito
0
170
Member Avatar for perroned

hi im trying to make a tic-tac-toe game in c++ im using a 2-d array of chars to tell if there is an x, 0, or null i wanted to make a procedure i can keep calling every time i need to display the grid however i keep getting this …

Member Avatar for perroned
0
299

The End.