199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ashblynn02

I am trying to write a code in LC-3 for finding the minimum and maximum values entered. So far I have completed what is below but am missing some major parts and I can't figure out what to do. ---- the lines like this is where I know something is …

Member Avatar for Duoas
0
2K
Member Avatar for cyndi.

Can anyone give me some help coz i need to make a program that accepts inputted decimal number and converts it to Binary, Hexadecimal, Octal. I should use looping statement, it should be function oriented, and uses switch case. This will be the sample output: ==================================================== Input decimal number : …

Member Avatar for WaltP
0
128
Member Avatar for thejunkie

Hi, I'm terribly new at java, i created a program for a poster availability system and there are 8 errors that I have no idea how to resolve. The program is meant only to run at the command prompt. The errors are: C:\Project\Enrol.java:46: cannot find symbol symbol : method getID() …

Member Avatar for parthiban
0
175
Member Avatar for nicz888

if i have 71, i need to display it like 17. backward if i have 113 i need to display it like 311. first number and last number are swiched i know i need to used a swap function but how do i used it? how do i extract each …

Member Avatar for WaltP
0
315
Member Avatar for ukankissthis

Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the …

Member Avatar for parthiban
0
251
Member Avatar for amylaney

• Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of …

Member Avatar for ukankissthis
0
112
Member Avatar for nikolaos

i have the following struct [code] typedef char * typos_stoixeiou; typedef int metritis; typedef struct korifi *kdiktis ; struct korifi { typos_stoixeiou dedomena; metritis counter; int kleidi; int arithmospaidiwn ; korifi *a[100]; }; [/code] if i try this [code] for(int s=0;s<size;s++) { root->a[s] = (kdiktis)malloc(sizeof(struct korifi)); root->a[s] = NULL; }[/code] …

Member Avatar for Duoas
0
163
Member Avatar for sopel39

why doesn't /usr/bin/time command return maximum resident set size (instead it returns always 0) and how to measure it then? Thx

Member Avatar for sopel39
0
80
Member Avatar for jacknight

I'm wondering what steps I have to take to make progress in my programming skills. I am just starting my first semester as a computer engineer, and I picked up a lot of the syntax relatively quickly but I still have trouble solving a lot of the problems we get. …

Member Avatar for Ancient Dragon
0
99
Member Avatar for andrewkl

Hi, I'm trying to retrieve data (CLOB, string, integer) from a stored function. My example code looks like: $dbh = DBI->connect(....) or die "can't connect"; $stmt = 'BEGIN :cursor := foo; END;'; $sth = $dbh->prepare ($stmt); $sth->bind_param_inout(":cursor", \$refCursor, 0, { ora_type => ORA_RSET } ); $sth->execute(); while ( my ($clob, …

Member Avatar for KevinADC
0
183
Member Avatar for JJarvis

Well, hi, I wanted to make a program, which turns normal words into a Caesar shift. So... HELLO BECOMES; JGNNW That is with a shift of two. I did not want to include IF statements in this, as that is 'lazy programming' I have made a program which will convert …

Member Avatar for Duoas
0
946
Member Avatar for M_K_Higa

Greetings, I've posted this question in other news groups (msdn and a few others) without any response.:sad: I hope I don't get into any trouble for posting this question here, but I reach out for your help.:confused: I have an excel file stored in a data base table as an …

Member Avatar for M_K_Higa
0
988
Member Avatar for Ratte

I need to write wrapper functions for fork and signal functions. These functions will handle errors by fork() and signal() and exit, if an error occurs. The problem is I am not sure exactly what to check for on either function. Here is some sample code for both of them. …

Member Avatar for Ratte
0
464
Member Avatar for amishosh

Hi! Up until today I've been writing C with Borland C dos version. Only g-d knows why the school I go to teaches us C on that. I want to start using MS's Visual Studio and I'm totally lost. It's a whole new enviornment of work. All their tutorials and …

