199,114 Archived Topics
Remove Filter ![]() | |
Can I stop updating the user display of a control (rich text box) temporarily? I want it to process what I tell but not change how it looks for just a small piece of code. Please help :) | |
![]() | This is my first post on daniweb :) and i am a beginner in C programming and i don't know so good english :) sorry! This is my program My problem consist of I run the program and i can't get to the [B]scanf("%c",&q);[/B] [I]/* Row 21 after printf. */[/I], … ![]() |
Hello Members, Would anyone please take a look at my attached excel files which is a commodity exchange's end of the day data file. This is a free copy which anyone can download from their websites. Those are ([url]www.mcxindia.com[/url]) & ([url]www.ncdex.com[/url]). Now my query is in those two files there … | |
how can I find mode in java using arrays, if statement or for loop I have another question I want to ask the user to input number and then draw triangle like this [url]http://www.thebestdata.com/FileArchieve/2434_File1_1.PNG[/url] how can I do this | |
I have been doing java for almost 3 years now, am just starting to learn Objective-C as of this past June. Been writing a few programs on my own and writing programs for the exercises in 2 very cool Cocoa/objective-c books. My question is how do I, coming from Java, … | |
hi everyone, as title said all, i need actually to find a vowel(a,e,i,o,u) in a string. it counts how many vowels are in the string that's fine but i need to find a vowel too.. any idea how to achieve this ? [code]import java.io.*; import java.lang.*; public class VowelsExample { … | |
Ok this comes as two questions: what is the best variable for storing bianary data and how would I send That through a XOR gate? When I searched it didn't really do anything because XOR is a binary operator. I remember how to open o file in binary form from … | |
Hello, I need help to combine a c-program using curl(to retrieve txt files from internet) and another c-program using popen. currently the popen is using the command ls -l (to list the current folder in terminal). I have 2 files, the first one is curl program, which have to retrieve … | |
my program works fine but i dont know why when i debug the program the shapes are coming out without me pressing the buttons [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; public class AnAppletWithButtons extends Applet implements ActionListener { Button button1, button2; int r, g , b; Color color; boolean drawLine … | |
Hello I have a simple issue that is not a compilation or runtime issue, but an aesthetic problem that I can't find a function for. Basically I've created a GUI window that visually represents a game board for my Reversi gameboard. I've implemented the GUI and the Reversi gameplay and … | |
Hi all, Im new to java, and im working with j lists importing data from sql server. Thing is that i can import the data from the sql tables, but for some reason it does not refresh properly. Thing is that when the frame is opened the list is filled … | |
Hello everyone, I have to create pig latin game which I did and it is working. The problem is I coded it so it can translate one word. I need to know how can I make it translate a sentence that I don't know how many words in it. Here … | |
Hey guys, I've drawn a grid, and I have a label contatining a picture. Whenever I change the location of this label, the grid dissapears until I resize/move the frame. Any suggestions on best method to buffer these grid lines? They aren't going to be moving graphics or anything like … | |
This is for a website search function, I do the following to get several similar results from the mysql database: [CODE] $var = "words words words"; $str = explode(' ', $var); foreach ($str as $i) { $match[] = " e LIKE '%$i%' ";//to search each word within searched phrase separately … | |
below is my code, i want to get a record base on a specif invoice number,please help me out cos this thing has giving me sleepless nite.thanks in advance. Imports System.Data.Sql Imports System.Data.SqlClient Public Class Invoice Private Sub Invoice_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Call connectDatabase() … | |
Need help getting my add, save, search, modify, delete buttons to work I can get them to show up in the GUI but pressing them does nothing. I need the save button to save file to index.dat in folder c:\\data\ folder and create that folder if it doesn't exist [CODE]import … | |
I've already write a program which allow you to enter name, address and write in the file name,length of name, address ,length of address. File is called "input.dat" Now i need to write another program that reads the file "input.dat" (the one above), displays the name, the size of the … | |
Hi friends I'm a newbie with android sdk. i did configure android sdk r15 and ADT 15 plugin on eclipse. but the android emulator is not working. I did make a virtual device for the android 2.3.3 platform and run few sample i got with android 2.3.3 platform. but i … | |
Hi all, The project I am currently working on is an Address Book which works off a csv (specification takes the mick as a database would be so much easier), the method to write the lines of information into the CSV is in the class DataLayer and takes a String: … | |
hey guys, I'm making a small app that make a Jable and saves the table model then loads the table model and set it to the table interface and both saving and loading is in seperate frames. [CODE] // Saving the info String ufname = Fname.getText(); String ulname = Lname.getText(); … | |
Hello guys, I'm trying to make it so that the user can opt to change student's course code or credit points (they can choose to change neither, either or both) in case 5 of my main switch statement. The problem is, the loop doesn't end after you choose to do … | |
Hi I have this problem where I tell the user to prompt 10 integers separated with spaces. And then I have to output the same numbers the user entered and then output max and min numbers. So How can I get the maximum value of these multiple integers? This is … | |
can anyone please tell me whats actually happening in this code. Seems to be as if incremented pointer is pointing to the next bit of same int. Answer is 2,0 Thanks in advance [code=c] #include<stdio.h> #include<conio.h> void main() { int arr[3]={2,3,4}; char *p; p=arr; p(char*)((int *)(p)); printf("%d",*p); p=(int*)(p+1); printf("%d",*p); getch(); … | |
Hi, I'm stucked with a problem, hope somebody can help me. The problem is that i have a string with webpage source and i need to retrieve all the text instances between <pre> and </pre> tags, i already know how to retrive the first ocurrence using: [CODE] dim start as … | |
The user input four integer numbers in same line,for example,4857 After the input, I would like to place the four numbers into array The result ,array[i] = j i is the position , j is number of input. how to do it? must require to use substring? any other solutions? | |
I need help with incrementing my score. I tried ++wins..., wins++..., wins += 1..., wins = wins + 1... and so far nothing works. I just keep getting 0. My main class: import java.util.Scanner; public class Test { public static void main (String [] args) { Rock game = new … | |
What should I write within a while loop that allows me to keep on divding a number by 2 until it meets certain conditions. for example while(condition) { //what should i write here to have a double that divides by 2 until it meets the condition. } | |
Hey guys, I've constructed the main class to refer to a variable in it and I receive a stack overflow error. Any suggestions on the causes of this error, I've used this method previously and have not got this before. [code] In other class: MainClass class = new MainClass(); errors: … | |
i am doing a project on student information system using file handling...i made my own project but it didnt work....i read many books but actually the main problem is that i lack logic.....i have found from the net this project but the output on the notepad file is giving unusual … | |
I want to make my own file type with my own extension via vb.net. I mean that when we go into "My Computer" and select Folder options from the menu, there is a file types tab and I can add it there. Can I add it through vb.net 2005? Please … | |
Hi. I have this code: [CODE] %D8%AA%D8%B3%D8%AA [/CODE] how to convert this code with php to orginal text? Thanks. | |
Good Day I've created this edit/update form with assistants of this tutorial [url]http://www.freewebmasterhelp.com/tutorials/phpmysql/7[/url] And when I click the update button I get these two messages Notice: Undefined index: artist_id in C:\wamp\www\Practical_Project\admin_artist_edit.php on line 2 Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Practical_Project\admin_artist_edit.php on line 9 I … | |
Hi friends im trying to get my menu working but i just cant seem to get it working ... these are my 3 errors 9 " In file included from main.cpp" 47 " no matching function for call to `Menu::Menu(const char[7])' " 49 "std::string' has no member named 'add' " … | |
Hi All, I wanna to search a pattern in a txt file called A which is a 2D matrix from another file called B. The requirment is that I need to output the number of matched pattern in file B. But I encounted difficulty of counting the number. Basically I … | |
What is cout? It's a variable, yet it can print stuff on the screen. Also, << (Left Shift Operator) isn't like the one for the variable cout. How does cout work? cout isn't even a macro / #define. | |
Private Sub frmRegistration_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cn.Open() cmd.Connection = cn cmd.CommandText = "Select * from Registration" adp = New OleDb.OleDbDataAdapter(cmd) adp.Fill(ds, "mytable") 'Binding Statements Follow bs = New BindingSource(ds, "mytable") 'Bind the name field to first textbox, type of data as text Me.txtCustID.DataBindings.Add("text", bs, … | |
In this project I'm suppose to use a old project and create a menu for it. Basically "Create a menu system so that the user may choose between the various Roach functions (create roach colonies, breed and spray roaches and get the current number of roaches). Make sure you display … | |
Hi Guys, How's your day? I would like to ask, since I'm a beginner in vb .net, I can't figure this out. Here's the scenario: I have a folder with lots of folders inside and inside those folders are .tif files. I want to create a program that will rename … | |
Ok pretty simple: How to make internal speaker beep on Linux. For personal use does not need to be portable. I know I have an internal speaker... BIOS loves that thing... | |
Hi I have a WordPress Blog that I can no longer access due to a header redirect issue. I have no idea how to fix this. The error message I am getting is this: Warning: Cannot modify header information - headers already sent by (output started at /home/altalake/public_html/twinsintow.com/index.php(1) : eval()'d … | |
Hey forum, our professor assigned us a program we have to write in assembly language and I would love to have help on it. [QUOTE]Write an upper-to-lower case and lower-to-upper case conversion program. When the user inputs a letter, your program should convert it to upper case if it is … | |
my program includes pictures and audio, do i have add that to my project and then create a jar file? or i just have to include the source file and that's it? | |
Hello All, I'm working on my first Python plot in my programming class this week. My assignment is to write a program to plot data contained in a csv format. Here is the data: "Bowl number", "Date", "Bowl location", "Winner", "Number wings eaten" "I", "1/29/1993", "Wyndham Franklin Plaza Hotel", "Carmen … | |
Hai i have using the checkbox in for loop. I need the urgent help from anyone, for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and … | |
How do I do this? I use the following code to get position of the first occurrence (case insensitive) of $search within $space. [CODE] $word = stripos($space, $search); [/CODE] However I would like to totally ignore some characters while matching and get the position of similar substrings within the search … | |
Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE]FILE *output fopen_s(output,"comtimer.txt", "ww");[/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not help. Could … | |
Hi im trying to get this to compile im try to make a menu this is my code but it wont work [code] //main.cpp #include <iostream> #include "Menu.h" using namespace std; int main(){ { SportsClothingMenu(); } system("pause"); return 0; } [/code] [code] //Menu.h #ifndef H_MENU #define H_MENU #include <iostream> #include … | |
I'm trying to develop a program that will factor a trinomial with a single variable. I'm using a string array and substrings to get the terms, however I'm having trouble with getting the factors of the AC Method. For those who don't know how to factor polynomials using the AC … | |
I am stuck doing this assignment given for monday ...i am at the do while coding (already did the interface ...) anw here it is : Candidates for employment by a security organization have to undergo a medical test in which sight, hearing and mobility are tested. In each of … | |
Hi, I'm new here... Please help me fix it, if I posted at the wrong section, this is about Python but also game development... So I'm not sure? :) anyway: I need some guide lines to the way of coding? or the use of things within the code... Here I … |
The End.