199,114 Archived Topics
Remove Filter ![]() | |
![]() | I am having some trouble with the logic for my constructor. The constructor is supposed to open a object of class Rational. The constructor is also supposed to check to make sure the denominator is not zero, the denominator is not negative, and either reduce the fraction or make it … ![]() |
Hi there, I'm trying to write a simple encryption program that reads normal text from a txt file - encrypts it using a Vigenère Table - then outputs the results to another file. This process should obviously be reversible as well. I have written this for the encryption part of … | |
ok, i need help writing a program that stores data about a basketball player in a structue. I need to create a structure for players name, players number, and by points the player scored. I need to keep an array of 5 of these structures. Which each element is for … | |
I've lost my will and need some guidence, yes this is homework, i'm not going to lie about that. I know I could probably figure out how to get the answer she's wanting, but not with what she's provided as a code template below. I'm guessing that I need to … | |
[U]How can I use php script in xhtml file?[/U] I have short_open_tags = Off in the php.ini and I tried to use <?php ?> or <script language="php"> </script> within xhtml file (I need to use xforms), but my php code is never parsed. Why is that? Thanks for advice. | |
Hello, I'd like to set a custom style for a textctrl that includes custom tab positions. The script below works on xp and displays custom tab positions for the textctrl, as coded. However, the script fails to set custom tab positions on linux (fedora 5), though it does set custom … | |
Anyone wanna take a crack at this? [COLOR=#626262]Display “File Maintenance Script” in the title bar[/COLOR] [COLOR=#626262] [/COLOR] [COLOR=#626262]Clear the screen[/COLOR] [COLOR=#626262] [/COLOR] [COLOR=#626262]Display a menu of options for delete, rename or exit[/COLOR] [COLOR=#626262] [/COLOR] [COLOR=#626262]Using called procedures, either delete all files in H:\scripts, rename all files so that they have … | |
I fond some tutorial that can search one field of the table in a database,. But I would like to search the whole table.. In my table I have people's name by first name, last name, phone number etc... how can I display the whole thing as a result? For … | |
for some reason or another, my AUTO_INCREMENT command won't work in my sql table for the column named 'ID'. i have no idea why. it SHOULD work, but it doesn't. anyway, that's not really much of an issue. however, i have decided to take this opportunity to learn something new … | |
I am trying to get this code working for extra credit, but I unfortunately only have 40 minutes until it is due:rolleyes:. I would like to know how to do this program, whether I turn it in or not. The letter "Y" can be considered a vowel if there is … | |
I have a directory with many subdirectories. Each subdirectory contains a small number of image files (.jpg). I would like to accumulate all these image files in a Tkinter listbox, sort them and be able to select blocks of files and send them to another listbox. Ultimately I would like … | |
i have a project where i am suppose to encrypt or decrypt a message typed in by the user using the ceaser encryption algorithm and printing it back, i need some help in as to how to write the encryption alg, (ill figure the dec out from there), heres the … | |
Hi, I am having a hell of a time trying to figure out a javascript error I keep receiving on my vBulletin Forums. The error is not very specific (to me at least) Check out the screen shot for the whole error. I have been poking around all the templates … | |
Hello every body, Ok here is my problem... I make an HTTP Request to a server and i am being redirected to another page. How can i know to which page am i being redirected? Depending on the Request i am being redirected to another page... I get the HTTP … | |
Hi all............. I want to get the database error cord return by the database, to identify the error message and other messages. I am using postgresql database, they have provided their error cords, but still I don’t have any idea about how to do this, please any one can help … | |
actually I went the wrong way I think, below is the the partial code area and the bold shows what needs tobe, but I know I didnt do it right, can anyone show me an example or where to find help? [code] if (myFields[c_shapeNameField].equals(ShapeName.circle)){ [B][COLOR=red]//ASSIGN a new Circle object to … | |
Hey guys, I was writing code or DLL's (doubly linked lists) and I think I have everything right but it keeps giving me a makefile error. My code is below along with the error log. ANy help would be apprecaited. [CODE] //DLLNode.h #include <iostream> #include <cstdlib> #ifndef DOUBLY_LINKED_LIST #define DOUBLY_LINKED_LIST … | |
This is C. 1. My question is how would I read in an integer securely from stdin. I saw the following snippets: [URL]http://www.daniweb.com/code/snippet441.html[/URL] [URL]http://www.daniweb.com/code/snippet597.html[/URL] Would those functions protect from integer overflows/underflows AND format string attacks? 2. What about strings? Does a simple use of fgets protect from buffer overflows AND … | |
Hi all, What are the statements in a perl script that need attention/change for making the script run in a different OS. ofcourse the perl interpreter path(hashbang line) Say for eg: perl statements (system, exec and backtick ) involves command line commands.So commands will differ for different OS and so … | |
I have been requested to create a file which will act like an XML page (expandable tree-like structure). I have been given the following requirements: 1. End user requires that the page be an xml file. No problem there, I know enough (barely) to do that. 2. Request that, if … | |
I am a programmer but have just recently ventured into the realm of graphics programming using Python; what I have learned so far is fascinating. It is so thrilling to see a coded design appear on the screen in full color. But, I find, making an image appear is one … | |
I am trying to convert and sucessfully run my pettycash program in throughthe eclipse IDE in Java. First Ill show where Im at I am lost afterhere then ill show the petty cash program. I am not sure if I am on the right track and dont understand how to … | |
Is it possible to use files such as GIF files as a value in a Python Dict; that is, is it possible to use GIF files in a Dict and access them directly, rendering them to the screen via Tkinter. I have a group of GIF files I plan to … | |
[code=c] #include<stdio.h> #include <conio.h> void main() { int line,c,n,x; void pasc(int); printf("\n\nInsert, how much line do you want: "); scanf("%d",&line); printf("\n\n\n"); printf("\nPascal's Triangle Is : (press enter)\n"); for(x=line-1;x>=0;x--) printf(" "); printf(" 1\n\n"); for(n=2;n<=line;n++) { for(c=line-n;c>=1;c--) printf(" "); pasc(n); printf("\n"); getche(); } } void pasc(int n) { int r; long fact(int); … | |
Hi, I am building class for my project ,but yhe problem i do not get the proper answer here is the code [System.ComponentModel.DesignerCategoryAttribute("code")] public class Buying : System.Data.DataSet { private ContractDataTable tableContract; private BuyerDataTable tableBuyer; // private SellerDataTable tableSeller; public Buying() { this.InitClass(); // // TODO: Add constructor logic here … | |
< Hi I am to teach VB.6 as a tutore in University from next semester, and I dont know where to start? I know notting about VB.> | |
[U][COLOR=#000000]Question # 1:[/COLOR][/U] [COLOR=#000000]Ask the user to enter two different numbers. Print all the numbers between the two values they enter.[/COLOR] [COLOR=#000000] [/COLOR] [U][COLOR=#000000]Question # 2:[/COLOR][/U] [COLOR=#000000]Allow the user to enter as many as positive numbers as they wish, and enter zero to indicate they have finished. Then display the … | |
Hi, I'm trying to validate a checkbox in the form and I'm not sure which property to use. At the moment, I have a checkbox called "termsandcond" and I'm trying to write a javascript validation script that checks to see if it is ticked or not. [code] function validate(){ var … | |
Hey guys. First of all its nice to see an assemly forum that still has visitors..everything I found on the net are old forums unvisited for about 2-3 years. I started learning win32 assembly ...well..last night :). I do have (some) programming background in Delphi and some c/c++, and also … | |
I'm trying to write a program which locates a text file in "my documents," and reads and displays what is on the file. I'm using the 2005 version of C++ and I might be using the wrong format. Thank you. | |
Please assist with creating a program using arrays and functions for student grades. These are the requirements: To create and execute a C++ program with functions and arrays that will read student information input from an input text file, calculate the test average, program average, course average, and the letter … | |
hello I am new to C++. I understand pointers and references a little and I must be missing something in conf.cpp. Would you help by pointing out my errors for my pointers coding errors related to my problem? Main reason I am asking is because I get a segment fault … ![]() | |
I will be very thankful if someone can help me out....;) | |
i am new student i had a home work but i cant get this done how can i input in the same line a char and two integers the output should be like this : please enter candidate family condition, defect percent, children number, working condition: [B]s 20 0 1[/B] … | |
My txt file is of the format: [B]Date Station Operator Task Action[/B] and a list of values under each heading.. Now how do i write a C code to pull up records tht match a specific value under "TASK"...... say for example, if [B]Task = Vendor Setup,[/B] then the result … | |
Ok, so I'm gonna work on a program, and I want to enable a gui for it. I have a few questions though... Question: Are there any out there that wont need a class structure? (I;ve never gotten them, and I'm working on them right now...) Question: How about easily … | |
hey all! i've got a CMS i'm working on and i have a couple of HTML tables that are populated via php loops communicating with the SQL database. got it? good. at the end of each row in the HTML table there is a checkbox. i need to be able … | |
Hi, I have this application in Graphics that has to print a report on a laser printer. Is there any way to do it.... Thanks | |
Hi all, I would like to know some links that could help me get a hang of using a database instead of the plain old file handling with C. Can somebody help !! Thanks | |
Hello, I’m hoping someone at MS can help me. I’ve created a C# Windows Service project whose service main function instantiates a class library that spawns a new thread to create a new process with which to launch osk.exe (the Windows on-screen keyboard). The purpose for creating this service is … | |
How do i use the function isspace to take sentences read into an array and make multiple spaces only one space between words? Use an if statement? if (isspace([I]aChar[/I]) ) cout << aChar; else ( Not sure what I need here. | |
[COLOR=#008000]:rolleyes: my program is not running right I,m not sure what is wrong with it the output is always true can someone help me[/COLOR] [COLOR=#008000]/// Robert H Ramzy IV[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <stdio.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <stdlib.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <conio.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <string>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <ctype.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] number;[/COLOR] [COLOR=#0000ff]bool[/COLOR][COLOR=#000000] results ;[/COLOR] … | |
Hello, I'm a newbie and have just spent about 4 hours making the attached code work. The only problem is that it works the opposite of how it should. I have an image map and i loop through and place images to the images that i want to showup when … | |
Write a C program with 4 functions in main 1 int intSum(intx, int y) accept 2 ints as parameters adds the 2 # up returns the sum 2. int intdiff(intx, inty) accepts 2 # as param. subtracts them returns with diff. 3 int intProd(intx, int y) accepts 2 # muiltplies … | |
can anybody having touch screen coding. i have to invoke touch screen through vb and fetch and display the corresponding details from database based on user touch. so please help me regarding. thanks in advance | |
Hi, Got another question concerning an array of strings: I did it this way: [code] int main() { const std::string myArray[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; for (size_t i = 0; i < 12; i++) std::cout << myArray[i] << '\n'; std::cout … | |
Hello, I am having a problem showing a popup menu in my wxpython script on fedora 5 (fc5); this problem does not occur on xp. I am using wxPython-2.6.3.2-1.fc5, unicode version. I need to add an item to a popup menu after the user selects a file using wx.FileDialog, and … | |
If I want to exit to Dos in a C program from a Switch statement, how do I do it? Thanks | |
:) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship … | |
pls i hve a source code for a digital alarm clock bt its for pic16c54a and i want to desiogn a digital alarm clock using pic 16f84a so here is my source code, i need an assembly language guru to help me do this pls. below is the source code … |
The End.