199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oneoderja

I want to modify the Cash Resigter Code below to create a file containing a sales receipt. The program should ask the user for the quantity of items being purchased, and then generate a file with contents below: SALE RECEIPT Unit Price : $10.00 Quantity: 5 Subtotal: $50.00 Sales Tax: …

Member Avatar for stultuske
0
3K
Member Avatar for jdh1231

Hi, I am trying to put random numbers in array, and use the array for other functions. However, I am stuck on inputting and displaying that array with random numbers. Can someone help? Please ignore other cases, and focus on case 0, which is displaying the elements of the array. …

Member Avatar for np complete
0
326
Member Avatar for Kamina00

Hi I am new to C++ and I just need some advice on declaring dynamic arrays. Take for example this code block: int a=0; cout << "Enter Arr size: "; cin >> a; int arr[a]; My compiler gives no error doing this but looking around the web I see many …

Member Avatar for Kamina00
0
220
Member Avatar for quantumss

I'm causing input letters to write ones into variables through an array. I'm trying to count the occurences of ones in a variable. Lets say I input aaaaa. The count output displays 12345. Instead of outputting the whole count of numbers, I want to output the biggest number in the …

Member Avatar for np complete
0
221
Member Avatar for techyworld

Hi, I write some data(Hello) in a file copy.txt. I read from the file copy.txt to convert the text "hello" to ASCII and then i store it in another file copy1.txt. It saves the ascii like this in the file copy1.txt: 104101108108111. Below is the ascii of each character: 104 …

Member Avatar for vegaseat
0
278
Member Avatar for vjnaveen
Member Avatar for Gen.Asura

Hey, I posted earlier about arbitrary expressions and I did find solution to that. The question is how do I create random expressions? So far I've created codes to generate random operators and random numbers, how will I generate random expressions? E.g. a1,a2,a3 are variables for random numbers I've assigned …

Member Avatar for JamesCherrill
0
175
Member Avatar for Loi-se

I wonder if I should continue to get a degree in software engineering because I think the work envoirments are a bit to much centered around verbal and direct communication for me. I'm not a very good verbal communicator and in agile teams this seems to be a very important …

Member Avatar for Loi-se
0
309
Member Avatar for Brian_L

#include <iostream> using namespace std; class Lists{ public: void insert_head(int insert); void remove_head(); void insert_tail(int insert); void print(); Lists(); private: Node *head; Node *tail; }; struct Node{ int data; Node *link; }; int main() { Lists temp; temp.print(); return 0; system("PAUSE"); } Lists::Lists(){ head = new Node; head->Link=tail; tail->Link=NULL; } …

Member Avatar for JasonHippy
0
151
Member Avatar for jontennyeah

i have a 1 listview with the records from my ms access datebase. Can you help me to work with the button than can search all the records in each cell / subitems on the listview? THAnKS godbless :)

Member Avatar for jontennyeah
0
109
Member Avatar for hillman.chen

Hi guys, I am trying to write a program that will ask for users name, birthdate and pet and from those info I need to use a random number generator to select 6 char from the name and animal and 2 numbers from the birthdate. This is my code to …

Member Avatar for vijayan121
0
419
Member Avatar for sundog1

Hi Guys, Currently I have a form that load an XML file and populates Text Boxes with certian Values from that XML. I also have an 'Admin' form which accept new values. What I am wanting to do is the following: When the Admin screen is loaded from a button …

Member Avatar for sundog1
0
300
Member Avatar for subith86

I have a code which gives the maximum value I can get by filling the knapsack with the optimal set of weights. int arr[5] = {0, 0, 0, 0, 0}; int Weight[5] = {2, 5, 8, 7, 9}; int Value[5] = {4, 5, 7, 9, 8}; const int n = …

Member Avatar for Lucaci Andrew
0
332
Member Avatar for guillier

Dim ADP As SqlDataAdapter = New SqlDataAdapter Dim CONN As SqlConnection = New SqlConnection("Data Source=|DataDirectory|\dbTesting.sdf") Dim COMM As SqlCommand = New SqlCommand("SELECT * FROM tbTesting") Dim DS As New DataSet CONN.Open() Dim DR As SqlDataReader = COMM.ExecuteReader() DR = COMM.ExecuteReader() TextBox0.Text = DR("Test").ToString This was my coding in order to …

Member Avatar for guillier
0
127
Member Avatar for Larrywaz

I have a Vietnam history website "swiftboats.net" that consists mainly of lists of names contained on multiple pages ... is there a search script available that can scan all of these pages and return a listing of all matches, as links, that will take someone right to each item as …

Member Avatar for pritaeas
0
89
Member Avatar for sean.downes.96

