64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JimD C++ Newb

Good evening, everyone! I'm currently writing a game for a class, and I'm attempting to add a few extra features that aren't required. The one that is giving me difficulty is the high scores. I am saving the score and the name as a string. When a game ends, it …

Member Avatar for JimD C++ Newb
0
132
Member Avatar for gehring

Hi All, I am extremely new to C++ and would greatly appreciate any advice regarding the following question: I am trying to create a 2D array of CStrings, however it needs to be declared dynamically for my application. I have read up on numerous forums but I just cant seem …

Member Avatar for Clinton Portis
0
836
Member Avatar for J0kerman

So i want to define a variable with the index of a current step, and then print that variable. For example I have a loop with 10 steps, and i want to define 10 variable: x1, x2, x3....x10 and then print them out: x1=something, x2=something, ......, x10=something.Does anyone know how …

Member Avatar for J0kerman
0
23K
Member Avatar for sathya8819

Hi, I have a problem. I have this image with various regions detected and coloured differntly. What I now need to do is, to find the mathematical center of each of these regions. I have the code for this. [CODE] int labelnew = 2,centerx,centery; List<Point> l = new List<Point>(); Point …

Member Avatar for sathya8819
0
73
Member Avatar for Behi Jon

Hi, What is the problem of this program ? It should print intertech systems, but it doesn't do . This program must convert all letters of the string to lowercase character . [code] Page 60 , 132 TITLE A08CASE (COM) Change uppercase to lowercase .MODEL SMALL .CODE ORG 100H BEGIN: …

Member Avatar for Behi Jon
0
212
Member Avatar for maliknouman

Hi please help me in this code, it gives always error on execution of command is comes. [code=vb.net] Try DBconnect() cmd.CommandText = "Designation_INSERT" cmd.Connection = con cmd.CommandType = CommandType.StoredProcedure 'Fill the Parameters of Store Procedure Param = cmd.Parameters.AddWithValue("@DesignationID", TxtDesigCode.Text) Param = cmd.Parameters.AddWithValue("@DesignationName", TxtDesigName.Text) Param = cmd.Parameters.AddWithValue("@ApprovedBy", TxtDesigApproved.Text) cmd.ExecuteNonQuery() 'Error Comes …

Member Avatar for maliknouman
0
256
Member Avatar for all4peace

Hi All, I'm trying to create a table that has 2 columns and some number of rows. I would like to add an additional row at the end that is one cell which extends the entire row! I'll show you a simplified code. The problem is that the last row …

Member Avatar for reach_shailshar
0
153
Member Avatar for Kennych

Essentially what I'm trying do with nested statements is that when I enter the the second switch stament and when I exit the second switch statement it goes back to the first switch statement menu. Currently the current code exits the entire program after the second switch exits, which of …

Member Avatar for jonsca
0
856
Member Avatar for LizzyJo

Hi all. :icon_smile:I am having problems with my form validation and getting it to run. I also have been unable to get the last page update to display at the bottom of the screen:icon_redface:. Is anyone able to help me to get these things to work - I am getting …

Member Avatar for Airshow
0
152
Member Avatar for rzhaley

hi im trying to create a C# program that'll display * ** *** **** *** ** * type pattern but i can only get mine to look like this when i try to add on to the code * ** *** **** and then it stops. can anyone help on …

Member Avatar for Geekitygeek
0
149
Member Avatar for phatJacob07

First of all, I'd like to say hello to the Daniweb community as a first-time poster. I'm sorry if this is a common error for you folks to deal with, but my preliminary search of the forum didn't really help me all that much. So here we are. Onwards to …

Member Avatar for phatJacob07
0
111
Member Avatar for mr_scooby

I have this form I'm working on and found something interesting attempt1 this way works exactly how I want, which is nothing in the input boxes and no error messages on loading the registration form, once submit is entered the empty fields have a message appear next to them, the …

Member Avatar for muralibobby2015
0
199
Member Avatar for motieno

