132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for csc Mindy

Hi Everyone, I am trying to compile code for a FAT file system implementation. I define my struct as struct DirEntry { uint8_t status PACKED; uint32_t start_block PACKED; uint32_t num_blocks PACKED; uint32_t fsize PACKED; MC_Time created PACKED; MC_Time modified PACKED; uint8_t fname[31] PACKED; uint8_t unused[6] PACKED; }; typedef struct DirEntry …

Software Development c
Member Avatar for csc Mindy
0
98
Member Avatar for raptoro104

I'm reading Larry Ullman's C++ Programming:Visual Quickstart Guide. He says to use the command std::cout.setf(std::ios::fixed)) (with others) to set the number of digits after a decimal. But all of his code uses std::cout::setf(std::ios_base::fixed). What is the difference?

Software Development c++ ios
Member Avatar for raptoro104
0
119
Member Avatar for sunny123

ive created this currency conversion program which converts the currency then adds commission, but its got a error saying undefined symbol true in function main can someone help me ive only got the one error with it. [code]#include <iostream.h> int choice; double pounds; double USdollar; double Euro; double interest; int …

Software Development c++
Member Avatar for John A
0
95
Member Avatar for resnid

Alright, here's my code... [code] import java.util.Scanner; public class Letter { public static void main(String[] args) { //needed for scanner class Scanner kb = new Scanner(System.in); int charCount = 0; // get users string System.out.println("Please enter a string: "); String userString = kb.nextLine(); // get users character System.out.println("Please enter a …

Software Development java
Member Avatar for peter_budo
0
475
Member Avatar for derbys

Hey im abit of a novice at all of this programming, but im trying to give it ago anyway. What im wanting to do is write a program that takes an array of words which wil then return ana array which alphabetically come after a certain word, in this case …

Software Development java
Member Avatar for srhalfwaythere
0
121
Member Avatar for terabite

wheres the best place for me to start learning java?:confused:

Software Development java
Member Avatar for srhalfwaythere
0
84
Member Avatar for Indymaestro

Hello to all! I've been parusing this site for awhile now, must say that its very helpful for tips and learning about coding in general. Anyways, here is my first foray into posting and of course, it begins with a question. I have to emulate a blood bank in Jess …

Software Development
Member Avatar for Indymaestro
0
85
Member Avatar for Francis Waldron

Here is another shot at it. It all most complier but falls short . still I know it doesn't mean its right. thanks for the help so far.

Software Development c++
Member Avatar for iamthwee
0
171
Member Avatar for Sanchez10

Anyone here that can help me write a multithread program to generate 3 different Fibonnaci sequences?

Software Development c
Member Avatar for iamthwee
0
103
Member Avatar for noople

Hi all, I'm working in the C language. I've been stuck for 2 weeks trying to figure out how in the world to populate arrays after reading in an input FILE. the input file has numbers and words, I need to write a loop that grabs the integers and stores …

Software Development c file-system
Member Avatar for noople
0
2K
Member Avatar for Zahsan

The problem An audio signal is sometimes stored as a list of int values. The values represent the intensity of the signal at successive time intervals. In a program these will be stored as an array. Often a small amount of noise is included in the signal. Noise is usually …

Software Development audio java java-swing
Member Avatar for iamthwee
0
111
Member Avatar for chuck577

I have a quick question regarding windows forms. Say I have a main form and it has a toolstrip with 2 buttons on it. Lets say one button displays a calendar form in the main form and the other displays a list of contacts in the main form. What is …

Software Development
Member Avatar for brainbox
0
122
Member Avatar for kabrina

Hi, I'm more than likely in the wrong place and if I am can somone please direct me to the right place! Heres my query. I am an [URL="http://www.daniweb.com/techtalkforums/thread62723.html#"]online[/URL] promoter and I do a lot of my promotional work by sending out thousands of messages a day on social community …

Software Development c++
Member Avatar for jwenting
0
106
Member Avatar for foxy xx

hi guys i'm trying to write a code that will ask a user to input a string and then check to see if its a palindrome when trying to run what i have done so far i get an illegal instruction error. i know its something to do with 'get …

Software Development assembly
Member Avatar for mathematician
0
118
Member Avatar for muhaa

