199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for willseyvilleny

i need to finish this program by friday at 8:00am i know im new but i have a lot of work done so pretty much here is what i have. requirements programmer defined function for into - check user must input element statistics into element_t im pretty sure i made …

Member Avatar for tayspen
0
93
Member Avatar for TimC

Dear all, I am in the process of writting a hospital/doctor prog. I have the majority working. BUT the program will only work ONCE. when I run the prog and input patient details (No.1), the details are inputed correctly. when I choose (No.5) I am able to correctly input the …

Member Avatar for winbatch
0
289
Member Avatar for some one

hi every please i need your expriment to help to complete this code my problem is with three functions i think so there is no errors the funcions are display account...>does not work just display name transection...>it count jyst one time standing order...>i do not know how to compare the …

Member Avatar for some one
0
257
Member Avatar for kdw3

I have written a program that performs a simple version of Run-Length coding compression on a file. I thought everything worked, but after a closer look at the output from the program, letters after a space are counted 1 too many times. I.e, if the letter 'p' appeared 6 times …

Member Avatar for HyperEngineer
0
164
Member Avatar for Jon182

Hey guys, the following code is part of a program I am working on and as a newbie to c++ I have come across a problem. As you can see when the case is J the int J is increased by 1 but how do I go about doing this …

Member Avatar for perniciosus
0
121
Member Avatar for sahil_logic

i copied the code as is discussed by my professor and written in my course book but i am not getting the correct output. my logic is very clear but not getting the right output, its a bunch of positive n negative values. pls check . the code is compiling …

Member Avatar for SpS
0
127
Member Avatar for magikman

Hola, Just like to say hi to everyone, i just joined the forums. Ok, I have been playing with C++ now for about 3 or 4 months and have now hit a brick wall and need your help. I am trying to write a program that will read in data …

Member Avatar for magikman
0
179
Member Avatar for Micko

Little, by little my calculator is getting a look I want. However, I find that using Tkinter is not very intuitive, and i cannot find detail documentation. have a look at this [code] # menu-example-2.py #from Tkinter import * #root = Tk() #def hello(): #print "hello!" ## create a toplevel …

Member Avatar for bucodi
0
316
Member Avatar for desertstorm

Hi: I had a question on how to use: int Read(char *buffer, int size, OpenFileId id); void Write(char *buffer, int size, OpenFileId id); This is for a client that is connected to a network host server and it is for a chatting program. If someone could direct me to a …

Member Avatar for jim mcnamara
0
131
Member Avatar for desertstorm

How's it going: How do you use fopen() to establish a stream to console I/O (keyboard)? What I needed to do is read in data from the console I/O and then send it elsewhere using fputs. I just don't know what the first argument for fopen("here", r) would be. Oh, …

Member Avatar for Ancient Dragon
0
310
Member Avatar for peter_budo