Hello, Can someone help me please. Ive got a listview with the columns etc, when i save a form and it shows up in the listview with some items in the columns, how can i get a textbox to add a number each time a row is entered. example: I …

Member Avatar for Begginnerdev
0
122
Member Avatar for ben.sugden

I am responsible for developing and maintaining a widescale CRM platform written with Visual FoxPro 9.0 (sp2 SEDNA). Alongside a SQL 2008 back end, I make extensive use of the Microsoft Common Control libraries for the purposes of providing TreeViews, ListViews and the like (the kindof theing that VFP does …

Member Avatar for ben.sugden
0
224
Member Avatar for suntec

Hi! I have a real simple problem :) I wrote an application in VB.NET and I need to loop through multiple files. Now my code looks like this: [code] Private Files() As String = System.IO.Directory.GetFiles(My.Application.Info.DirectoryPath & "\Data", "*.spe") [/code] which allows only one file to be opened. I have 12 …

Member Avatar for Begginnerdev
0
1K
Member Avatar for Jmartez31
Member Avatar for ronb

i wrote and compiled an vb 6 program on a windows xp sp2 box i am trying to run the program via a batch file from an nt box i get this error: runtime error 91: object variable or With block variable not set the program runs under the scheduler …

Member Avatar for aronhugos
0
4K
Member Avatar for prakhs

#include <stdio.h> #include <malloc.h> struct node { int data; struct node *link; }; void append (int data, struct node **s) { struct node *p, *q; if (*s == NULL) { p = (struct node *) malloc (sizeof (struct node)); p->data = data; p->link = NULL; *s = p; return; } …

Member Avatar for deceptikon
0
146
Member Avatar for Alochai

I have just started using php includes on my website to help me propagate changes across an entire site. So far I have set up include for 3 parts of my site. The header, footer and the navigation, as these are quite likely to change on a regular basis. I …

Member Avatar for Alochai
0
332
Member Avatar for asrith001
Member Avatar for AndreRet
0
162
Member Avatar for anisha.silva
Member Avatar for anisha.silva
0
100
Member Avatar for ratanji

hi i want to upload and post my pdf material in my site and its my personal institute material so i dnt want to give the download option for that file so how it is can anybody help me ???

Member Avatar for ratanji
0
157
Member Avatar for Beastegargoyle

Hello, I am currently writing a card game in Java. My question is when I write the follwoing code below: `Inline Code Example Here` 38 // select a random number between 0 and 51 39 int second = randomNumbers.nextInt( NUMBER_OF_CARDS ); Will the program properly generate 52 cards? Should I …

Member Avatar for NormR1
0
321
Member Avatar for killerSmile

can anyone help me to make a program for multiple choice test using visual basic and ms access???pls ..

Member Avatar for deceptikon
0
107
Member Avatar for Rizi004

Hello Guys how are you all? I have a text box for searching, when i write L all the data that starts from the L should display in a list aplabetically. My data is stored in multidimension array. Now tell me how i can perfrom the above task. i use …

Member Avatar for urtrivedi
0
122
Member Avatar for twentynine

Hi, I recently upgraded my webserver from windows2003 server IIS 6.0 to Windows2008 server IIS 7.5. But when I try to browse any site i get the following error: Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error …

Member Avatar for abhishekabhi
0
146
Member Avatar for sundog1

Hi Guys, I've been working on a little something where details get put into an XML File and then squirted into another form which has been working fine. I've now added another section to the XML file to hold the Company Name and it gets written to the XML without …

Member Avatar for sundog1
0
558
Member Avatar for newbie26

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar for newbie26
0
477
Member Avatar for mionazraelmiranda

How can I avoid negative numbers from being inserted in my database table? i have a code that works but will not prompt until the value itself in the table is below 0. $nega = mysql_query ("SELECT * from `bgl` where product_code = '$product_code' and stock > 0"); $row = …

Member Avatar for mionazraelmiranda
0
239
Member Avatar for mcmanuel20

How to i write a c# programme to store data into a text file using C#? using System; using System.Collections.Generic; using System.Linq; using System.Text; class Contact { string Name; string Address; string Email; string PhoneNo; public void AddContact() { Console.WriteLine("Enter contact name"); Name = Console.ReadLine(); Console.WriteLine("Enter contact Address"); Address = …

Member Avatar for Mike Askew
0
327
Member Avatar for mcmanuel20