Hi was wondering if any one knows what scripting language resource hacker uses as i would like to add a new menu to my team speek client so my clan members can open there americas army game from with in team speek also would like to know haw i could …

Software Development pascal
Member Avatar for muhaa
0
139
Member Avatar for Matt Tacular

I am writing a program that has two lists set up, and then the user is prompted for input. I want to tell the program to do one thing if the users answer is found in one list, and do another thing entirely if the variable is in the second …

Software Development python
Member Avatar for Ene Uran
0
89
Member Avatar for danizzil14

Yeah, uhh I've heard about it, but where do i get it and how do i use it? HElp is appreciated

Software Development python
Member Avatar for 7even
0
108
Member Avatar for dmmckelv

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 …

Software Development c++
Member Avatar for dmmckelv
0
381
Member Avatar for Goldfish691

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 …

Software Development c encryption file-system
Member Avatar for Goldfish691
0
160
Member Avatar for joelw

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 …

Software Development c++ data-structure
Member Avatar for may4life
0
189
Member Avatar for Lost in Code...

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 …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
272
Member Avatar for dunderhead

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 …

Software Development python
Member Avatar for dunderhead
0
1K
Member Avatar for newbie101

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 …

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for sneekula

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 …

Software Development python tkinter
Member Avatar for Ene Uran
0
3K
Member Avatar for qaizaar

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 …

Software Development algorithm assembly encryption
Member Avatar for qaizaar
0
301
Member Avatar for kathas

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 …

Software Development first-post perl
Member Avatar for KevinADC
0
90
Member Avatar for rpjanaka

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 …

Software Development java postgresql
Member Avatar for jwenting
0
313
Member Avatar for iwlu

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 …

Software Development java
Member Avatar for jwenting
0
121
Member Avatar for Barefootsanders

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 …

Software Development c++
Member Avatar for Ancient Dragon
0
181
Member Avatar for belhifet

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 …

Software Development c
Member Avatar for Salem
0
296
Member Avatar for kararu

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 …

Software Development perl
Member Avatar for MattEvans
0
96
Member Avatar for mattyd

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 …

Software Development first-post gui python tkinter
Member Avatar for mattyd
0
137
Member Avatar for shappell

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 …

Software Development ide java python
Member Avatar for vegaseat
0
107
Member Avatar for mattyd

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 …

Software Development gui python tkinter
Member Avatar for vegaseat
0
130
Member Avatar for gabriel_wadley

[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); …

Software Development c pascal
Member Avatar for Nick Evan
0
84
Member Avatar for sheida

< 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.>

Software Development visual-basic
Member Avatar for sweety0
0
75
Member Avatar for sweety0

[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 …

Software Development visual-basic
Member Avatar for QVeen72
0
171
Member Avatar for seth0x2b

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 …

Software Development assembly delphi machine-learning pascal
Member Avatar for Ancient Dragon
0
713
Member Avatar for eescobar

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.

Software Development c++
Member Avatar for Ancient Dragon
0
100
Member Avatar for DeeIT

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 …

Software Development c++ file-stream
Member Avatar for John A
0
3K
Member Avatar for mknight

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 …

Software Development c++
Member Avatar for iamthwee
0
156
Member Avatar for sofianos

I will be very thankful if someone can help me out....;)

Software Development c
Member Avatar for sofianos
0
78
Member Avatar for MasterBlast

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] …

Software Development c c# c++
Member Avatar for MasterBlast
0
83
Member Avatar for nirmala.s

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 …

Software Development c
Member Avatar for John A
0
377
Member Avatar for danizzil14

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 …

Software Development gui python
Member Avatar for Ene Uran
0
219
Member Avatar for bala24

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

Software Development c printer
Member Avatar for ~s.o.s~
0
100
Member Avatar for bala24

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

Software Development c++
Member Avatar for bala24
0
104
Member Avatar for vic02

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 …

Software Development
Member Avatar for vic02
0
217
Member Avatar for matrimforever

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.

Software Development c++
Member Avatar for bala24
0
208
Member Avatar for ramzyel

[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] …

Software Development c++
Member Avatar for Nick Evan
0
149

The End.