I have followed the online tutorials for setting up your first php project using netbeans ide 6.5 mi. my project - NewPHPProject tree appears in the Projects window but i cant see the project's index.php file. What could be wrong? NewPHPProject tree | source Files | NewPHPProject tree That is …

Member Avatar for Stefano Mtangoo
0
126
Member Avatar for samoo

hi everyone i have a problem in my project that i have made pleaze help!!!!! this project allows the user to read words and their meanings from file and store them in AVL tree and then print the tree inorder, postorder, and preorder then print the result to file in …

Member Avatar for javaAddict
0
1K
Member Avatar for muffinhead

I'm writing a program that is supposed to be able to bubble sort data by name and by average. The data I'm given is student last name followed by 3 scores, all put into a text document. I'm to read the names and scores into their respective parallel arrays, and …

Member Avatar for Ancient Dragon
2
121
Member Avatar for willopt_ric

Hi... M working with ListBox Control in aspx.cs. Can AnyOne help me out regarding....How to ensure that atleast one item gets selected in a listbox before button click event gets fired when button is clicked??? Thanks in Advance.....

Member Avatar for Kusno
-1
124
Member Avatar for nccsbim071

Hi I have a windows application that prints a record in a given page size. I looked all over but i could not see how did it set the page size. and now requirement is to print the paper size in legal paper size of 18.5" by 14". How can …

Member Avatar for nccsbim071
0
149
Member Avatar for ticktock

Hey so this is an assignment and what we have to do is: [quote] Design a class that can be used to represent types of food. A type of food is classified as basic or prepared. Basic foods are further classified as Dairy, Meat, Fruit, Vegetable, or Grain. The services …

Member Avatar for ticktock
0
142
Member Avatar for CommDave

Hello! Below is a part of an html document where I need to save myself time in having to manually put in the number in the p class="ArtNumbers" section. Thank you very much, I'm grateful for your time.[code]<td><p><img src="Food2/SF_Food_01.jpg"></p> <p class="ArtNumbers">1</p></td> <td><p><img src="Food2/SF_Food_02.jpg"></p> <p class="ArtNumbers">2</p></td> <td><p><img src="Food2/SF_Food_03.jpg"></p> <p class="ArtNumbers">3</p></td> <td><p><img …

Member Avatar for CommDave
0
140
Member Avatar for novicevbp

Hi I am trying to open a MS Access db via CommonDialog1. All is fine untill I click OPEN after selecting the db I want. What I then get is a dialog for ODBC entitled SELECT DATA SOURCE with two tabs: File Data Source or Machine Data Source. If I …

Member Avatar for vb5prgrmr
0
111
Member Avatar for Agent Cosmic

[CODE=javascript]clock(); function clock(){ var d=new Date(); var hour = d.getHours(); var minute = d.getMinutes(); $('#hr1').css('text-indent', '-'+hour.charAt(hour.length-2)*50+'px'); $('#hr2').css('text-indent', '-'+hour.charAt(hour.length-1)*50+'px'); $('#min1').css('text-indent', '-'+minute.charAt(minute.length-2)*50+'px'); $('#min2').css('text-indent', '-'+minute.charAt(minute.length-1)*50+'px'); clock(); }[/CODE] I need help updating my jQuery clock. setInterval and looping the function doesn't seem to work. The variables are updating well but the css properties are …

Member Avatar for Agent Cosmic
0
167
Member Avatar for Duncans Ghola

These function calls are not compiling for some reason, I receive the following error message when I attempt to compile. [QUOTE]hw11.cpp: In function âint main()â: hw11.cpp:70: error: expected primary-expression before â]â token hw11.cpp:71: error: expected primary-expression before â]â token hw11.cpp:71: error: expected primary-expression before â]â token hw11.cpp:72: error: expected primary-expression …

Member Avatar for Duncans Ghola
0
214
Member Avatar for gangster88

