64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for benny2010

When you make sprites does the image file type have to be .png or can it be .jpeg etc.?? cheers for helping me out

Member Avatar for alexchen
0
132
Member Avatar for brundlefly

Hi guys i wonder if someone can help an absolute noob out with some homework. i was given a brief of: ask a user to input up to 3 mobile numbers. for the numbers entered display the list of numbers entered and clearly displays the mobile network each number belongs …

Member Avatar for brundlefly
0
110
Member Avatar for ajst

Hi Guys, I'm basicly reading from a CSV File that im using to store data. Now when I read from the CSV file i want to load the data to fill in the parameters eg. the csv file contains name,address,age,favColor. so when i load the file i want it to …

Member Avatar for jon.kiparsky
0
139
Member Avatar for MasterGberry

I am having an issue using this new operator function that I learned. The program thinks that I am calling the operator=() instead of the operator+() so it is hitting an infinite loop. I marked the areas where there are issues, and i commented some of the newer things that …

Member Avatar for MasterGberry
0
147
Member Avatar for Diamonddrake

I can't seem to remember what it's called, nor can I articulate a concise explanation to even begin searching the net. (I tried) Does anyone know what that list of Icons like my computer/mydocuments ect that appear to the left in windows XP open and save dialog boxes? I know …

Member Avatar for Diamonddrake
0
156
Member Avatar for bretttmczk

the code following this is my project. The getInfo() function will not return the information, that is one problem i have having. also anyone have a suggestion for a search function for this? [ICODE]#include <iostream> #include <string> #include <iomanip> using namespace std; ///////////// //Prototypes ///////////// void menu(int&); void getInfo(string[], int[], …

Member Avatar for bretttmczk
0
235
Member Avatar for aria12

How to write a program that asks the users to enter two integers, obtains the numbers from user, then prints the larger number followed by the words "is larger", if the numbers are equal, print the message "these are equal". use only the single-selection form of the if statement.

Member Avatar for aria12
0
175
Member Avatar for gazza7

Hi I'm testing a form with checkboxes, with the values extracted from mysql database with a query. Everthing works fine with the population from the query. But when submit the form, I only get the first part of the value. I am populating the checkbox values the album names e.g …

Member Avatar for gazza7
0
149
Member Avatar for Basteon

Hi! I'm writing the mergesort algorithm, theoretically everything is fine in it but when the function gets to call itself the program crashes. I belive that I'm doing something worng when I pass the vector<int> as a parameter to the function. [B]procedure mergesort(T[1 .. n]) if n is small then …

Member Avatar for Basteon
0
1K
Member Avatar for vedro-compota

Mates, this is my first piece of C code. I do not know what is wrong. Please, tell me, that's not so I've highlighted the lines that the compiler "doesn't like " - [CODE]#include <stdio.h> #include <alloc.h> #include <stdlib.h> main() { short int n = 0; int k=0,u,i=0; char a=''; …

Member Avatar for vedro-compota
0
102
Member Avatar for sanjcee

Hi. I'm trying to make a grade forecasting program for python 2.7. My problem is that I'm having difficulty trying to correlate the first "grade element" input with the first "grade element percentage" input. Here's what I have so far. ## Grade Forecast ## Chandiramani Grade Forecast [CODE]import random print …

Member Avatar for richieking
0
110
Member Avatar for Joey_Brown