using System; using System.Collections.Generic; using System.Linq; using System.Text; class Contact { string Name; string Address; string Email; string PhoneNo; public void AddContact() { Console.WriteLine("Enter contact name"); Name = Console.ReadLine(); Console.WriteLine("Enter contact Address"); Address = Console.ReadLine(); Console.WriteLine("Enter contact Email"); Email = Console.ReadLine(); Console.WriteLine("Enter contact PhoneNo"); PhoneNo = Console.ReadLine(); } public void …

Member Avatar for Mike Askew
0
126
Member Avatar for code739

Hi guys, Im just confuse...heres the situation Im having photo uploads in php.., before uploading temporary file will be created my question is where can you find the temporary file, @the web server(where your php app is runnin) or @the client PC(where the uploading session is done) thanks in advance.....

Member Avatar for code739
0
230
Member Avatar for darl.liew

Hi, I need help with this... can anyone help me?? Plssssss Im getting Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in line 10 What's wrong with it... can't seemed to find the error. Im trying to make my blog display the video. <?php $file = $_GET['file']; $image = $_GET['image']; …

Member Avatar for darl.liew
0
5K
Member Avatar for KronoAngel

I am not to sure what the error is in my code but the order variable does not seem to initialise properly and hence my gui displays the wrong output, for example when cheese,tomato and chicken are selected it only displays Chicken with Tomato Tomato $12.75. Any help will be …

Member Avatar for stultuske
0
323
Member Avatar for rotten69

Hi there, I'm supposed to integrate different sources of data into one database. I am given these types of sources: * .txt * .csv * .html * .xls * access file as well. what attributes should I be looking at to construct a global schema because all of them have …

Member Avatar for debasisdas
0
159
Member Avatar for jnewman3

I've been working on this code for 2 days now and i finally think i got the while loop running correctly but now i cant seem to print the child process id's. The code starts with the parent process forking 3 child processes. Then the parent must wait till a …

Member Avatar for rubberman
0
276
Member Avatar for linabeb

hi all i would like to ask...ermm i have an erorr it say that my winscard.h no such file or directory...when i search it in my include folders there is no winscard.h in that folders..so...what should i do..is it somekind relate to the pcsclite.h ??? do i need to install …

Member Avatar for rubberman
0
2K
Member Avatar for juliani91

A corporation has six divisions, each responsible for sales to different geographic locations. Design a DivSales class that keeps sales data for a division, with the following members: • An array with four elements for holding four quarters of sales figures for the division • A private static variable for …

Member Avatar for rubberman
0
510
Member Avatar for TheNotoriousWMB

I am building an application that calculates travel time necessary to reach a user selected destination from predetermined city based upon an estimated travel speed determined by the user. For this program I am to utilize classes/class source files. When compiling my source file I continuously get the error “undefined …

Member Avatar for TheNotoriousWMB
0
297
Member Avatar for edsweng

Is it possible to embed variable in longtext data field? **For instance:** the field name is "description" and it contains... The date is $date_var. **In PHP/MySQL Query:** $date_var = date('m/d/Y'); echo $row['description']; **The output should be:** The date is 10/14/2012. please advise.

Member Avatar for edsweng
0
112
Member Avatar for hello10
Member Avatar for Some Dude

So basically I am new to API programming and teaching myself. I've done a bit of console C++ that I got off of.... an internet tutorial. The story is the same here too. I am somewhat aware of what the lines of code do, though I am not yet a …

Member Avatar for neithan
0
314
Member Avatar for TonyG_cyprus

Hi all,Anyone know of a decent free sqlite manager. One that will work with sqlite not sqlite3. Ive tried some and not been able to find one that works!

Member Avatar for TonyG_cyprus
0
193
Member Avatar for fdama

Hi, I'm new to python and I am trying to write a 'Guess the number program'. I am however getting the following error message: Traceback (most recent call last): File "C:\Users\fdama\Documents\python\GuessMyNumber.py", line 8, in <module> guess = false NameError: name 'false' is not defined I don't know why I am …

Member Avatar for snippsat
0
214
Member Avatar for ibthevivin

I'm totally lost. I have a programming partner and this is what he sent me. I can't get the program to compile. I don't know where to start. Any suggested place to start? package Assignment2; public class TooBigException extends Exception { private static final long serialVersionUID = 1L; public TooBigException(String …

Member Avatar for NormR1
0
269
Member Avatar for Chuckleluck

This might be a general math question, so excuse me if it doesn't belong here. I have an airplane that flies around the screen. Pressing the W key will make it counterclockwise, and pressing the S key will make it rotate clockwise. When I press space, it shoots bullets. However, …

Member Avatar for Chuckleluck
0
156
Member Avatar for nsharif

I would like to know what tool/class should I use to create a map that used for games? such example: user use key to move an object...and if moves then the more map will shown ... I admit, I did not do much research on this.. but I wanted to …

Member Avatar for nsharif
0
110

The End.