199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for smaity

Hi All, Currently I am doing one project related to unicode file reading & writing. I got my result using CFile & using WcharToMultibyte,MultiByteToWchar conversion functions. But I have a doubt whether those functions work fine if the unichar is more than 2 bytes. Now I want to read the …

Member Avatar for Ancient Dragon
0
836
Member Avatar for rockStar60608

Does anyone have an opinion on which of these sorts would work best on a small array: quick sort, insertion sort, or selection sort?

Member Avatar for Micko
0
181
Member Avatar for Amoris692001

I was looking for a tutorial on how to create files. I'm real new to C programming. I have to create a program which uses two files for input. I just need the create the files and then I can hammer out the rest. I know how to access the …

Member Avatar for Ancient Dragon
0
137
Member Avatar for Savage221

I just had a pretty basic question regarding graphics in C++ using the header graphics.h. How would you take a shape or just regular text and randomly move it around the screen like you would see in a screen saver? Just looping it to randomly display it in different areas …

Member Avatar for Geek-Master
0
209
Member Avatar for mforeman

Hi all, I am trying to list out a bus as individual names. For instance - When I come across a section in a file that lists a bus like this: <busname>[0:2] I would like to print out this: <busname>[0] <busname>[1] <busname>[2] Here is what I have - It goes …

Member Avatar for Rashakil Fol
0
156
Member Avatar for TimC

Dear all, I have a prog working and printing to screen. But as my program has grown i.e class/method definitions I need to tidy up my main(); my problem is with printing my results to the screen. [COLOR=Red]///this will print out to screen perfectly. note i left out the class/method …

Member Avatar for WolfPack
0
164
Member Avatar for nabil1983

Does anyone know the code to show the critical count for a quick sort algorithm. Basically my cd database is almost finished. What i need to do is show a critical count for the quicksort quicksort for my database [CODE]void q_sort (struct CdRecords array [], int count) { quick_sort(array,0,count-1); } …

Member Avatar for nabil1983
0
280
Member Avatar for ilikerps

Hello, I just have a question about how to find a substring when one has only a string and coordinates for where the data will be? For instance, a string "why,hello", and data that is at the coordinates 4 to 8. strstr, I obviously cannot use directly, because I have …

Member Avatar for Ancient Dragon
0
135
Member Avatar for ban26ana

I'll type the assignment I've been given. Then I'll tell you what my problem is, then I'll post my code. I'm sure the answer is probably so freaking stupid and would bite me if it had teeth. :mrgreen: A small airline has just purchased a computer for its new automated …

Member Avatar for ban26ana
0
275
Member Avatar for jto

i have different sige of photo files which was scanned through a scaner and save as *.jpg file , now i want to use all this files in a form made in vb6 where i want to link all these files trough data base so that i can see each …

Member Avatar for Kegtapper
0
300
Member Avatar for Gunapriya

Hi all, I want to display certain messages depending upon the option selected in the combo box. As soon as the option is selected i want the corresponding messages to be displayed. That is I dont want to use submit button. Please let me know how this could be done …

Member Avatar for william_stam
0
149
Member Avatar for stallwoes

Hi, I created a page the has drop menus based on database recordsets that filter each other . The only problem i run into is keeping the only problem i'm having is holding the view state of the first dropmenu after it reloads. I've tried cookies, session states...am i doing …

Member Avatar for william_stam
0
211
Member Avatar for shanepaul

Hi All, where can I get some relevant study materials on "configuring and securing a Window based application"? Any feedback will be highly appreciated! :eek:

Member Avatar for arnoldsmith30
0
85
Member Avatar for Xtothel

Hi, i would like to know how to set up a php page to automatically send attachments(files on the server) to other e-mails. thnx in advance.

Member Avatar for guideseeq
0
108
Member Avatar for heavyc

I have a problem i have a fully operational C++ code that works but when i convert it to ASM (assembly) code it doesnt work I dont know where I am going wrong but here are both codes.. [code] #include <iostream> using namespace std; int main() { int n, tmpA, …

Member Avatar for heavyc
0
195
Member Avatar for ilikerps

Hello, I am having trouble with arrays. Basically, this is what happens: [code] vector <char*> constArray(10); char* changingString = "hello"; constArray[0] = changingString; changingString = "hi"; printf("constArray[0] = %s\nchangingString = %s", constArray[0], changingString); [/code] Output: constArray[0] = hi changingString = hi So, I think constArray[0] is changing because it points …

Member Avatar for ilikerps
0
122
Member Avatar for TimC

Ref Polymorphism: I am trying to get the method `calculate_pay()` to work. As each type of doctor will have a differnt payrate I am trying to call the calculate_pay() but i am having difficulty. Should it be int doctor::calculate_pay() { return (doctor::get_Payrate()*hours); } will this line return each type of …

Member Avatar for TimC
0
172
Member Avatar for nabil1983

