199,114 Archived Topics
Remove Filter ![]() | |
Hi, This is my first post here at DaniWeb. I've been using it as a resource through out my assignments. I am truly eager to learn C++, but I've gotten stuck. All I am trying to do is average an array of numbers, but I haven't been able to even … ![]() | |
hello friends, I am doing a bank management system project where I have to conect a database done in MS Access(.mdb extension) to the C++ code...I ve never learnt much about databases and this is the first time I m using Access...so I d be grateful if anyone could explain … | |
hi,i have a three columns in empty datagridview to get a input from user.i had a doubt to create a new row after entering the values in those previous cells | |
i need function : i want to make game to figure the word meaning e.g: when i wrote a abcdf i want to convert to bacfd and when the page refresh again its change again to another word and never convert to the original word "abcdf " and i want … | |
Hi there) Guys , as I understand - this is c++ code = [CODE]int WINAPI WinMain(HINSTANCE hInst,HINSTANCE,LPSTR,int ss) { /* создаем и регистрируем класс главного окна */ WNDCLASS wc; wc.style=0; wc.lpfnWndProc=MainWinProc; wc.cbClsExtra=wc.cbWndExtra=0; wc.hInstance=hInst; wc.hIcon=NULL; wc.hCursor=NULL; wc.hbrBackground=(HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName=NULL; wc.lpszClassName="Example 4 MainWnd Class"; if (!RegisterClass(&wc)) return FALSE;[/CODE] but tell me please - … | |
I have hit a bit of a stumbling block with a project I am working on. Basically it tracks football (soccer) results and everything works fine as things are but I there is something else that I hope to do now that I cannot get my head around. Basically, there … | |
Hi Frnds, i have four comboboxs that are dependant on each other selection.Its working fine but but what i want is to show "select an item" on zero selectedindex of each combobbox when form load.How can i do that???????what i have done is like as: [CODE]Private Sub Form2_Load(ByVal sender As … | |
Hi All, I'm trying to access php-code on another url: Local php-code test.php: [CODE]ob_start(); include( "http://www.mysite.eu/ext.php"); echo "Local call!"; echo "External call: ".GetExternal( ); ob_end_flush(); ?>[/CODE] And the code on the other url in ext.php: [CODE]<?php function GetExternal( ) { $output = "This is external text"; return $output; } ?>[/CODE] … | |
[CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char ch; do{ cout<<"press Q or q to quit,press any key to continue : "; cin.get(ch); cin.ignore(); if(ch!='Q'&&ch!='q') cout<<" you want to continue?\n"; else cout<<"you press q to quit "; }while(ch!='Q'&&ch!='q'); ; system("pause>NULL"); return 0; }[/CODE] my … | |
Is there any possible way to remove a query string without redirecting to another page? You see, my problem is I am using panels, when the create new button is clicked, it gives the querystring of "?JobID=New" now when I click on another button (which simply hides the current panel … | |
Dear All, Pls. help me I have insert data to MS.Access and re-load data to DataGridView, it's always do at LoadAllData() but some time datagridview is not refresh. [CODE]Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\EmployeeDB\EmployeeDB.mdb;User Id=;Password=;" Dim conn … | |
Please help me how to create inputbox in visual C#? | |
[CODE]public class CashRegister { public CashRegister() { purchase = 0; payment = 0; } public void recordPuchase(double amount) { purchase = purchase + amount; } public void enterPayment(int dollars, int quarters, int dimes, int nickels, int pennies) { payment = dollars + quarters* QUARTER_VALUE + dimes*DIME_VALUE + nickels*NICKEL_VALUE + pennies*PENNY_VALUE; … | |
Hi, How to read line by line of text file and store to array C data.txt example [CODE] 1234 25500 24000 1 1345 23523 21209 5 9865 12389 600 98 .... [/CODE] and sorted in order by last column I try everything and it not working Thank | |
Can someone please check my syntax? Thanks. The program runs but the output has some kind of error. Thanks. [CODE] #include<stdio.h> #include<conio.h> #include<string.h> void Pig_Latin_Converter() { char str[50]; char nv[50]="yay"; char c[50]="ay"; char key[]="aeiou"; char keys[]="bcdfghjklmnpqrstvwxyz"; char test[20]; char *p=str; scanf("%s",str); { p=strpbrk(str,key); if(str!=p) { strcat(str,nv); printf("Output: %s", str); } … | |
![]() | Hey, so i want to make a funktion that prints all the words from a list (words.txt) that doesn't contain the letter e. I tried something like this: [CODE]def has_no_e2(word): fin = open('words.txt') for line in fin: word = line.strip() if letter in word: letter == ('e') print(word)[/CODE] But i … |
I am writing a simple program to get user input from Scanner to perform some tasks, I want to get user input only from the number 1 to 3, any negative number or string will display an error message and prompt user to re-enter. Here's comes the problem... When I … | |
I'm completely new to Python and unsure how to run this script. The script is to take in an image folder and for each image, if the size isn't a power of 2, it will add "paddings" to it to make sure it's a power of 2. (These pictures are … | |
Hi here is the scenario. I am using Form View to insert data to the table. My table is MS sql server table of which all the columns are allow no nulls However, sometimes i need to empty values ie no value to the table column. Is it possible? | |
I am extremely confused about libraries and have been having trouble understanding them with google. Basically I want to create a library so that I can use a bunch of functions from another file without all of the libraries' contents being seen. EG: library code: [CODE]class test { private: int … | |
i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able … | |
banner_manager.php [CODE] <?php //if (!$_SESSION['login']){ // echo "Anda tidak berhak mengakses halaman ini."; // exit(); //} include ("includes/koneksi.php"); $_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; $_REQUEST['link'] = isset($_POST['link']) ? $_POST['link'] : ''; $_REQUEST['gambar'] = isset($_POST['gambar']) ? $_POST['gambar'] : ''; $_REQUEST['id'] = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if (isset($_REQUEST['simpan'])){ … | |
my question is how can I output the data on the input box "Order total is" I have try everything but I just stuck on this part, I'm very new on this, I did the function showSum so I can show the sum of the total checkboxes. thank you for … | |
[url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number … | |
import math def board_gen(width, height): height = int(height) width = int(width) xo = ['O','X','O','X','O','X','O','X','O'] strt_ltr = 1 board = [] for row in range(1, (height+1)): strt_ltr = int(math.sqrt((strt_ltr-1)**2)) line = xo[strt_ltr:(width+strt_ltr)] board.append(line) return board config = ['O','X','O','X','O','X','O','X','O'] if (height%2==True): print config[0:width] else: print config[1:width] I do not know where to … | |
I know how to use the compare functions to check if a string is exactly the same as another but I wasn't sure if there is an easy way to go about checking if a string contains any sequence of A through F. Can I add up the memory values … | |
Ok so this time before I wrote this program I did more reading and practicing and reading examples of code with method statements and class examples. When I finished this program Im still getting a lot of errors...any help? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Problem10Pg179 { … | |
Can someone help me with TASM? i need a simple shape like sun or anything that is not very basic but hard to do. please i need help. this is one of my gf's finals project requirement :(( please i really need help in this. (i dont know much about … | |
Id like to show total number of users elsewhere on my site, and dont know which part of the following code calls that. I want to have 'some text[number of users here], and counting!' I need to strip out only the minimum code to display the total number within another … | |
ok. so i'm having trouble with the Windows API. i'm just learing how to use it, so i don't know much about it. anyways, i just wanted to create a window and have it displayed then catch the exit message and close, but VC Compiler is throwing errors. 1>c:\users\furrix\documents\visual studio … | |
| |
I've decide to create a dock like application kind of like Macintosh's dock. I need some assistance finding information on how to get application icons, and how to allow users to drag and drop application shortcuts into the dock, as well as how to stop the applications from opening a … | |
Okay so someone may have already posted something like this but my assignment is due in like 4 hours and don't have time. So here is the problem and my code. My problem that I am having is that it only works for single words. Not whole sentences. I need … | |
Hello, I am creating two forms Form1 and Form2 in C#. On Form1 there's a button to create more than one instance of Form2 based on a number provided by user. Here's the code to create Form2 instances: [CODE] for(int i=0; i < numOfCopies ; i++) { new Form2.show(); } … | |
Is there a way to make a class visible only from within another class. i.e: [CODE]class myclass { private: class anotherclass { //stuff that only can be used from within a myclass function void dosomething(); float dosomethingelse(); }*anotherclasses; int numanotherclasses; public: int createanotherclass();//creates anotherclass object, puts it in the array … | |
hi.. uuhhmm.. i have a problem in how to put an String Buffer method here in my code.. uuhhmm.. i just want to know the easiest way of putting a String buffer .. please help . . thanks.. [code="java"]import java.awt.Graphics; import java.util.Random; import javax.swing.*; public class Change { public static … | |
I have a listview that pulls data from a MySQL and I can now [URL="http://www.daniweb.com/software-development/vbnet/threads/386126"]finally sort queries by date range [/URL] (thanks Unhnd Exception!!). Also in that query, I have it sorted by ID number. This brings me to another question. The ReportViewer pulls up a really nice report for … | |
write a prolog program for reading a list of N student names and their real scores ,compute the average of their scores and query about any student belongs in list or not can any body helllllllllllllllllllllp | |
I am having a problem and hopefully you guys can help me out.. I need to count the frequency of a character in a string(option 5 in the program. I can do this part however i cannot get my program to count anything that is in uppercase. It only does … | |
Hey Guys, Im wondering how can I create a grid with a cell with multiple data.I want to Display Product Name,ProductID and Price in one cell.How can this be done in VB2005.Thanx! Examples: [URL="http://dribbble.com/shots/40786-Autocomplete"]http://dribbble.com/shots/40786-Autocomplete[/URL] [URL="http://dribbble.com/shots/199277-Search-Suggestions"]http://dribbble.com/shots/199277-Search-Suggestions[/URL] | |
Hello everyone, First of all I would like to introduce myself, I'm tom and I spend hours developing websites. Right, down to the serious stuff... I have made a nice little AJAX based commenting system, it shows the 5 latest posts, so, when a user posts a comment the list … | |
I have a quick question, I have to read in data from a file that has names and grades in it, I must take the names and store them in a string array and the grades and store them in a 2-d array. Any pointers on how to determine what … | |
I am using vb 2008 express and having a problem adding a Maximize, Minimize or Cancel button to a MDI Form. The default icon does not display along with Minimize, Maximize or Cancel button although the Properties are set true. There is only a "none" option in the Cancel properties … ![]() | |
HI there, I have a really annoying and strange problem with a script, here's the code: [CODE] <script type="text/javascript"> $(function() { var images = $('.home_page_pic img').hide(); var index = 0; images.eq(index).show(); function swapImages() { images.eq(index).fadeOut(2000, function() { index++; if (index == images.length) { index = 0; } images.eq(index).fadeIn(2000, swapImages); }); … | |
I had to reconstruct my program from the last time I had posted for help. My instructor enlightened me that I needed to follow her example to the tea, even though I had the same output that was required, I did not have all concepts required meet. So, after spending … | |
Ok, so I need some guidance. Am trying to implement a linked list in java. I can't get it. I have been on here - dreaminncode, wikipedia, and some other colleges sites - I still don't/can't get it. I did look at the previous threads on this but they didn't … | |
hi,i want to insert date into mysql table..but the date must not be current date.for example if i am giving 12-3-2003.then ,this date should be insert into the database...... thanks advance | |
I am working on creating a linked list to connect the previous value number (or string) to another value I asked this question before I am just guessing I did it completely wrong since no one responded. So what would be the best way to start the function. I need … | |
-upload.php- [CODE]<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form action="rename.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td><strong>Single File Upload </strong></td> </tr> <tr> <td>Select file <input name="ufile" type="file" id="ufile" size="50" /></td> </tr> <tr> <td align="center"><input type="submit" name="Submit" value="Upload" /></td> </tr> </table> </td> </form> </tr> … |
The End.