132,726 Archived Topics
Remove Filter ![]() | |
hey guys i really can't solve this problem, hope you can help me. the problem is, i use this codes to get the data type of a column from an access database Form12.ListView1.Items(j).SubItems.Add(myData.Rows(i)!DATA_TYPE) but what displays in my listview are numbers like (130 , 3 so on..). How can i … Software Development microsoft microsoft-access vb.net | |
hi all i want to read a secific line in a text file here is the text file form [CODE]iphuc 0.6.1 with tab completion. >> By The iPhoneDev Team: nightwatch geohot ixtli warren nall mjc operator Unsupported iTunesMobileDevice.dll Version ee0000 15 CFRunLoop: Waiting for iPhone.[/CODE] or [CODE]iphuc 0.6.1 with tab … | |
Is there someone who can help me with this? Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should contain at least four functions -- one to read … Software Development c++ | |
could someone help me, i dont know how to show the results... [CODE]#include <iostream> #include <fstream> using namespace std; int ReadList(int Array[], int N) { int list=0; for(N=0; N<10; N++) { list= Array[N]; } return list; } void Avgs (int Array[], int N, int &Ave, int &AveP, int &AveN) { … | |
is there a way to use mouse wheel scroll in datagrid? Software Development visual-basic | |
Hi, This is my first post in daniweb! I've two questions: First question: I'm currently studying about classes, and could get '=' overloading format: [CODE][COLOR="Red"]T&[/COLOR] T::operator =(const T& b);[/CODE] Why we set it to return reference? what's the use? Why couldn't simply be: [CODE][COLOR="red"]void[/COLOR] T::operator =(const T& b);[/CODE] I've used … | |
[CODE] #include<iostream> #include<fstream> using namespace std; int main() { char a='p'; int b=23; float c=45.67; ofstream out("test.txt"); out<<a<<" "<<&a<<endl; out<<b<<" "<<&b<<endl; out<<c<<" "<<&c<<endl; } [/CODE] the output for this is in the text file: p pα#a/ 23 0x22cd08 45.67 0x22cd04 why is the address of the character variable is very … Software Development c++ ![]() | |
I was trying to find the smallest common divisor for the numbers from 1 to 20. I tried the following code. My problem was how to get back to the beggining of the for loop after the if test has found the number is not divisible. But then i added … Software Development java | |
hi guys ! i had this code snippet from the net...so i m trying to understand the code but m not getting those points plz help me 1.what does return 2,return 4,return 6 means in this code? 2.why we have case '#' ,why '#' opreator is assigned to stack[top]; 3.if(isoperator(symbol)==0) … Software Development c++ | |
Hello, I have observed that when generating assembly code from simple C programs using GCC, the stack is initialized as follows: [CODE]pushl %ebp movl %esp, %ebp andl $-16, %esp [/CODE] my question concerns the last instruction where -16 is anded with the stack pointer. Am I correct in assuming that … Software Development assembly | |
Is it possible to convert a string value to a variable name ? Considering the following example AddNode(treeview, "root", "This is the root"); [CODE]public void AddNode(TreeNode parent, string nodeName, string nodeValue) { // what i want to happen is here to be created node with the name "root" // TreeNode … Software Development | |
Hi there More help required! I have a table being imported into my VB application that has 3 columns. I have written code to import the table, and have written code to display on the first column (country) in a list view. What I want to do now is have … Software Development vb.net | |
I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. … | |
I've tried to make an implementation of a std::vector, but it has some bugs that I cannot figure out, for one, the Append (same as push_back) method doesn't work. If anyone could help me to find the bugs that would be appreciated. [code=c++] template< typename t > class vector_t{ t … Software Development c++ | |
Here is my code for a calculator. What I don't understand is how it knows which function to execute when someone chooses an option, how does it know to add and not subtract? The program works perfectly. I'm just looking for an explanation on how it knows if I press … Software Development python | |
I was wondering if anyone knows how to get text from a cell in a datagrid into a message box or text box? Thanks in advance. Software Development vb.net | |
I'm trying to make it so when I press ESC, it RestoreScreen() but it doesn't work. Now I don't know whether it's my method RestoreScreen() or my listeners. This is my code: [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class main extends JFrame implements MouseListener,KeyListener{ public void keyPressed(KeyEvent e) { … Software Development java java-swing | |
I'm reading a book called Beginning Algorithms by Harris and Ross, which gives code examples in Java. As an academic exercise I am trying to convert the code examples to C++. In the interface below the part that throws me is the return of the 'Object' by the 'current' method. … Software Development c++ java user-interface | |
Hello, I am very new to Python (just started yesterday) and I've written a program for converting temperatures. I get wrong C to F numbers, and when I try to go from F to C I get 0. Here is the code: [CODE] choice =1 while choice==1: print "1. Celcius … Software Development python | |
Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j … Software Development python | |
I am using this as an example to show what I want to do. I have already done a char array like this: char name[10][10] = {"1. One", "2. Two", "3. Three", "4. Four", etc.. down to 24. I have already wrote the code, so all these 24 subarrays can … Software Development c++ | |
hello all, this is my first post here and I have searched for answers elsewhere before asking for help. My code is pretty tight, but I keep coming up with symbol not found errors. Are my curlys not in the right place? Or have i not declared the objects correctly. … Software Development java | |
Hi I'm new to programming so I need a little help with packages. I have created 2 packages test1 and test2 with p1.java and p2.java respectively. Both have default access. I'm trying to extend p1 with p2 and have tried to import test1 but the error im getting is that … Software Development java | |
Im running a few tests for creating an MP3 player (very basic) and i'm having a few issues that I'm hoping somebody can help with. Right..... Im using mci for playback but what i need is the file path to be input by the user via a textbox. Ive created … Software Development audio c++ listview visual-basic visual-studio | |
[ATTACH]18705[/ATTACH] Hi there. I'd like to ask for assistance from anybody out there that knows how to create database conceptual and physical. The problem I'm wanting to solve is I've got an interface in Visual Studio 2010 that populates from 2 tables named Orders and OrderDetails. Below are the fields: … Software Development database-design visual-studio | |
Hi Would anybody know what a Linker is. I understand it is to in some way bring together the Implementation, header and Main.cpp files though is that part of the compiling process. I'm using Dev C++. How would I construct a separate implementation file and header file from main and … Software Development c++ | |
I get the following error from running this code. Was wondering if 'i' and 'j' are considered objects. If yes is there any way i could cast them..... How do i write a better for loop for this.... array2D = [[0 for i in range(10)]for j in range(10)] for i … Software Development programming-construct python | |
i want to make program for a quiz. i create the questions is an array, and i want that questions start at random, and never be shown again. [CODE]dim question() as String = {"OTOMATIS MENURUT KERJA MESIN", "TIDAK MENEPATI JANJI", "YANG UTAMA", "TEMPAT TINGGAL KEPALA NEGARA", "PENGURUS RUMAH SAKIT", "SUDAH … Software Development vb.net | |
I'm trying to display number on screen wihout using the exponential form (1x10e-7 etc) Unfortunatly as it converts the number to a string it converts the exponential format with it Code: double j; //as Long string s; //as String j=0.00000000001 ostringstream ss; ss<<j; s=ss.str(); cout<<s; The programme will display 10e-10 … Software Development c++ | |
I need help with this problem. The assignment says: "Do programming Exercise 6, but instead of declaring an array of three CandyBar structure, use new to allocate the array dynamically". Here is assignment 6: [CODE]#include <iostream> using namespace std; struct CandyBar { char candyName[25]; double candyAmount; int twoCandyWeight; }; int … Software Development c++ | |
I am trying to find the position of the maximum number in a 2D array. i have used .max() to find the max value but how do i find its position? Software Development python | |
Lets see if I can explain- I have a text box (rich text box) in a form. Inside the box, some data gets put in there- specifically insurance information. Normally, the box doesn't need to change color to alert the user there's a problem with the text that's inside, because … Software Development vb.net | |
i have been looking for help with this now for days and still not able to get this working. I want to make a function to get each line of my txt file and place it in its relavent var. IE DIM ServerV = (firstline of txt file) dim DatabaseV … Software Development file-system vb.net | |
[FONT=Arial]whats goin guys? I wanted to know how you would add in videos or music into your website using VBScript. If anyone can help me out I'tll be great :) thank you[/FONT] Software Development vbscript visual-basic | |
hi how are you ? i have project in loop but i dont know how to solve it ? Write a C program to read results of class of 20 students. Each student has 4 results, distributed as follow: • Test 1 25 % • Test 2 25 % • … Software Development c | |
hey, I've been reading awhile about events. I can actually work with them and create custom events for booleans, integer, arrays, etc, but only for those I've created. I cant seem to figure out how to add a listener upon a variable that I did not declare. For exaple, via … Software Development | |
Using the tutorial found here: [url]http://www.daniweb.com/code/snippet216550.html[/url], I have begun the graphic portion of my game. I have many .gif battler sprites loaded into variables in my project. However, all of these battlers are right-facing. I need some of them to be flipped to be left-facing to be on the hero's … | |
I have been doing strait-up c++ for a while, now I want to learn VC++. What are some easy commands? like a show form command and some others. Thanx, JT Software Development c++ | |
i have written a program in c++ using the concept of file handling. this program is about managing a basic electronic hardware store stock and showing the sales report. i am not able to understand why the [B]contents of my file are not being displayed, modified, deleted, or even printing … Software Development app-store c++ file-system ios visual-basic | |
Hi All, I have had some reall problems with this. I have a form with a datagridview, now I can add new records and the dataset will update fine, but it wont update when I want to delete a record. Please see below my code. [CODE] Imports System.Data.SqlClient Public Class … Software Development dataset open-source vb.net | |
I am a fifteen year old trying to learn c++ to program a scientific calculator that is simpler to use. Would it be okay if I asked for advice on different problems I am having with the calculator and how to program certain things on it without providing a code? … Software Development c++ | |
Hi All, I have a text document that am pulling infomation out of. i only want to collect the information after the = sysmbol which is on each line. here is the code so far [CODE] Dim FileName As String = "C:\test.txt" Dim TextFromTheFile As String ' Whole text Dim … Software Development vb.net | |
Need ideas for this program: Write a program that allows the user to enter the last names of five candidates in a local election and the number of votes received by each candidate. The pgoram should then output each candidate's name, the number of votes received, and the percentage of … Software Development c++ | |
Hello there. I would like to ask if it is possible for datagridview to have a "drop down calendar" for date inputs and checks when one date is chosen 10 times already. Thanks. If ever this isn't possible, please do tell me some alternatives. Thanks again and God Bless. :D Software Development vb.net | |
I wanted to know how to alphabetize 2 listboxes together. lstResult contains Names and lstResult2 contains numbers corrisponding to the names in lstResult. When alphabetizing, i want to keep the name in lstResult and number in lstResult2 together. Software Development | |
Hi everyone! I'm reading a book and doing some exercises in this book. One of them is: define a class, which implements arithmetic (+, -, /, *) with arbitrary precision. This is a new type with just some arithmetic operations. With type double we also can do some arithmetic but … Software Development c++ | |
good day and a happy new year to you folks. im trying to copy the contents of one text file to another text file but i cant seem to get it right. written below is the code im using but it does not seem to work. any help please? [CODE]#include … Software Development c file-system | |
Hi guys, I'm dynamically loading a dll that I've written at runtime but for some reason I'm struggling to get the generics working. I keep getting the following error: [COLOR="Red"][B][I]Cannot create an instance of XmlPlugin.XmlPlugin`1[T] because Type.ContainsGenericParameters is true[/I][/B][/COLOR] Heres the code that's in the DLL that I'm trying to … | |
I understand that int values, when autoboxed, are interned i.e no 2 objects containing the same int are present, and so we can compare two Integers by == So why does the following happen :[CODE]Integer iRef1=1000; Integer iRef2=1000; System.out.println(iRef1 == iRef2); System.out.println(iRef1.equals(iRef2));[/CODE] This prints [CODE]false true[/CODE] On the other hand, … Software Development java | |
Hello all, I am building a web application in python that prompts the user for a question that they want to have answered, then gives multiple answers by querying various Q&A sites (yahoo! answers, chacha, answerbag, etc). The problem is, I'm having trouble finding a significant number of APIs from … |
The End.