im trying to do a sort for the array structure records that i have entered... so far i've tried to use a book to do the coding...but im lost.. can anyone tell me if im on the right track or where im going wrong!!! [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> …

Member Avatar for perniciosus
0
188
Member Avatar for satimis

Hi folks, I'm prepared to write a simple perl scripts as follow There are 25 commands executed in following sequence[code]export LFS=/mnt/lfs mount /dev/hda6 /mnt/lfs mkdir -p $LFS echo $LFS /mnt/lfs (output) /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h mknod -m 600 /dev/console c 5 1 …

Member Avatar for mforeman
0
189
Member Avatar for nabil1983

Hello I've rearranged my program so i can enter more than one word for a field and it works,, new problem is after just entering data once,, i get stuck in the menu with a loop. tried all kinds of stuff to get out but cant. what i want to …

Member Avatar for HyperEngineer
0
145
Member Avatar for sahil_logic

plz give me links or discuss on address calculation in 2d arrays. i have little knowledge of calculating the address. can any one give some formula or something coz my professor gave it but i wasnt able to follow . i remember he was using terms like rowmajor, column major, …

Member Avatar for Ancient Dragon
0
170
Member Avatar for j1979c

[COLOR=Navy][B]Just want to know the latest visual studio available right now. I'm currently using visual studio version 6.0. What I can see from MS website is version 2005 right now. Does that include the .NET thing? Cause I'm kinda curious what this .NET thing is all about..and recently there are …

Member Avatar for Ancient Dragon
0
126
Member Avatar for nabil1983

'ello whenever i compile i keep getting an error saying identifier or declarator expected....for some reason i cant correct it neone know whats wrong??? [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void filewrite(void); void fileprint(struct tuple *myDB); // Idea here is to enter an array of structures // write them to …

Member Avatar for Ancient Dragon
0
235
Member Avatar for aarya

i ahve a form in that visitors can type their information and their website address. but when they give their website adddress like http:www//sitename.com it wont hyperlink. please anybody help me how to hyperlink taht one? thanks

Member Avatar for Phaelax
0
148
Member Avatar for kawk

Can anyone point me towards a good tutorial or book for learning PHP? Thanks.

Member Avatar for Phaelax
0
102
Member Avatar for Rearden

I'm trying to create a custom dialog that acts much like th JOptionPane.showInputDialog() except it uses an asterisk as an echo character. So far, I've come up with the following. . . [code] class CustomInputDialog extends JDialog implements ActionListener { JLabel prompt; JPasswordField input; JButton ok; JDialog dialog; String word; …

Member Avatar for Phaelax
0
277
Member Avatar for SNA

Hello, If I want to check my algorithm if it works good in every cases so can i check very outer cases and then I can conclude that my algorithm works well in all cases?

Member Avatar for perniciosus
0
185
Member Avatar for Platanum

Any help would be appreciated, this project is fustrating me. Has to do with PGM image files, but really the problem in my code (I would assume, lies within my pointers and dynamically allocating memory). Any help would be appreciated. Code: (main.cpp) [CODE]#include <cstdlib> #include <iostream> #include <string> using namespace …

Member Avatar for Ancient Dragon
0
166
Member Avatar for TimC

dear all, when I try and compile the following code I am recieved a linker error. Can some one steer me in the right direction. Also are my use of the virtual statments correct? many thanks tim #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; class doctor{ protected: string …

Member Avatar for WolfPack
0
102
Member Avatar for coolgal

hi... i really need help writing this program please i cant do it............ the instructions are.... a mail order house sells five diffrent products whose retail prices are shown in the followingtable: product# retail price: 178 $2.98 185 $4.59 199 $9.98 208 $4.19 288 $6.87 there are several permanent customers …

Member Avatar for coolgal
0
224
Member Avatar for Halcyon

Hello folks, First timer here so bear with me. I'm trying to tokenize an array of strings. This program reads an array of strings, each string has a First and Last Name and some have Middle Names. The array of strings is then bubble sorted(not the most efficient but required) …

Member Avatar for Halcyon
0
158
Member Avatar for sheldonhigh16

i am doing a project on computer programing and i need someone to be working in that field to answer some of my questions......... Here are the questions: 1. What degree do you need to be able to work in Computer Programing? 2. Is this job hard? 3. Is this …

Member Avatar for dwks
0
77
Member Avatar for SpS

We can call static member function through both class name and objects...but we generally use class name to call static member function instead of objects.... Is there any performance benefit in it by using class name or is it just to remove confusion by not calling through object

Member Avatar for SpS
0
119
Member Avatar for Acidburn

Hey guys and gals. I'm struggling yet again to get my file input working. I have a text file containing: John 19 smith 15 03 1986 Billy 15 Nomate 19 07 1990 ... etc I'm needing to get a line in at a time but also store the variables in …

Member Avatar for Acidburn
0
143
Member Avatar for prasath

Hi guys, Will you guys please suggest me some good books for TEXT compression with programming examples given in c or c++. Hope you guys will help me. :) prasath.