Hello. Im interested in learning something about allocating memory for a 2d array. So I have a function that does this, and it goes something like this : [CODE]short **g2D(short **arr,short row,short col) { short i; arr=malloc(row*sizeof*arr); if(!arr) { printf("\nMemory unavailable"); exit(EXIT_FAILURE); } for(i=MIN;i<row;i++) { arr[i]=malloc(col*sizeof*arr); if(!arr) { printf("\nMemory unavailable"); …

Member Avatar for Trentacle
0
151
Member Avatar for choosenalpha

Greetings All, I'm working on some code to essentially build a CGI page where the user places in there SPNs in the form with spaces(example--->) (967866 4566776). Then it calls the subroutine to run a join command to take the SPNS given by the user, and parse them with commas(example--->(967866, …

Member Avatar for choosenalpha
0
305
Member Avatar for ghosh22

Hi everybody!! I think this is a simplest perl related problem..but still I need your help. Here's my sample input file: [CODE]>blast ATGGGCCTAC ATCCACSTAT[/CODE] Please note that the number of lines could be more than these two, but the Perl script should skip the first line which starts with '>'. …

Member Avatar for ghosh22
0
123
Member Avatar for shadowscape

hey im new to daniweb, i recently wanted to revise a code for a dll but being as i dont really know c++ i turned to the help of daniweb if you would be so kind to assit me correct any problems with this code it would mean alot to …

Member Avatar for shadowscape
0
571
Member Avatar for hauda67

I was wandering if I could get some help in refining my code for the following problem: "Write a java program that declares an array alpha of 50 elements of type double. Initialise the array so that the first 25 elements are equal to the square of the index variable …

Member Avatar for hauda67
0
166
Member Avatar for new SE

hi.. anyone can help me to convert asp.net program to pdf? before this i'm using this code [CODE]private void ExportGridView() { string attachment = "attachment; filename=Contacts.xls"; Response.ClearContent(); Response.AddHeader("content-disposition", attachment); Response.ContentType = "application/ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); GridView1.RenderControl(htw); Response.Write(sw.ToString()); Response.End(); }[/CODE] to convert to excel.. …

Member Avatar for 1seo
0
192
Member Avatar for alexchen

I am trying to get a random number without repeating. [CODE]int r,number; srand(time(NULL)); number=10; r=rand() % number+1;[/CODE]

Member Avatar for ravenous
0
18K
Member Avatar for Dingbats

Hi everyone, I'm writing a program for a teacher and friend of mine. It's a simple math-aid prog aimed at children up to 10yo. I was thinking that it would not only be a good idea that a child couldn't shut down the program without a password (obviously), but how …

Member Avatar for Dingbats
0
1K
Member Avatar for Swiftle

Hello, I have an assignment for a multi thread bubble sort written in Java. It may not sound very hard but we only had 4 hours of introduction and never wrote a single line in Java before getting this. But this isn't the point :P. I have problems with what …

Member Avatar for Swiftle
0
126
Member Avatar for tendaimare

I am trying to carry out a synchronisation of two databases one on the server and the other on a local machine so that even when they are not connected on the networkthe local database can carry on accepting data but when the network is back on the local database …

Member Avatar for kvprajapati
0
206
Member Avatar for cirno

Hello again, codegurus. I need to ask your assistance in converting string to datetype, from 'dd/mm/yyyy' to 'yyyy-mm-dd'. The user could key in either the 'dd/mm/yyyy' format or 'yyyy-mm-dd' format in a textbox. the system would check for both format and convert both to the 'yyyy-mm-dd' date format, to be …

Member Avatar for cirno
0
5K
Member Avatar for alanlee9898

I would like to have two dropdown list search for my posting in my blog. Example: First dropdown list : Select Cuisine Second dropdown list : Select Location Then Search button. I can't figure out the javescripts. Please help. Thank you so much!

Member Avatar for Ruthan7
0
296
Member Avatar for m_wylie85

Hi i have wrote a guessing game program but i am get an error when i play it i can get to 99 guesses then i get array out of bound exception error i think my problem is in the fill array method but i could be wrong. could some …

Member Avatar for m_wylie85
0
172
Member Avatar for dballar1

I am having some trouble verifying the given data for 'user' against what is already in the users.txt file. An example of a line in the text file is... ('Ralph', '1a1dc91c907325c69271ddf0c944bc72') Where 'Ralph' is what I want to compare against the users input for 'user'. Here is my code so …

Member Avatar for TrustyTony
0
332
Member Avatar for sadsdw

Hello friends, I'm looking for an short example to read a text file and get lines splitting in 3 vectors. I don't know how I'll do this ... E.G: 100 NAME1 30 150 NAME2 40 200 NAME3 50 -> vectorId[0] = 100 vectorName[0] = NAME1 vectorAge[0] = 30 Can you …

Member Avatar for sadsdw
0
190
Member Avatar for FAITH2011

[B][COLOR="Red"]Hi all, I am dyslexic person and find it very hard to read and write without assistance, I was wondering if there are any good Videos or computer based book that teach Pyton 3.1.3 for begginers that could be recommended. The reason for this is that I can see the …

Member Avatar for SgtMe
0
329
Member Avatar for LianaN

Hi! I would like to make a JFrame that will play a role of a toolbar. It can be dragged and dropped within a specified area. So, I don't know how to specify the area for dragging and dropping. Could anybody help me? Thanks!

Member Avatar for LianaN
0
100
Member Avatar for David_Omid

Hey guys, sorry if this is a silly question but I have a piece of code which contains something like this: [CODE] private: void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button2_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button3_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button4_Click( Object^ …

Member Avatar for David_Omid
0
152
Member Avatar for alexchen

How can I read a random line from text file. After I get the word I need to count the letters. [CODE]bool word(char *Filename){ ifstream file; file.open(Filename); //add code. return true; }[/CODE]

Member Avatar for alexchen
0
1K
Member Avatar for ll_jesse_ll

Hey guys I was hoping someone could help me here. I had to make a Tetris game using eclipse for my intro to Java programming class. I got it all done, but i would like to play the game without having to run it through eclipse. For example if i …

Member Avatar for ll_jesse_ll
0
122
Member Avatar for moroccanplaya

im new to shell scripting i want a simle script to configure the ip adress and add a default gw this is what i got so far [CODE] #!/bin/bash ifconfig eth0 "ipadress" route add default gw "gw adress" [/CODE] it does not recognise route ? can anyone help?

Member Avatar for moroccanplaya
0
132
Member Avatar for FAITH2011

Hi all, I am new Phython user and started using Python 2.7 just a couple days ago. I have written this code which is working, But when user put in correct code loop is not breaking ?? just wondering if it could be improved and what book would you recommend …

Member Avatar for griswolf
0
216
Member Avatar for m_wylie85

Hi all trying get small program work. I want my program to search for a word within a text file then out put the word with the rest of the fileds with the sentence. so say i input 4 word/numbers from 4 different text boxes. the ouput to the text …

Member Avatar for sergb
0
133
Member Avatar for baldwindc

I'm looking for a starting point on this. Can someone point me in the right direction? I want to allow a user to create a new class object that will just store data. My class is data and my type is "flight" so: [code=java] Data flight1 = new Data("A string", …

Member Avatar for baldwindc
0
358
Member Avatar for r0adawg

Hello, I'm new with perl, I've been able to read and write from file #1 to file #2. file #1 currently is about 60meg of text... what I would like to do is to read up to 2 char from a constant position and then use that data in a …

0
69
Member Avatar for FAITH2011

Hello all, I need a little help with Dictionary statement. My question is it possible to display just one thing for a Dictionary ? I know that Dictionary use Keys and Values so if I have this code. How would I display let say the Dog from Dictionary without printing …

Member Avatar for TrustyTony
0
130
Member Avatar for MUFC4life

i = 1 while i < 10000 and i > 0 and 1 : print " still going ..." i = 2 * i Hi i am new to Python and completley useless at it. Can somebody please explain to me why this code prints "Still going" 14 times. I …

Member Avatar for 15uck
0
135
Member Avatar for hearthand

Basics are: Another area of my program takes in strokes and then uses the recogniser to interpret those strokes into a recognise result. The result of this conversion is saved and is accessible. This is the string part of my question. On another screen I have a panel which takes …

Member Avatar for hearthand
0
203
Member Avatar for neosonic

Hi All, I have a sub and trap the error with: ------------------------------------------ private sub mySub(mydoc as string) On error goto goto handlemyerror kill app.path & "\" & mydoc handlemyerror: msgbox "I cannot kill it" end sub ------------------------------------------ mydoc is word document with 2-3 pages length. It works fine to avoid …

Member Avatar for AndreRet
0
125
Member Avatar for VBNew

Hi, I have 2 text box, Text1 is to display the week no and Text2 is to display start date of the week. Do anyone know what function I should use in VB6? Thanks, Annie

Member Avatar for AndreRet
0
303
Member Avatar for terabyte

I was wondering if there is a global matching flag, considering there is a global replacement flag (/g) I'm using this workaround to make multiple matches in a string [CODE] while(!$stop_var) { if($source =~ /(PATTERN)/i) { push(@matches, $1); $source = $'; } else { $stop_var =1; } } [/CODE] is …

Member Avatar for mitchems
0
169
Member Avatar for Roy1287

Quick question From main thread [CODE]double[] ascore; int i; imax=high.highestScore(ascore[],i); [/CODE] From method highestScore [CODE] public class highestScore { // This method checks which number is higher. public static double highestScore(double[] score,int arraySize) { int index; double maxScore=0; for (index=0; index<arraySize; index++) { if (maxScore < score [index]) maxScore= score[index]; …

Member Avatar for Roy1287
0
132
Member Avatar for nonshatter

Hi all, I'm relatively new to JS and I have an issue which I can't seem to get my head around... I have a perl script which iterates through an array and populates a table with its values. Within the created table I have a link in each row which …

Member Avatar for nonshatter
0
146
Member Avatar for MysticalNomad

I have a PHP page opened directly from a URL with params in it: http://subdomain.domain.com/phppage.php?id=123456 The PHP page is [I]supposed to [/I]execute a very simple SQL statement to retrieve a single data row based on the id variable. The SQL execution is done this way: [CODE] $id = $_REQUEST['id']; $sql …

Member Avatar for MysticalNomad
0
108
Member Avatar for Dante2

Call me a noob, but is there a way to use [B][I][U]just[/U][/I][/B] PHP to create a photo slideshow? Or do you need to use flash? I have code that will display images in a random sequence, which is fine. [CODE=php]<?php $pic = rand(1,15); print "<img src=\"images/$pic.jpg\" height=\"100\" width=\"140\" />"; ?>[/CODE] …

Member Avatar for Dante2
0
193
Member Avatar for tendaimare

can someone help me with why this code is not inserting into the database [CODE] Dim MyConnection As SqlConnection Dim sqlstring As String = "INSERT INTO Workers (FName, LName, FullName) VALUES ('" & Me.txtName.Text & "', '" & Me.txtSurname.Text & "', '" & Me.txtFullName.Text & "')" 'Dim data_base As String …

Member Avatar for tendaimare
0
123
Member Avatar for DAlexNagy

This is a request for some 'best practices' comments from experienced OOP practitioners. I have been in IT from the days of punched cards and have had considerable experience with legacy languages like 370 ASM, SAS, and REXX. For fun, I've taken a college class in C++ and am now …

Member Avatar for DAlexNagy
0
169
Member Avatar for lagspike

A simple physics graph... [code=python]import pylab a_time = range(0,141,10) a_R = [3.0,2.8,2.56,2.36,2.2,2.0,1.86,1.7,1.6,1.43,1.3,1.2,1.1,1.06,0.96] for i in range(0,15): pylab.plot(a_time[i],a_R[i], 'x') pylab.errorbar(a_time[i], a_R[i], 0.5, 0.05) pylab.show() [/code] I'm guessing the [icode]pylab.plot[/icode] line isn't needed, but even with this there is nothing connecting the plots together. I'm pretty sure there wasn't anything extra needed …

Member Avatar for lagspike
0
270
Member Avatar for Dean_Grobler

Helew! I just wana know if someone might have an idea of how I can go about doing this: So attached I have a little example I whiped up. Say you have 3 buttons, button1, button2, button3. What I wana do, is when you click [B]button1[/B], it will magicly turn …

Member Avatar for javaAddict
0
117

The End.