199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Peppermaud

Here is the Homework question... This is another project involving static methods and arrays. Once again, static methods are covered in the text in Chapter 5. Methods with arrays as parameters are covered in Chapter 6 sections 4 and 5. (This applies to editions 6 and 7.) 1. Write a …

Member Avatar for stultuske
0
152
Member Avatar for LEEEEE

Hay i'm new here + new to c++ :cheesy: But not new to programming/Scripting (QBasic/VB/VBS/VBA/Batch/HTML) LOL Looks like i like the basic stuph :eek: Anyways i'm learning C++ But a good start would be a Compiler! So where do i get 1? oK thats my question! Thanx

Member Avatar for WaltP
0
214
Member Avatar for DiscoJesus

I'm pretty low-level at C++, but decided writing up a program to do some playtesting work for me would save a lot of time. Anyway, I'm almost done - been debugging for a little while, and I've managed to bring it down to 16 repeats of the same two errors...and …

Member Avatar for Reisuke
0
1K
Member Avatar for sexyzebra19

I need this for matrix multiplication, I'm putting any 2 dimensional matrix into 1 dimension by column major order, i.e. the matrix 1 2 3 4 is stored as [1 3 2 4]. To try and figure it out I've worked out the pattern for 2x2 matrices: [code=php] data_[1] = …

Member Avatar for dusktreader
0
154
Member Avatar for amit.hak50

Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height. In this I am not getting is that how we can store binary tree as an array.

Member Avatar for BestJewSinceJC
0
120
Member Avatar for lightninghockey