how could i double a number when clicked on in the graphics window?... this is for graphics.py and a line separating the two sides in the graphics window and on each click on either side it must go up by 2 until 12? i can only think of using a …

Member Avatar for jaison2
0
155
Member Avatar for R3Slick

I got a search.php file and a search_results.php file like in my previous thread...the user can select from a dropDown menu what they want to search EmployeeID/EmployeeName/Manager/Department/Team then a text box where they can type in the ID, full name (with spaces) ,Department..ect I got the search for ID, Department, …

Member Avatar for R3Slick
0
147
Member Avatar for PDB1982

I am trying to add a row of int's that are located in separate arrays within my code. I am trying to get these grades to add and then turn it into an avg. My output is crazy though, and I can't figure out why....any ideas? this is the information …

Member Avatar for jonsca
0
171
Member Avatar for PinoyDev

Hi guys.!! Good day.! I just want to know on how to execute an event or function call after the resize event of the Form had been triggered!.. Thank you for giving time on this post.!

Member Avatar for PinoyDev
0
203
Member Avatar for josey_matt

Hi, can anyone plz check my code to see why in the prinCLASSdata function the int A, int B ... doesn't have a value. even though it is right in the updateFrequencies function. [CODE]#include<iostream> #include<fstream> #include<string> using namespace std; void read_data(int size,string name[],int test1[],int test2[],int test3[],int test4[],int test5[]); void calculateAverage(int …

Member Avatar for josey_matt
0
127
Member Avatar for redrum237

hi this program starts off with random letters, then using a genetic algorithm eventually forms the "hello world!" basically i need this code to be able to input a word of the users choice, everytime i try something i get an error of some sort thanks [CODE]#pragma warning(disable:4786) // disable …

Member Avatar for programmersbook
0
408
Member Avatar for brando|away

im writing a win32 dll and i need a procedure in this format (C++): [code] int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) [/code] so how can i do this? why won't this work (fasm): [code] section '.data' data readable msg db "Text",0 section …

Member Avatar for brando|away
0
158
Member Avatar for hallinan

Hi I have a project where when you input text into a textarea if a certain word is put in I need to change this word I'm having real trouble with this Here Is what I have so far but it will not reconize some of the words [CODE]/* import …

Member Avatar for hallinan
0
91
Member Avatar for Jiwe

Can anyone tell me how or help me to get a Window's Title and save it to a TXT file? I tried couple of things with the GetWindowText() but only manage to get some numbers.

Member Avatar for William Hemsworth
0
278
Member Avatar for Leandro-AL

Hello! I am trying to create some sort of a crawler. I was using file_get_contents() to get the pages until i stumbled on this one site, where that didn't work: [CODE=php]$page = 'http://www.site.com/page.php'; $content = file_get_contents($page); echo htmlspecialchars($content);[/CODE] This returned a completely blank page. After looking it up, it appears …

Member Avatar for kireol
0
2K
Member Avatar for Tex09

The contents of the array are safe within the function, however, upon returning to main the data becomes garbled. section of main: [code=c++] unsigned short tcp_port = atoi("8080"); const char* workDir = "WhatInthe?"; // Parse command line arguments if ( parseCmdArg( tcp_port, workDir, argc, argv) == 1) return 1; cout …

Member Avatar for Tex09
0
203
Member Avatar for NitaB

Hey guys! I guess my other post wasn't so clear...probably because I wasn't sure what exactly I was trying to do. Anyway, right now I am having problems reading my input file into my 20x20 2D array. I mean, it compiles fine. But, I have a print function just to …

Member Avatar for NitaB
0
174
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Member Avatar for amrith92
0
146
Member Avatar for lewashby

I have to prgrams and thus, two question to ask. In the following program how does the line [COLOR="Red"]status = staticmethod(status)[/COLOR] do anything? My python programming book somehow connects it to the line [COLOR="Red"]Critter.total +=[/COLOR] 1 but I don't see how? Please explain. [CODE]# Classy Critter # Demonstrates class attributes …