Member Avatar for perniciosus
0
147
Member Avatar for fili00

hey everybody, I just wanted to know how I can print out with awk or others only one line and not a whole column what is made by print$1. I have a data which contains 205 lines and I want for example only the 6th line. I tried with this …

Member Avatar for fili00
0
196
Member Avatar for btech

The code below compiles but produces the wrong output. The code is supposed to convert an infix string to postfix. the current output is only the arithmetic operator, unless there are parenthesis then it will only show the right parenthesis. I have been woking on this for hours and am …

Member Avatar for perniciosus
0
131
Member Avatar for ban26ana

I don't really understand arrays. I'm getting myself quite confused here. I have to answer a bunch of questions regarding a 2x3 integer array t. Here are the questions that I'm still having a problem with: 1. Write a nested for structure that initializes each element of t to zero. …

Member Avatar for SpS
0
115
Member Avatar for mark1048

Hi, I have the following simple test script: [CODE]<?php $links = array('URL'=>'www.google.com'); print("$links['URL']"); // compilation error print("$links[URL]"); print($links['URL']); print($links[URL]); // execution warning ?>[/CODE] But two lines are giving me problems. Can any one help to explain? Thanks. --Mark

Member Avatar for mark1048
0
322
Member Avatar for ilikerps

How does one reset an array, to make it retain its size but get rid of all data it has stored? Would one do it by setting all the array values to '\0'?

Member Avatar for SpS
0
503
Member Avatar for nabil1983

Ok i've tried understanding some previous posts but im just finding it really hard to work with structure passing to other functions and sorting. Can someone please explain in a simplistic on how i can pass structure to a function that sorts the structure by 'Year' or 'Artist' Below is …

Member Avatar for Ancient Dragon
0
143
Member Avatar for StealthCobra

I am getting these error can someone help? subscript requires array or pointer type -- point to lowest[x] = lowest; subscript requires array or pointer type -- average[x] = average; [code] #include <iostream> #include <iomanip> #include <string> using namespace std; void studentName(string name[4]); void getScores(double grades[4][5]); void findLowest(double grades[4][5], double …

Member Avatar for StealthCobra
0
118
Member Avatar for augie0216

Someone told me there were only 4 toolbars in vb.net. I thought there were than that. Can anyone shed some light on this?

Member Avatar for augie0216
0
88
Member Avatar for j1979c

[B][COLOR=Navy]This is an ongoing question going through my head.... I've been doing C++ programming for about 4 months now. Been using Deitel's C++ How to program book. Learned from the basics till data structures like link lists, queues, stacks, trees..all using templates, vectors, pointers. File processing (sequential and random). Well, …

Member Avatar for jwenting
0
206
Member Avatar for some one

hi every 1 please i need your help to complete my code cause i could not complete it it is for a bank wich . Design it so it can be used by the bank’s staff. It should enable the following: o Opening a new account for a customer o …

Member Avatar for some one
0
176
Member Avatar for J_Search

Can anyone help the noob? [PHP]$logfile= 'log.txt'; $IP = $_SERVER['REMOTE_ADDR']; $logdetails= date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='.$_SERVER['REMOTE_ADDR'].' target=_blank>'.$_SERVER['REMOTE_ADDR'].'</a>'; $fp = fopen($logfile, "a"); fwrite($fp, $logdetails); fwrite($fp, "<br>"); fclose($fp); [/PHP]As you probably know the code writes the text, IP address, and html code to a text file …

Member Avatar for J_Search
0
198
Member Avatar for btech

I cannot figure out these errors can someone please help [code]error C2065: 'stack' : undeclared identifier error C2228: left of '.isEmptyStack' must have class/struct/union type error C2228: left of '.pop' must have class/struct/union type error C2228: left of '.push' must have class/struct/union type error C2228: left of '.top' must have …

Member Avatar for iamthwee
0
243
Member Avatar for akki_freak

hi folks, plz try sending answers to folllowing questions....i know they are a lot..still...send as many as possible..... Write a "Hello World" program in 'C' without using a semicolon. Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 …

Member Avatar for Rashakil Fol
0
354
Member Avatar for loganb

Ok I'm working on a class project for C programming and I'm having problems opening 2 data files I need. When I execute the code it gives me the error opening files message. To execute I've been getting into the proper directory and then typing finalproject population path finalproject is …

Member Avatar for winbatch
0
74
Member Avatar for fogofogo

Hello All, I have a question regarding searching and selecting certain elements in an XML document using asp. The xml script basically consist of news headings, contents, date, and category elements that tell what the news is related to and where it should be displayed and stored. For example Finance …

Member Avatar for fogofogo
0
313

The End.