I was instructed in class to do the following.... The Programming Example: Calculator in Chapter 12 is designed to do operations on integers. Write a similar program that can be used to do operations on decimal numbers. (Note: If division by zero occurs with values of the int data type, …

Member Avatar for javaAddict
0
5K
Member Avatar for BluMess

Hey, I've come to a bit of a problem - I'm updating a website for users to upload their own games, animations ("toons") and artwork. The trouble is, I've made separate tables for each one, each with very similar structure What I want to do is show, say, the first …

Member Avatar for cane23
0
103
Member Avatar for Encrypted

I have no idea why, but I'm having problems with getting my strings to compare properly. Below is my code. The part I'm having trouble with is in the while loop. For some reason the programs looping even when my string matches the constant. Any help would be appreciated. [CODE] …

Member Avatar for Encrypted
0
115
Member Avatar for brubru

Hi, Is there anyway on how can I calculate the paragraph size in centimeters? My idea is to build a document, by filling blank spaces left on a page that has a big paragraph.. If I knew the paragraph size, I could organize the document to save pages, joining small …

Member Avatar for brubru
0
177
Member Avatar for Mouse1989

I have been aroundsites a while and I have learnt that ajax isn't that dynamic. I tried to use iframes but got caught with cross frame AJAX and PHP with parent page. [URL="http://www.daniweb.com/forums/thread262323.html"]http://www.daniweb.com/forums/thread262323.html[/URL] Which no one answered on, so I went to AJAX. I call a php form for users …

Member Avatar for kishan112
0
114
Member Avatar for tanvirahmad

Hi Experts i m using these code for selecting data grid row [CODE] While i <= DataGridView1.Rows.Count - 1 If Trim(DataGridView1.Rows(i).Cells(0).Value) = Trim(TextBox1.Text) Then DataGridView1.Rows(i).Selected = True Exit While End If i = i + 1 End While [/CODE] it's working nice. but , when no of row more then …

Member Avatar for ukshir
0
4K
Member Avatar for denni2727

Well, my problem is that i have to print some text in a dot matrix printer with a 8.5in width x 6.5in height page. At first, I change the paper size of the printer in the server properties from windows and it fixed the problem but now i need to …

0
145
Member Avatar for techie929

/*I am getting the following errors free.cpp: In function 'int main()': free.cpp:24: error: expected `;' before 'obj' free.cpp:25: error: 'obj' was not declared in this scope free.cpp:25: error: expected primary-expression before 'int'*/ [CODE]#include<iostream> using namespace std; int array[]={0,1,2,3,4,5,6,7,8,9}; class free { public: void function(int array[]); }; void free::function(int array[]) { …

Member Avatar for techie929
0
261
Member Avatar for benk1

I'm relatively new to session variables, and have been trying to use them in the following way: [CODE]session_start(); $daddr1=$_SESSION["daddr1"]; $daddr2=$_SESSION["daddr2"]; $daddr3=$_SESSION["daddr3"]; $daddr4=$_SESSION["daddr4"]; $daddr5=$_SESSION["daddr5"]; $iaddr1=$_SESSION["iaddr1"]; $iaddr2=$_SESSION["iaddr2"]; $iaddr3=$_SESSION["iaddr3"]; $iaddr4=$_SESSION["iaddr4"]; $iaddr5=$_SESSION["iaddr5"]; $notes=$_SESSION["notes"]; $purch=$_SESSION["purch"]; echo "<form name='form1' action='view_order.php' method='get'>"; echo "<table border='0' width='100%'>"; echo "<tr align='center'>"; echo "<td width='16%'> </td>"; echo "<td width='16%'>Your purchase …

Member Avatar for benk1
0
85
Member Avatar for isralruval

i have the following function which works, its encrypts a text file, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "zoo" if the user wants to shift the letters by 1 to the right the output …

0
71
Member Avatar for Tango2010

Hi, I realise this may be a simple problem but i've really been pulling my hair out at the moment. I've got a text file, which I need to read each of the 15 characters (numbers and letters) on each line in to a new record in an array (called …

Member Avatar for WaltP
0
162
Member Avatar for ukshir

Hi, I have a project developed in VB.NET 1.1 (using VS 2003). The project has forms developed using the DataForm wizard (Connecting to Access Database, having a dataset and couple of adapter as automatically generated through the wizard - See attached screenprint "Original Form In VS 2003.PNG"). I converted the …

Member Avatar for ukshir
0
346
Member Avatar for senthilleo

i want to create static website for my project using wordpress anybody guide me plz or give me nice web site to learn

Member Avatar for hireaprogrammer
0
86
Member Avatar for renyges

hi guys i have develope a database based system recently but its shows a error as in title do anyone can help me???? its realy urgent guys here is my code : [code] Imports System.Data Public Class Form2 Dim inc As Integer Dim maxrows As Integer Dim con As New …

Member Avatar for renyges
0
85
Member Avatar for dusktreader

In my application, i currently make many (parallel) calculations based on a time parameter. The calculation is a parametric function of time, so, each time value renders a unique solution. Currently, I have many threads that are calling the same calculation function, and the time parameters are often the same. …

Member Avatar for dusktreader
0
291
Member Avatar for ontherocks

Below is my code. I am not sure why am I getting the error "[COLOR="Red"]javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "lcc" is not defined.......[/COLOR]" [CODE]import java.io.BufferedReader; import java.io.InputStreamReader; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class Eval { public static void main (String[] args) throws Exception { ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine …

Member Avatar for ontherocks
0
115
Member Avatar for rledesma

I want to combine the following select statements so I can have 1 export file rather than 2. This code selects student information along with their HomeRoom teacher. [code]SELECT students.last_name, students.first_name, students.grade_level, teachers.last_name, students.student_number FROM students JOIN CC ON students.id = cc.studentid JOIN teachers ON teachers.id = cc.teacherid WHERE (cc.course_number …

Member Avatar for rledesma
0
103
Member Avatar for gedas

hey guys, i have a simple code that simply asks the user to input a number a number and than where you press you mouse it draws a circle you can draw as many circles as you have specified in the beginning of the app. well there is also a …

Member Avatar for skwatamkar
0
104
Member Avatar for whiteyoh

Hi All, Can anybody put me in the right direction for counting empty cells in a row? Thanks

Member Avatar for whiteyoh
0
83
Member Avatar for orwell84

okay, so I wrote a program in Perl to find prime numbers and, when learning C, I decided to translate it into C. The thing is that...well...it doesn't work. No matter what I do, I get the same message when I say ./primes.c at the terminal: Segmentation fault. I know …

Member Avatar for orwell84
0
113
Member Avatar for macdougc

Hi I have encountered a problem using vectors. I have a vector<char*> in a for loop, adding a char* to it after each iteration, but when I exit the loop and run through the contents of the vector, it has 4 copies of the final char* added. Here is the …

Member Avatar for Salem
0
159
Member Avatar for morgan505

Hi, I've been asked to write a program using Python to count the number of words in a sentance. The exact task is outlined below: Write a Python Program to count: (i) the number of lines (ii) the number of word (iii) the number of character in a text file …

Member Avatar for vegaseat
0
116
Member Avatar for dbbd

I'm using a modulu on a variable that has a hex numeric value, apparently I;m doing something wong: [CODE] import sys import fileinput if len(sys.argv) != 2: print 'Usage: ', sys.argv[0], 'val' sys.exit(1) offset = sys.argv[1] print 'offset=',offset mod = offset%4096 if mod != 0: print "unaligned: ",offset [/CODE] since …

Member Avatar for dbbd
0
258
Member Avatar for corby

question: Two pointers that point to different arrays cannot be compared meaningfully. That's false right? because they can be compared in the same manner as integers are correc? if i am wrong please explain y or if u have anything to add please do!!!

Member Avatar for Dave Sinkula
0
179
Member Avatar for angels21usa

I don't know anything about programming but I would like to figure out how to program this idea I had for calculating prime numbers. I know that this looks a little bit jumbled, but logically it should work. My basic idea is that the square root of the first number …

Member Avatar for angels21usa
0
96
Member Avatar for irmak1771

Is there a way to know which data(row) dataadapter.update changed in the database? I have a datagridview, changes in the gridview are updated with dataadapter.update at the database. But I have two databases so according to changes made in the datagridview the second table should be recalculated. So I want …

Member Avatar for Geekitygeek
0
176
Member Avatar for ticktock

Hello all! I am in the process of creating a restaurant application that lets the user select an item from a menu list (a listbox) and on a press of a button the selected item from the listbox transfers to to my current orders list (multicolumn listview, 3 columns; foodname, …

Member Avatar for Geekitygeek
0
673
Member Avatar for snakay

Hi, I'm having problem when trying to read from ArrayList.Here is my code [code] ArrayList arrList; public ARMakbuz( ArrayList Alist) { arrList =new ArrayList( Alist); } private void ARMakbuz_ReportStart(object sender, EventArgs e) { foreach (ArrayList item in arrList) //Here I get exception { Fields["KOD"].Value = item[0]; Fields["DESC"].Value = item[7]; Fields["QTY"].Value …

Member Avatar for snakay
0
153
Member Avatar for gnarlyskim

So I've missed the past week of my C++ class due to the SEC swimming championships being a week long :@, and I've missed the whole topic on file processing. I've been reading the slides and a few tutorials via lovely google searching, but it's a little hazy. Can anyone …

Member Avatar for gnarlyskim
0
147
Member Avatar for mairtinomarta

Does anyone know why these event codes run twice? E.g. I am using a cookie to keep track of [Ctrl] + [Shift] + [F] by incrementing a variable once everytime it is used. However the code for it runs twice and thus the variable is never odd as it always …

Member Avatar for mairtinomarta
0
768
Member Avatar for skwatamkar

hello friend this is the code of my splash screen i want to play a background music when this screen is appears who can i do that i have "hbd.au" file.which i want to play at back ground.I also want to stop the music when it end i.e recursive playback …

Member Avatar for skwatamkar
0
140
Member Avatar for bzupnick

im trying to do the most basic c# program to show my college class and for some reason a couple of simple if statements are messing up my whole small program [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { …

Member Avatar for Geekitygeek
0
113
Member Avatar for Pari13

hello Sir, I can not able to store file content into byte variable. I have do below code. aspx.cs page: [CODE] [B]code on button click[/B] DirectoryInfo dInfo; FileInfo[] FilesList; byte[] bytecontent; dInfo = new DirectoryInfo(Server.MapPath("upload")); FilesList = dInfo.GetFiles(); if (FilesList.Length>0) { files = new string[FilesList.Length]; foreach (FileInfo fi in FilesList) …

Member Avatar for Pari13
0
244
Member Avatar for sidd.
Member Avatar for Geekitygeek
0
197
Member Avatar for tanvirahmad

Hi Experts My problem is how to search any text in data grid view ? please help me soooon........

Member Avatar for TomW
0
107
Member Avatar for abcd24ef

Hi All, I'm trying to implement MVC pattern (Note: not by using ASP.net MVC framework). I'm not able to do view selection based on http request processing.I have added custom tag in web.config for URL mapping like this: [code] <controller.mapping> <entries> <entry key="/view/ActualPage1.aspx" url="ActualPage1.aspx" /> <entry key="/view/ActualPage2.aspx" url="ActualPage2.aspx" /> </entries> …

Member Avatar for kvprajapati
0
95
Member Avatar for mrinal.s2008

Hi, In the code snippet below, I tried to write the contents of a vector to a file using ostream iterator. However, when I try to read the contents of the file using istream_iterator, there is a problem. When the istream_iterator object is initialized using ifstream object fin, the istream_iterator …

Member Avatar for mitrmkar
0
300
Member Avatar for dawsonz

Hi, I'm trying to use the asp.net Input (file) with my program - i've placed it ont my program and I can click browse and it locates the file I want. Eg: "C:\Users\Name\Desktop\test.rtf" However, I then want to have it so that when I click a 'Submit' button it reads …

Member Avatar for kvprajapati
0
194
Member Avatar for villeson

Hey guys, I need a little help this is what I currently have: [CODE] Object[][] teamList = new Object[10][]; Label[] tlKnights = new Label[25]; Label[] tlSkullitz = new Label[25]; teamList[0] = tlKnights; teamList[1] = tlSkullitz; [/CODE] tl -- stands for Team Label, Im working on better naming conventions as well. …

Member Avatar for Geekitygeek
0
86
Member Avatar for codeblock

Hello all, I have a set of IF ELSE validation code ECHOING onto a php web page through a SWITCH staement. Everything works fine all error messages show up correctly. The problem is, after going through 3 conditons it starts to allow entry into my DB(mysql) all other entries goes …

Member Avatar for codeblock
0
185
Member Avatar for Medic873

okay this is a quite long winded so please help if you can because I have a lot of questions. I am trying to find a pixel by the color its displaying. Now the dream would be to make it where it can find multiple pixels by basicly saying find …

Member Avatar for Geekitygeek
0
86
Member Avatar for xcarbonx

hello, i have been struggling with this program for a few days now, and have decided to get some feedback. The program lets the user input a number from 0-6 (0 representing sunday and 6 representing saturday, and so on) for days of the week and you input a second …

Member Avatar for tetron
0
137
Member Avatar for jithusdani

Hi Folks, How we can check the current date is in between the first week of the current month and last week of the last month

Member Avatar for reach_yousuf
0
132
Member Avatar for doddware

The project that I'm currently working on is for an large embedded application with a multi-person team. During a recent review of the code I came across the following statement [CODE]bSlcIsolated[logical-1] = (!!p_bIsolated);[/CODE] The interesting part is the double inversion [CODE]!!p_bIsolated[/CODE] The register being double inverted, is a private byte …

Member Avatar for Salem
0
185
Member Avatar for mandeep.garg19

If a class does not extend any class and implements one interface, how many types this class has?

Member Avatar for jwenting
0
43

The End.