199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?? | |
Can someone please tell me the differences between computer science and computer engineering, areas which one is more advantageous than the other?? | |
I have a function that returns an int. How can I call it from the main function. | |
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 | |
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 … | |
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. | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks. | |
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 … | |
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 … | |
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 : … | |
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 … | |
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) | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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? | |
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 … | |
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 … | |
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 | |
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 … | |
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; … | |
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 … | |
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] | |
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. … | |
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 … | |
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 & … | |
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 … | |
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, … | |
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; … | |
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 … | |
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 … | |
[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 … | |
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.. … | |
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"??? | |
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 … | |
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 … |
The End.