Member Avatar for iamthwee
0
182
Member Avatar for H a R o O n

Following is a C++ client(Network Programming) code, I need to translate it to TCL, if anybody can help me, I shall be thankfull ... [code=cplusplus] //<CLIENT.CPP> #include <iostream> #include <conio.h> #include <string> #include <winsock2.h> #include <fstream> using namespace std; void main() { string ip = "127.0.0.1"; int port = 6789; …

Member Avatar for Duoas
0
506
Member Avatar for schismaticus

Hoping someone can shed some light on this one, using MSSQL 2000, I have a query like this; Select T.TransactionRecordClass, T.ClassDetail from [remoteserver].otherdb.dbo.Data T where T.TransactionRecordClass like '10000002%' which will return around 10000 records in under 1 second. My issue is that I need to make this part of a …

Member Avatar for schismaticus
0
103
Member Avatar for shuey79

I have a Generic List that I populated in one class, I want to return this List to the main form. Is this possible? In other words I want to pass a Generic List from one class to another, how would I do this?

Member Avatar for iamthwee
0
64
Member Avatar for gerronk

Hello all, My assignment is to write a quadratic equation solver. I have written the function, and it compiles well. However that is not the issue. The requirements are that it follows a command line interface specification as follows: <program name> -r <quadratic equation> In other words, the user is …

Member Avatar for Lerner
0
159
Member Avatar for Ratte

I am writing a server function and an error message is defined as: [code] #define UNKNOWN "Unknown" [/code] I have a function: [code] void search(int sockfd) { FILE *file; char arg1[MAXLINE], arg2[MAXLINE], title[MAXLINE], line[MAXLINE]; file = Fopen (PATH, "r"); while (true) { if (Readline(sockfd, title, MAXLINE) == 0) return; Fgets …

Member Avatar for iamthwee
0
148
Member Avatar for dasani

I have to print out the numbers -2.3 to 2.9 in increments of 0.4, and then add the poss and neg number EX: -2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9 Sum of negative values: -7.8 Sum of positive values: 12 i have gotten …

Member Avatar for Duoas
0
1K
Member Avatar for toxic

hello. i'm new here and new to C programming so would appreciate any help with a problem i have. how can i copy the contents of a command line argument e.g. argv[1] to a string declared within main() e.g. filename[30] cheers..... PS this isn'y my homework:lol:

Member Avatar for Duoas
0
17K
Member Avatar for CaliVagabond

I've been configuring PHP with MySQL and ran into a few issues. I uncommented the line to include mysqli.dll and set extension_dir = "./ext". It still isn't working. Not sure if I'm missing anything. Got any clues?!

Member Avatar for CaliVagabond
0
78
Member Avatar for helixkod

What i need to do is convert the first letter of ever word into a caps letter. I know that in ASCII the lower case letters are between 97 and 122 and all i need to do it -32 to get the caps version. Now my problem is how do …

Member Avatar for vijayan121
0
197
Member Avatar for kuoz

Hi, I am very new to Python, I know how to write a basic program, but i know nothing about drawing graphs. I need to write a program to test a random number generator by putting dots on a coordinate graph. Can someone tell me how to make a coordinate …

Member Avatar for vegaseat
0
83
Member Avatar for aus_fas1

Hi, I have the following structure to read the file data with fixed format of my binary file. Now I want that every time my ReadFromFile function is called with 'counter' variable it should 1. return me frame specified in the 'counter'. 2. The file needs to be closed only …

Member Avatar for Salem
0
149
Member Avatar for Chris147

Hi All. I've got a small App (VB.Net) that adds Files and Folders to a List and then uses a Do.. ..While Loop to copy each item in the list to a new Directory (not unlike a backup program). I thought it would be good to add a ProgressBar to …

Member Avatar for Triss
0
95
Member Avatar for hbmarar