I have small code to read datas from "dat" type of file. It's read fine just when last line is done it's kick-off with error message [I][B]Exception in thread "main" java.lang.NullPointerException at CW2.main<CW2.java:26>[/B][/I] [CODE] import java.io.*; import java.util.*; class CW2 { public static void main( String[] args) { try { …

Member Avatar for jwenting
0
103
Member Avatar for GG_1985
Member Avatar for priyanka
0
119
Member Avatar for frankieb

What two parts combine to make up the serialization of application objects in Visual C++? Is it the DECLARE_SERIAL and IMPLEMENT_SERIAL macros? What are the (2) categories of ANDs and ORs and how can they be described? I am having trouble understanding these questions and need some clarification please. Thank …

Member Avatar for frankieb
0
111
Member Avatar for nabil1983

Hello Can someone tell me what this sort algorithm is called.? And if possible a little bit of information about it... [CODE]void record_search(struct CdRecords cdDB[]) { system("CLS"); int i; char name[20]; printf("Enter Name:"); scanf("%s", name); for(i = 0;i<datasize;i++) { if((strcmp(name,cdDB[i].Artist))==0) { ENTER DATA TO BE DISPLAYED } } printf("Press Enter …

Member Avatar for SpS
0
175
Member Avatar for kahaj

I'm getting a parse error before '<' on line 26. What's going on that I don't seem to be seeing here? [code] #include <iostream> using std::cin; using std::cout; using std::endl; int main() { int num1, num2, num3, num4; int avg; cout << "Enter four numbers to be averaged." << endl; …

Member Avatar for winbatch
0
98
Member Avatar for Glynis

I haven't learned how to do my own javascript but I have some snips from the HTML editor I use (1Page). I'll like to insert some of them into my pages (which I know how to do) but as an external linked file. Is there an easy way to do …

Member Avatar for tgreer
0
157
Member Avatar for Mistro116

Hello, I get the following seg fault error when I try to delete the last node of the list. Does anyone know why? My delete function and high level function are included below: The seg fault only occurs when the if value in BeginQuizFirstTry detecting that CheckAnswer is not true …

Member Avatar for Mistro116
0
105
Member Avatar for droopy420

Program- VB 6.0 Database- MS Access 2003 I'm build a database base on my household bills. And I have already the database connects to the program, but I am unable to get some of my functions to run correctly. These are the problems that I am having... 1. I am …

Member Avatar for droopy420
0
142
Member Avatar for Duckman

Hi, I am not much of a programmer, so I was wondering if someone could help me write a VBA function that will go through all the cells of an excel sheet, and if a function exists in that cell, output that function to a text file? After having the …

Member Avatar for Yomet
0
196
Member Avatar for C++ programer

Dear all; i have a problem with functios. i have a program to write using struct in functions with arrays also. i have the program written in structes with array but not using the functions and i don't no who the do it with functions. if anybody acn help i …

Member Avatar for jim mcnamara
0
138
Member Avatar for nabil1983

i got the quicksort coding correct ,, the problem is that the data is still not sorting below is the complete program to the database. The data is to be sorted by genre like i have stated i have checked over and over again but cant find nething wrong... The …

Member Avatar for nabil1983
0
184
Member Avatar for darklord

What I am trying to do is to scan a text file word by word and find all words of 4 character or less then output these words to a file, but the problem is I don't know a unix command that can scan the file this way. The Grep …

Member Avatar for jim mcnamara
0
157
Member Avatar for tristan17

hi, i need to create a database of images. does anybody know where i can get a database of sample images? any help will be greatly appreciated, tristan

Member Avatar for techniner
0
86
Member Avatar for venetian_jigsaw

I am developing my first e-commerce site and have run into a slight problem with the page counter. As you can tell in my code below, I set my number/Pg and start page level vars as follows: $numPerPage=3; $start=0; I know I am missing a limit in my SQL stmt, …

Member Avatar for techniner
0
144
Member Avatar for kahaj

I am trying to build a constructor capable of using the current time from the time function as declared in the C++ standard library ( <ctime> ). This constructor should initialize an object of the Time class. Is what I have below going to work? I guess I need to …

Member Avatar for SpS
0
114
Member Avatar for Naveena

Can anybody write a small program that will compile in C but not C++ Pls. reply me if any body knows the answer.

Member Avatar for SpS
0
123
Member Avatar for Nedals

I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile. I get the following error (same for all projects) …

Member Avatar for Nedals
0
385
Member Avatar for free_eagle

Hello im practicing C language and i ran into this code and i can't figure out the outputs :( can u help me please ? I'm confused in operator precedence. and What does [I]short circuit evaluation[/I] means in c? when i run this code the output is: 000 and 001 …

Member Avatar for free_eagle
0
165
Member Avatar for tdizzle342

Can any help me with this code, im trying to get the program to return to a function. I have no idea how this is done. Give a lil explanation so I know for next time. Thanks here the code : // The "Calculator" class. import java.awt.*; import hsa.Console; public …

Member Avatar for tdizzle342
0
186
Member Avatar for Acidburn

Hey guys I'm playing with structs and trying to get one to include the other: [code] #include <iostream> #include <string> using namespace std; typedef struct data { string dat; } DATA; typedef struct name { string na; string age; NAME * DATA; }NAME; int main() { return 0; } [/code] …

Member Avatar for Ancient Dragon
0
142
Member Avatar for desertstorm

Does anybody know of any sites that give a good tutorial on how to implement a chat client (console client(allows you to type in messages on the command line) and network proxy client(allows programs to connect via network sockets)) for interactions with a blackboard. Like sockets, fgets, filedescriptors...etc. The blackboard …

Member Avatar for desertstorm
0
164
Member Avatar for Valmian

Hello all, When calculating sin(M_PI) the computer outputs ~-3e-7. Unfortunately, in my program the error grows (it is multiplied by a number on the order of 1e10) into around -208. My question: is there a way to round a float/double to only 3 digits after the decimal point (I do …

Member Avatar for dwks
0
348
Member Avatar for Reham Ejaz

Can anyone plz tell me where r cookies created , on the server side or the client side and how?

Member Avatar for tgreer
0
137
Member Avatar for new guy n c++

Hi i am new guy in programing and i need ur help in this program if u can. my problem is that we have to write a program to read a file usinag a struct array and a function and the assigment is Print all of the input data ; …

Member Avatar for Ancient Dragon
0
164
Member Avatar for Dani

I am doing a perl project for school in which I am using CGI.pm. I am a complete perl novice. With the following: [code] use CGI; $query = new CGI; print $query->startform({-action => "foo.cgi", -method => "post"}); print $query->p($query->textfield({-name => "bar"})); print $query->submit({-name => "action", -value => "submit"}); print $query->endform(); …

Member Avatar for Dani
0
228
Member Avatar for nabil1983

Hey after spending a few hours trying to understand why my quick sort is not owrking, i've tried calling the q_sort() and quick_sort() but with no luck...... below is how i had it from the start for less confusion,, can someone tell me why it isnt working... i've checked the …

Member Avatar for dwks
0
182
Member Avatar for Naveena
Member Avatar for ehab_aziz2001

Hi, I runned that program with int variables and was OK but when I changed the type of pay_calc(),*emp_rate,pay from integer to float I failed ..Please Help main() { int *emp_no,*emp_works; int pay_calc(),*emp_rate,pay; char *emp_unit,ans,another(); system("cls"); do { input(&emp_no,&emp_works,&emp_rate,&emp_unit); pay=pay_calc(emp_works,emp_rate,emp_unit); pay_slip(emp_no,emp_works,emp_rate,emp_unit); cash(pay); } while (another()=='y'); return 0; } char another() …

Member Avatar for dwks
0
112
Member Avatar for paradox814

I am trying to open a mp3 to read the ID3 tag information, when the mp3 is opened in an ASCII editor I can see all the information I want, including spaces. But... When I try running the following chunk of code on that same mp3, I get the same …

Member Avatar for Ancient Dragon
0
161
Member Avatar for bgharper

I seem to be having a problem getting this while() loop to work... [PHP]include("database_connect.php"); $query = "SELECT id, title, date FROM entries"; $result = mysql_query($query); while ( $result = mysql_fetch_assoc($result) ) { $id = $result["id"]; $title = $result["title"]; $date = $result["date"]; echo "<div class=\"recent_entries\">"; echo "<a href=\"archives.php?id=" . $id . …

Member Avatar for chrisbliss18
0
111
Member Avatar for akshayabc

Plz answer to my C doubts:- 1) Why do prototypes of some predefined functions in ctype.h(ex- tolower(ch)) has 'int' as the data type for formal arguments? How will it matter if the formal arguments r of type 'char'? 2) Is there any command in DOS for viewing the non printable …

Member Avatar for Ancient Dragon
0
327
Member Avatar for akshayabc

1) Plz explain these complex declarations(from K&R).-- [CODE] char(* (*f())[]) () // f : a function returning pointer to array[] of pointer to function returning char. char(* (*x[3])()) [5] // x: array[3] of pointer to function returning pointer to array[3] of char. [/CODE] The one line explanations which r given …

Member Avatar for Narue
0
308
Member Avatar for michael123

A simple question. I have integer variable $a=2, how can I display it in string format: "SN0002" with 4 '0' inserted? thanks.

Member Avatar for Lafinboy
0
94
Member Avatar for perpetual_dream

I'd like to remotely control a small car through wireless transmission by using the computer as my graduation project. I will draw the path of the car and the surrounding dimensions on the pc, and the path that i move on the pc will make the car move in the …

Member Avatar for Kegtapper
0
224
Member Avatar for mystique

Hi there I recently used a freelance web designer to design my website and i specified that i need to do the content management myself. However, he created the website using php and after i paid him and all, he says that it is impossible for me to change any …

Member Avatar for EWB-James
0
7K
Member Avatar for nabil1983

I got everything working, a couple of probls with file write. But ill work it out. I just need help on getting the quick sort working here...i got it written and even in my switch statement but for some reason it dont work....ne one know y...?? [CODE]//(Database Management System(DBMS), user …

Member Avatar for nabil1983
0
455
Member Avatar for pixiee73

Can some one please enlighten me with what it takes these days to get a job in IT actually PROGRAMMING? I graduated back in 2000 with a bachelors in Computer Science (no not the wussy CIS option) and have been stuck with Support jobs ever since. Who do I have …

Member Avatar for pixiee73
0
152
Member Avatar for tristan17

Hi guyz, I had a program which is written in microsoft visual C++, it is actually just a image retrieval program. But now, i wan to create a web program that user can retrieve similar images thru the microsoft visual C++, can i use php to do it? I learnt …

Member Avatar for Gary King
0
104
Member Avatar for LordJayno

I'm trying to create a graph class that is implemented as an array of pointers. This array is dynamically allocated which is where i'm having my trouble. I'm getting an error message from my equal signs saying that the operator doesn't exist [CODE]GraphClass::~GraphClass() { Node *temp; temp = array; Node …

Member Avatar for Rashakil Fol
0
176
Member Avatar for hopkins1878

Hi there, I am not the bet in Access, I will admit. But need a function to open up a MS Outlook template (.oft file) within Access. Anyone help with quick steps on how to do this, It would be greatly apprciated.

Member Avatar for Kegtapper
0
585

The End.