199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rwagnes

I am writing a short program in c on a linux platform which takes an argument from the command line. My only problem is retrieving that argument. It is an integer. Here's what is currently in my code: int seconds = *argv[0]; Thanks :cheesy: EDIT: Here is the rest of …

Member Avatar for rwagnes
0
169
Member Avatar for ericelysia

I am trying to read file input into an array so I can tally up the number of times each letter appears (including the apostrophe). I am not sure what I am doing wrong, but my file data is not getting assigned to the array outside the function. [code] #include<iostream> …

Member Avatar for vijayan121
0
138
Member Avatar for ultra vires

Is there a way to store multiple enteries in a same field (Like adding delim's..etc , which would be considered while we are firing queries at them) Ex: i have a field named subjects.. is is supposed to have multiple entries in the same field (English , maths ,etc) Is …

Member Avatar for ultra vires
0
159
Member Avatar for eldoc

Anyone tell me about patServer please. Does anyone know where I can find instructions on how to use patServer - spent ages on the net trying to find a 'how to'. Specifically, where to put each of the files in one of their examples (say, tictactoe) and whether I need …

Member Avatar for eldoc
0
96
Member Avatar for KimJack

Hi all, I am hoping that you could help me with this. I am working with assembly language 8086. I am trying to put integers into an array one at a time after a prompt. Something like this: Please input an integer: 6 Please input an integer: 1 Please input …

Member Avatar for KimJack
0
991
Member Avatar for dabbakal

Hello, am a new member and this is my first posting. Having benefited from lot of posting i decided to join. But currently am trying to solve an exercise and it is proven difficult for me. I have written a program in c++ in linked list but am facing two …

Member Avatar for John A
0
936
Member Avatar for laddu

Is it possible to have a hash as a data member of a perl object? If so,what is the syntax?? And also how to assign values to this hash??

Member Avatar for laddu
0
220
Member Avatar for mike4

Can someone please tell me the differences between computer science and computer engineering, areas which one is more advantageous than the other??

Member Avatar for joshuatree
0
147
Member Avatar for mrjoli021

I have a function that returns an int. How can I call it from the main function.

Member Avatar for mrjoli021
0
89
Member Avatar for jeffphotos

This message is for "cscgal," the Queen- Please know that in addition to any monetary payment for the code I am looking for I am very happy to make payment by the creations I make which are available to view on my website: <snipped url> Thank you, Jeff

Member Avatar for jeffphotos
0
247
Member Avatar for DDoSAttack

Hello, I am fairly new to C# so forgive me if this is a simple question but I cannot seem to find anything on this subject (I am proabably not searching for the correct thing) How would you go about setting form control properties such as a succession of many …

Member Avatar for DDoSAttack
0
134
Member Avatar for grunge man

um something i have been wondering for a long time is. how do u make it so the user inputs a word and the program identifies the word as a number so like if someone typed the word frog and it reconized it as the number 5.

Member Avatar for grunge man
0
126
Member Avatar for grunge man

um latly i have ben seeing stuff like bla_bla_bla in tutorials and stuff and im just trying to figure out what this "_" character is supost to mean could any one help me?

Member Avatar for grunge man
0
123
Member Avatar for iqbal

i am just start Computer grahics. that is my first program please help me [code=c] #include <GL/glut.h> void DrawPixels(); void OurPixelsDrawingFunction(); void SetView(); void SetView(int w, int h) { glViewport(0,0,w,h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glMatrixMode (GL_MODELVIEW); glLoadIdentity(); } void DrawPixels() { glClearColor(1.0,1.0,1.0,0); glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); gluOrtho2D (0.0,600.0,0.0,600.0); OurPixelsDrawingFunction(); void OurPixelsDrawingFuntion() { glColor3f(0,1,0); /*Set …

Member Avatar for John A
0
122
Member Avatar for rugae

Ok, I new to this and haven't been taught exception handling yet but I would like my program to run without crashing when someone mashes the keyboard. I have declared an int x, and I don't want my program to crash when user inputs an char or more than 10 …

Member Avatar for John A
0
143
Member Avatar for aPPmaSTer

Hey everyone! I've been trying for a couple of days now to make a function and it's driving me crazy. I need a function that takes a set of numbers in an array, for example: int array[]={4,3,5,7} and produce another array with all possible combinations of those numbers, or just …

Member Avatar for aPPmaSTer
0
110
Member Avatar for hunkychop

i am trying to export the results from a form into the script of another php in form of variables : ex. form proccess script (globalvar.php) [quote] $dbtype = $_POST['dbtype']; $dbhost = $_POST['dbhost']; $dbname = $_POST['dbname']; $dbpass = $_POST['dbpass']; $dbport = $_POST['dbport']; $dbtable = $_POST['dbtable'];[/quote] new php (varheader.php) [quote] $dbtype …

Member Avatar for hunkychop
0
110
Member Avatar for virus.exe

Hi, this is not a HUGE problem but I was jw why at the end off all my codes I have to type, system("pause");. When I even do the Hello World! program thing the black screen just flashes. I was jw why no one elses codes have this. Its not …

Member Avatar for WaltP
0
2K
Member Avatar for JadedTortoise

[B]Question:[/B]I ran into a point where it would be very helpful to send a function a portion of an array, instead of the entire thing. Now i can think of a couple work arounds like sending the whole array and a begin number, and range number, then computing off of …

Member Avatar for WaltP
0
186
Member Avatar for Cerberus

Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks.

Member Avatar for peter_budo
0
171
Member Avatar for XpatienceX

Algorithm Verification X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else if (70 <= X and X …

Member Avatar for joshuatree
0
80
Member Avatar for Slavrix

hey im trying to make a simple program to calculate backpay and pay rises for my dads business, ive worked out a pseudocode for it, but am having trouble implementing it. BEGIN Salary Increase numberOfBackpayMonths = 5 PRINT “Congratulations! You had a 6.5% pay rise retroactve for five months.” PRINT …

Member Avatar for Slavrix
0
107
Member Avatar for Sukanto

I am new to JNDI, JTA, javax.sql though I am familiar with java.sql I want to access a database (a Derby database) using JNDI lookup and UserTransaction (as I want to learn about Distributed DB Transactions). I am using [b]Sun Java Application Server(SJAS) 8.2[/b] Database: [b]Derby[/b] Directory Services of : …

Member Avatar for Sukanto
0
155
Member Avatar for semmem1

I am trying to return an array of integers from a method into an array in my main. I know that you cannot pass an array in C, but you can pass a pointer to the array. My problem is though that every time I pass the pointer, I seem …

Member Avatar for semmem1
0
94
Member Avatar for ultra vires

There is a strange thing going on with my copy of Visual Studio.. the class for ADO isnt there .. what i mean is that i cant use System.Data.ADO it simply isnt there ..what do i need to do get ADO access for my programs (based on database connectivity)

Member Avatar for ultra vires
0
83
Member Avatar for mohaydee

Hi, everybody, I'm new to PHP and I'm setting up a web page in which I want to include a subscribing box for the visitor to send me his email. I've found this code on the internet and adapted to my neccessity but I want to know if it's okay …

Member Avatar for UrbanSky
0
101
Member Avatar for Ved_TheOne

hi, i want to write a code, which helps me to move up or move down the elements inside the list box at the click of command button i have made use of 2 listbox's, one list box if filled with all possibles images, then at runtime user adds or …

Member Avatar for PVBert
0
628
Member Avatar for tomhughes

Hey, I've just uploaded some stuff to server and it works fine but theres a big error message through the screen saying "undefined variable seacrh at line 15" Code: [php]if(isset($_GET['search'])) if(!isset($cmd)) { $search = $_GET['search']; } $keywords = explode(" ", $search); <--- line 15 [/php] Also is there any way …

Member Avatar for digital-ether
0
152
Member Avatar for nnobakht

hey guys im supposed to write a simple calculator in java. Not in applet. Stack class has already been given and i was supposed to tokenize the input, have a function convert to take it from infix to postfix notation and eval to evaluate it. i have written the code …

Member Avatar for iamthwee
0
417
Member Avatar for hunkychop

ive got a [B]Parse error[/B]: syntax error, unexpected T_VARIABLE on this line: [code]$dboutput = "//database vars \n" "$dbtype = '".$dbtype."'; \n" "$dbhost = '".$dbhost."'; \n""$dbtype = '".$dbtype."'; \n""$dbname = '".$dbname."'; \n""$dbport = '".$dbport."'; \n""\n" "$database = array($dbtype, $dbhost, $dbname, $dbpass, $dbport);";[/code] any idea of whats wrong with it?

Member Avatar for digital-ether
0
108
Member Avatar for SoLost

Ok. here's the problem. I bought a game site script thinking that I would just be able to put it directly onto my website.. haha.. I have no experience in building websites and am completely lost. It's in PHP and what I've done so far is created a mysql acct …

Member Avatar for SoLost
0
121
Member Avatar for Gumster

Hi all, im gumster new to DaniWeb, been programming vb for numerous years moving to python anyway, Im trying to create a small authentication module for a program im making where it asks for the username and password, i was just wondering how i go about masking the password so …

Member Avatar for ghostdog74
0
3K
Member Avatar for grunge man

i always hear about arrays and it makes sence to me but whats a tipical use for them may i pleas see an example because i dont understand why they eaven exisit

Member Avatar for John A
0
153
Member Avatar for sam1

hi, it is giving me headache to write data from a php file to mysql( i can read from the table but cant write) here is my connect.php which connects to mysql: [CODE]<?php $mysql_host = "localhost"; $mysql_user = "sam"; $mysql_pass = "123456"; $mysql_data = "website"; $mysql_table = "shoutbox"; mysql_connect($mysql_host,$mysql_user,$mysql_pass) or …

Member Avatar for niceboy
0
283
Member Avatar for IwalkAlone

Q.Write a function to accept a main string, one search string and one replace string. Replace the first occurence of search string in main string by replace string{assume the length of search and replace string is same). Solution I tried [CODE] #include<stdio.h> #include<conio.h> void main() { char mai[80],search[40],replace[40]; int i,j,k,l; …

Member Avatar for John A
0
127
Member Avatar for shamalex

Hi, I am having an SAS Learning Ed. But it is not running in my PC. My PC has following configuration: RAM-512 MB Hard Disk - 160 GB Processor-Intel P 4 3.06 Ghz Mother Board Intel Original D 865 G The SAS is not running in my PC...I have installed …

Member Avatar for EddyJawed
0
116
Member Avatar for Colin Mac

I used what's below to delete a directory. It only deletes the directory if it's empty. How could I delete a directory and it's contents? [code] #include <unistd.h> int main() { rmdir("C:\\haha"); return 0; } [/code]

Member Avatar for Colin Mac
0
100
Member Avatar for aot

So I have to enter a lot of text for display by Tkinter, and I've been rather miffed that I can't seem to find a way to get Eclipse (PyDev) to do any kind of auto-wrapping. Wrapping the lines myself with [inlinecode]"string1" + \ "string2"[/inlinecode] is, of course, beyond annoying. …

Member Avatar for jrcagle
0
68
Member Avatar for Nholdamek

I've been building this program to interface with the Swis ephemeris library. It's working beautifully, except for one thing. OK, I need to be able to specify it to retrieve information about multiple planets, such as longitude, speed, etc. So I have a function that parses the command line parameter …

Member Avatar for Nholdamek
0
292
Member Avatar for k_en

i can't see where is the Invalid character with the SQL statement below. i can't see where i miss any character or i added extra characters. mySQL = "UPDATE table SET col1 = '"_& rA & "', col2 = " & rB & ", col3 = " & rC & …

Member Avatar for Mabolo
0
55
Member Avatar for tayster

this is about making a loop for powers stripe3 is the variable how do u do stripe3*10 stripe3 times for example if stripe3 = 5 then my question is how do u do 5*10 5 times because there isnt an opperation in c++ for exponents so i was thinking of …

Member Avatar for tayster
0
150
Member Avatar for JamesDT

Ok, so here's the problem: I have a database with tables made with Microsoft Access. I know how to connect to this databse, and retrieve information in the tables, and update the information in the tables. I was hoping someone could help me with the code for inserting new tables, …

Member Avatar for molze
0
105
Member Avatar for bigben09

What do I need to do in order to get my program to print out two decimal places? [CODE] #include "stdafx.h" #include <iostream> #include <ctype.h> using namespace std; int main() { char movie[50]; int adult_ticket_price, child_ticket_price; int adult_ticket_sold, child_ticket_sold; int percentage_of_gross_amount_donated; cout <<"Enter The Movie Name: "; cin >> movie; …

Member Avatar for tayster
0
251
Member Avatar for jk1998

In my JApplet, I am able to change the background color of the panel but not the currentSurface which is an instance of PaintSurface extends JComponent. Could someone please help me out? Many thanks [code] import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; public class Tanks extends JApplet …

Member Avatar for jk1998
0
179
Member Avatar for muhaa

Hi all i was wondering if any one could help me i have a program i made using wininet in c c++ and my program is not seeing if there is a connections before completing with the execution ive tried to get it sorted but cant seam to figure it …

Member Avatar for muhaa
0
90
Member Avatar for brian.p

[code] ; Description: Program to input a character and then output it to the screen ; Registers used: ax, dx .model small .stack 100h .data .code mov ah, 02h ; DOS function call 2, character output mov dl, 41h ; the character 041h (i.e.'A') mov cx, 26 ; start the …

Member Avatar for Purple Avenger
0
9K
Member Avatar for stixoffire

Ok here it is in this forum, I am looking for how to do Info Tags - NOT a popup as I do not want to use the javascript Window.Open- I want something like the smart tags, but like the nice info windows that appear here in the DaniWeb Forums.. …

Member Avatar for stixoffire
0
106
Member Avatar for jivosan

Sorry for the nubbish question , but I'm wondering which function will do the trick-read a char from keyboard without need to press "Enter"???

Member Avatar for Salem
0
166
Member Avatar for Derice

const char * strstr ( const char * str1, const char * str2 ); char * strstr ( char * str1, const char * str2 ); Locate substring Returns a pointer to the first occurrence of str2 in str1, or a null pointer if there str2 is not part of …

Member Avatar for John A
0
142
Member Avatar for bubbliciousbar

Hi, I'm creating a membership style website and I have set the session timeout to 10 minutes (for now). Ho do I redirect the user to a certain page (automatically) if the session has timeded out ? For example... For some online banking if you login and leave the computer …

Member Avatar for bubbliciousbar
0
164

The End.