Hi, I got a web site with lots of french accents. I am not able to get the accents proper even after doing all the functions said in php.net. I tried even user documented ones... utf_decode also do not work:( How to solve this issue.Request pointers Thanks.

Member Avatar for fatihpiristine
0
292
Member Avatar for nitro

Can someone plz give me the C++ code for the following: (1) linear probing (2) separate chaining (3) quadratic probing (4) double hashing I know the theory behind it but i dont seem to be able to put it into code! plz help me P/S: im not asking you to …

Member Avatar for Ptolemy
0
103
Member Avatar for ranadheer

hi all, sorry for posting the same question,i have to this because my last post was really a mess. now i will try explain my problem in concise i have variable [CODE]my %HeaderHash=();[/CODE] and i have passed values to the HeaderHash successfully but while i try to print the HeaderHash …

Member Avatar for masijade
0
122
Member Avatar for phylon

Hello I am having no problem while returning 1 dimensinal array But am having trouble with 3 dimenional array No problem with this code [CODE]float Mat[][][]; float Mat[]; float *funct1(void) { return Mat; } void funct2() { float *Mat; Mat=funct1(); } [/CODE] But this doesnt work [CODE] float Mat[][][]; float …

Member Avatar for mank
0
102
Member Avatar for vidyahajare

hi folks, i want some help with dlls i want to create dll which will take image file path as input string do some processing, and five different strings as output. how to use it. can anyone give sample code thanks

Member Avatar for debasisdas
0
73
Member Avatar for kevin01

I would like to make all my released docs and articles easy to access on an internal website that I want to create. I have important knowledge in web desk but a beginner in coding; so I need a PHP Free template which might include tools like: search tool, latest …

Member Avatar for Njegos
0
82
Member Avatar for fairchild

Hi there, My database contains two tables namely [B]Products[/B] and [B]Stocks[/B]. Product table consists of [B]ProductName(VARCHAR[100]), PackingStyles(VARCHAR[2000]) and Grades(VARCHAR[2000])[/B]. Primary Key is the combination of these three fields. The values of PackingStyles and Grades are entered using a listbox and so they are stored as comma separated values. The Stocks …

Member Avatar for fairchild
0
77
Member Avatar for Shubhra

Hi All, I am new to jsp. I need to know how to execute certain code on a button click(submit). my form has a text box and a submit button. Onclicking it, it has to execute a SQL query and then forward the control to another jsp page. Where to …

Member Avatar for Shubhra
0
157
Member Avatar for piscean123

Can anybody give me the source code of ANY of the following programs.... me newbie to C.... 1. Write a program which takes 10 numbers as INPUT and tell which one is GREATER. 2. Write a program which takes 10 numbers as INPUT and tell which one is SMALLER.

Member Avatar for piscean123
0
100
Member Avatar for kehar

Hi, There is a memo field called [B]'Particulars'[/B] in my [U]exp[/U] table [U]exp1[/U] database. I have placed the field in my Crystal Report. The length of memo field by default is set to 250 characters. If I extend the field size horizontally in crystal Report my other field will go …

Member Avatar for kehar
0
135
Member Avatar for csy

[B]I try to use trayicon in delphi 5, but I can't hide the main form completely as which contain a MDI child form. Any solution for it? [/B] :(

Member Avatar for csy
0
714
Member Avatar for csy

I am using Delphi 5. I've add a trayicon in application and need to make the trayicon bright or change colour in different status. Anyone can help? Thanks and Thanks.:$

Member Avatar for csy
0
236
Member Avatar for hawisme000

hello anybody know how can i make a search button?? im having a problem on the syntax or coding i need, i mean, for example if i put a word on a textbox(txtUN), then i click on the cmdbutton(cmdSearch) it will retrieve all info about the data that is been …

Member Avatar for hawisme000
0
106
Member Avatar for Duki

[code=c++]#pragma once #include <string> #include <iostream> using namespace std ; class Document { public: Document ( ) ; Document operator= ( const Document & d ) ; void setText ( ) ; string getText ( ) ; protected: string text ; } ; #include "document.h" Document::Document ( ) : text …

Member Avatar for Ancient Dragon
0
124
Member Avatar for mqueene7

Below is the code for my merge sort - It doesn't like my temporary array c and I can't get anything to sort - I get all 0 in my output. [code] void merge(int low,int mid,int high) { int size, p, q, i, r; size = high - low + …

Member Avatar for Duoas
0
121
Member Avatar for rusman

Hello, I have a script I've used on pre-Solaris 10 that works just great. Now on a Sol10 box, it is bailing on this line with this error: syntax error at line 27: `|' unexpected Here's the 'offending' line: [code]creation=`echo $backupid | sed 's/^.*_//'`[/code] I'm a bit confused as to …

Member Avatar for masijade
0
113
Member Avatar for jay7981

i keep getting parse errors on the last line of this how ever i cannot seem to find the mistake .. any help ? Parse error: parse error, unexpected T_STRING in /home/content/mydir/index.php on line 103 (i added the line numbers jsut for the post not actually in code) [code=php] 96 …

Member Avatar for php_daemon
0
81
Member Avatar for fatihpiristine

if you are having problems with encoding pages/characters, try this. <?php $servername='localhost'; $dbusername='myusername'; $dbpassword='mypassword'; $dbname='mydatabase'; connecttodb($servername,$dbname,$dbusername,$dbpassword); function connecttodb($servername,$dbname,$dbuser,$dbpassword) { global $link; $link=mysql_connect ("$servername","$dbuser","$dbpassword"); if(!$link) { die("Could not connect to MySQL"); } mysql_select_db("$dbname",$link) or die ("could not open database"); } ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" /> <meta http-equiv="expires" content="now" /> …

Member Avatar for fatihpiristine
0
211
Member Avatar for mortalex

Hey guys! Right heres the problem, I have made this script that basically displays all the data from a table from MySQL; pricelist. However it only displays the data when i have to manually write in all the database passwords and names and stuff, however when i use the require_once() …

Member Avatar for php_daemon
0
116
Member Avatar for CoolFool

Hello EVeryone... I really need some help with this problem... A certain CS professor gives 100 - point quiz graded on scale 90 - 100:A 80 - 89:B 70- 79: C , 60 - 60:D <60 :F I need to write a program that eccepts an exam score as input …

Member Avatar for woooee
0
166
Member Avatar for chorei

hey all i have a real problem with fibonacci numbers i have calculated max fib(47) with my codes but i have a project that i need to calculate the n'th fib number which is get from the user and print the fib valu to the screen the numbers must be …

Member Avatar for iamthwee
0
252
Member Avatar for bleonard989

I am trying to use fairly simple C++ code to complete this problem: The user will input a number of the Fibonacci series, and through a function called whichfib(), the program will then output the number using long double data type. I have gotten the code to work until the …

Member Avatar for bleonard989
0
114
Member Avatar for speterson

In my Java class, we have to randomly create basketball teams and random scores, then average the scores for each team, and average the scores for each game. I am not sure how to average the score for each game, meaning adding scores vertically in a vector versus adding scores …

Member Avatar for Ezzaral
0
2K
Member Avatar for preetham.saroja

why am i not able to pass two values between pages in first page for submit_btn.click() [COLOR=#0000ff]Dim[/COLOR] url [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR]url = [COLOR=#800000]"Project.aspx?" [/COLOR]url &= [COLOR=#800000]"id="[/COLOR] & id_txt.Text & [COLOR=#800000]"" [/COLOR]url &= [COLOR=#800000]"age="[/COLOR] & age_txt.Text & [COLOR=#800000]"" [/COLOR]Response.Redirect(url) ---------------------------- In second page called Project.aspx: sub page_load() txtid.Text = [COLOR=#800000]"id:"[/COLOR] & …

Member Avatar for preetham.saroja
0
168

The End.