199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
Does anyone have an opinion on which of these sorts would work best on a small array: quick sort, insertion sort, or selection sort? | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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); } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: | |
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. | |
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, … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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, … | |
[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 … | |
'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 … | |
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 | |
Can anyone point me towards a good tutorial or book for learning PHP? Thanks. | |
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; … | |
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? | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
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. … | |
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 | |
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'? | |
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 … | |
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 … | |
Someone told me there were only 4 toolbars in vb.net. I thought there were than that. Can anyone shed some light on this? | |
[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, … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … |
The End.