Member Avatar for vegaseat
0
194
Member Avatar for juniper2009

Dear All I am trying to create a list of characters already given as below. When I compile it it gives me following errors. In function `int main()': 17: error: `islowerCase' undeclared (first use this function) 17: error: (Each undeclared identifier is reported only once for each function it appears …

Member Avatar for amrith92
0
145
Member Avatar for Moonrise_state

Hi, In a terminal program I'm writing values are inputted and stored in a pair of arrays. At one point in the program I need to print them back out. My problem is that if I input 1.10, Java gives me 1.1. I really need it to print the zero …

Member Avatar for Moonrise_state
0
90
Member Avatar for pankaj.garg

i have a VB6 application using DAO and other reference libraries...so i used Package & Deployment wizard, so that it works on other machines as well...now my application size has increased from "79 KB" (my earlier exe + DB Files) to whooping "30 MB" (entire package). Please guide me how …

Member Avatar for pankaj.garg
0
155
Member Avatar for ffs82defxp

i recently found that variables set in a function cannot be used in another function. so to make variables 'universal' i have to make them global variables? and you do that buy stating them global, like this? [CODE]global [VARIABLE NAME]=[VALUE][/CODE] i have a feeling there is more to it.

Member Avatar for vegaseat
0
381
Member Avatar for samsons17

HI.... I'm doing this question... [B]Question Using a non-void function with parameters, write a complete C++ program that prompts the user for the Cartesian coordinates of two points (x1, y1) and (x2, y2) and displays the distance between them computed using the formula: distance = sqrt( (x1-x2)^2) + ((y1-y2)^2)... [/B] …

Member Avatar for hajiakhundov
0
244
Member Avatar for ffs82defxp

is there a command or fuction in python that deals with email? like: [CODE]email(ibmceo@ibm.com, 'Hello, my name is Bill. How are you doing at IBM?', email.cc(),attach("C:\123321.txt"))[/CODE] :D

Member Avatar for vegaseat
0
86
Member Avatar for mahela007

How do kernels work on different systems when hardware can be so different? For example, how would the kernel work when the graphics card of a PC is changed?

Member Avatar for mahela007
0
85
Member Avatar for panagos

Hello, i have to do a project that presents a form with 3 text fields like this [img]http://i47.tinypic.com/1jsw44.jpg[/img] type 2 numbers and then the symbol(+,/,*,-) and do the appropriate action. I am using [B][U]Tomcat 6.0.[/U][/B] I've done so far: [B][U]#[COLOR="Red"]simple.html[/COLOR][/U][/B] [CODE]<html> <body> <form method="post" action="simple.jsp"> Number_1<br> <input type="text" name="value1"><p> Number_2<br> …

Member Avatar for panagos
0
136
Member Avatar for gispe

Hi!! im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload …

0
111
Member Avatar for ausrasul

Hi, I've wrote a C++ program on windows (client-server) using gcc with following commands: [code] SOCKET(...) bind(..) select(..) recv(..) send(..) close(..) [/code] 1- If I want to convert the application to use SSL3, what should I change? I need a general overview to get me started. 2- If I want …

Member Avatar for programmersbook
0
261
Member Avatar for NicholasE

Dear members, I need to write a small loop to generate the following: 0 0 0 0 .... 0 1 1 1 .... 1 2 2 .... 2 3 .... 3 4 : 299 I think it needs a double loop but since i am still beginner in python i …

Member Avatar for NicholasE
0
111
Member Avatar for fazeleh
Member Avatar for DdoubleD
0
104
Member Avatar for R3Slick

Ok so I have been working on this all day but cant get it. I want to add an Employee ID to an Employee Table....I got this much...But first I need to check if that ID exists already. How can I do this, here is my code: [CODE]<?php session_start(); require_once …

Member Avatar for venkat0904
0
159
Member Avatar for ko ko

My EOT font doesn't work in PHP. It only work in HTML. Can anyone help me? Thanks.

Member Avatar for ko ko
0
210

The End.