199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hiimhenryyy

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 …

Member Avatar for MonsieurPointer
0
177
Member Avatar for sugantha

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 …

Member Avatar for Ancient Dragon
0
6K
Member Avatar for ranashok

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

Member Avatar for Eternal Newbie
0
224
Member Avatar for amear

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 …

Member Avatar for cwarn23
0
120
Member Avatar for vedro-compota

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 - …

Member Avatar for vedro-compota
0
338
Member Avatar for MargateSteve

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 …

Member Avatar for smantscheff
0
112
Member Avatar for sidyusuf

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 …

Member Avatar for Pgmer
0
338
Member Avatar for disc

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] …

Member Avatar for ohmagoleh
0
81
Member Avatar for terey

[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 …

Member Avatar for gyme20
0
95
Member Avatar for Slade

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 …

Member Avatar for jack lion
0
222
Member Avatar for jackyxman

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 …

Member Avatar for Pgmer
0
1K
Member Avatar for cyberdaemon
Member Avatar for TigerTeck

[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; …

Member Avatar for JamesCherrill
0
136
Member Avatar for Shwetha Dali
Member Avatar for guidely

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

Member Avatar for D33wakar
0
15K
Member Avatar for Ich bin würdig

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); } …

Member Avatar for YAMNA MIDHAT
0
190
Member Avatar for Lomholdt

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 …

Member Avatar for JoshuaBurleson
0
154
Member Avatar for CKShia

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 …

Member Avatar for JamesCherrill
0
271
Member Avatar for dwbrian

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 …

Member Avatar for JoshuaBurleson
0
182
Member Avatar for carrieathomer

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?

Member Avatar for carrieathomer
0
111
Member Avatar for Labdabeta

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 …

Member Avatar for Labdabeta
0
217
Member Avatar for James19142

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 …

Member Avatar for James19142
0
881
Member Avatar for davy_yg

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'])){ …

Member Avatar for davy_yg
0
184
Member Avatar for fraandres

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 …

0
117
Member Avatar for thenewbiecoder

[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 …

Member Avatar for vijayan121
0
220
Member Avatar for HarshaS2

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 …

Member Avatar for JoshuaBurleson
0
403
Member Avatar for twicepipes

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 …

Member Avatar for vijayan121
0
265
Member Avatar for techlawsam

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 { …

Member Avatar for techlawsam
0
268
Member Avatar for Justinedeleon

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 …

Member Avatar for Justinedeleon
0
565
Member Avatar for Inny

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 …

Member Avatar for Inny
0
304
Member Avatar for altXerror

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 …

Member Avatar for altXerror
0
342
Member Avatar for literal
Member Avatar for lxXTaCoXxl

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 …

Member Avatar for Teme64
0
152
Member Avatar for shmamy

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 …

Member Avatar for shmamy
0
740
Member Avatar for fredw300

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(); } …

Member Avatar for fredw300
0
127
Member Avatar for Labdabeta

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 …

Member Avatar for mike_2000_17
0
234
Member Avatar for MonicaClare

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 …

Member Avatar for jade_1453
0
150
Member Avatar for mrbungle

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 …

Member Avatar for mrbungle
0
473
Member Avatar for rosey_fci

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

Member Avatar for sergent
0
175
Member Avatar for adot76

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 …

Member Avatar for Narue
0
212
Member Avatar for acepeda

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]

Member Avatar for acepeda
0
124
Member Avatar for toms ace

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 …

Member Avatar for Airshow
0
240
Member Avatar for monkeybut

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 …

Member Avatar for monkeybut
0
101
Member Avatar for leo1937ca

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 …

Member Avatar for Unhnd_Exception
0
173
Member Avatar for Violet_82

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); }); …

Member Avatar for Violet_82
0
101
Member Avatar for Blink383

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 …

Member Avatar for Taywin
0
231
Member Avatar for julylee06

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 …

Member Avatar for julylee06
0
227
Member Avatar for sibymary

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

Member Avatar for pritaeas
0
76
Member Avatar for Braindead90

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 …

Member Avatar for sfuo
0
259
Member Avatar for kzip

-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> …

Member Avatar for Stefano Mtangoo
0
157

The End.