199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tmy

how can i use cin.ignore to ignore every character up to and including a specified character – for example a full stop, ’.’ or a comma ',' ?? for example if the person entered Tom Jones. the program needs to igonre the full stop please help [CODE] #include<iostream> #include<string> using …

Member Avatar for Freaky_Chris
1
3K
Member Avatar for mrboolf

Hi all there. Given the huge amount of blackjack/card games threads and me being personally interested in poker and other games, I was feeling like starting to play with a few useful (at least I hope so) classes for dealing (no pun intended :P) with card games. I started my …

Member Avatar for Murtan
1
527
Member Avatar for 1bennyd

Hi Guys, I am a complete newbie to C++. I have a background in R, and have recently taken the plunge into C++. Not having much success though. I am trying to solve an easy problem (no doubt) - reading data from a tab delimited file and inserting it into …

Member Avatar for 1bennyd
1
258
Member Avatar for SpeedMath

I am beginner... I already install numpy,scipy and also Matplotlib.... Can anyone helps me? I wanna to do a calculator program about how to calculate CGPA. I still don't know how to write Python script for the grade as below. Grade: A=4.00 A-=3.70 B+=3.30 B=3 B-=2.70 .... This is my …

Member Avatar for SpeedMath
1
809
Member Avatar for cpeeyush1

hi i am new to java script and i am designing my web site but i want to load a new image on a particular place of my web page when a user hover over the home,contact us link so pls tell how can i do this if you have …

Member Avatar for essential
1
138
Member Avatar for nitro

please tell me how i can code a BST in c++ ? i know that each node is like that of a linked list where one 'box' stores the item. another two boxes stores the address/pointers to the two siblings. but how can i transform this into code? like this? …

Member Avatar for AHUazhu
1
145
Member Avatar for 30Caliber

Hi everyone, I'm new to this site and programming, and i was wondering if i could get some help with a programming problem of mine. I have to print 10000 random numbers ranging from 0 to 10000. The numbers should be put in the console screen and a txt. file. …

Member Avatar for 30Caliber
1
2K
Member Avatar for geffect

Hi, I hope somebody can help me here :-(... this program compiles well and after it crashes. [code] #include "TStack.h" #include <math.h> #include <stdio.h> #include <vector> using namespace std; //FILE *f=fopen("input.txt","r"); //FILE *g=fopen("output.txt","w"); void main(){ int n; scanf("%d", &n); vector <vector<int> > g (n, vector<int> (n)); vector <int> deg (n); …

Member Avatar for MosaicFuneral
1
99
Member Avatar for jonevans2

Ok so I'm having some problems with this program I have to write as you might be able to tell it takes strings from the user either in english or morse and translates them to morse or english respectively. I got it working from English -> Morse for strings with …

Member Avatar for MosaicFuneral
1
151
Member Avatar for yingfo

Hi I was wondering if anyone could help I'm receiving a segmentation fault whenever I go to run my main.cpp on my program. I've never encountered this before and was wondering if anyone knew how it can be fixed. The program consist of equiv.h, equiv.cpp, graph.h, graph.cpp, and main.cpp here …

Member Avatar for yingfo
1
260
Member Avatar for thariqrasheed

Hi, Can u add numbers without using arithmetic operators in java.We can add using bitwise operators.But i m not able to get the ans. Solve: a+b=c; Prove 2+2=4 without using arithmetic opreations. Looking for u r answers

Member Avatar for stultuske
1
154
Member Avatar for CodeMama

Hi, I'm a newbie and am having a problem with either my where clause in my sql statement or something else, I think its the where because if I take that out the script works fine... Here is the error I get: Warning: mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for CodeMama
1
132
Member Avatar for Agent57C

an error is found on line: letters = input.Substring((count), 2) it says that the index must be within the string I don't see why it is an error can anyone help? Function DigramCount(ByVal input As String) 'takes two charcters at a time out of input 'string and determines their frequencies …

Member Avatar for bruce2424
1
195
Member Avatar for LevelSix

"Write a program to display a linked list graphically. Draw each element of the list as a box, and indicate the links with line segments. Draw an iterator as in Figure 15-3. Supply buttons to move the iterator and to add and remove elements." The elements of the node appear …

Member Avatar for quuba
1
2K
Member Avatar for mglover070588

Hi , new to the forums:) Trying to do this tutorial from the 'C programming for scientists and engineers' book. The person who wrote it is my lecturer. The program reads the file, but when it displays it, it only shows the last line - I am stuck! I think …

Member Avatar for WaltP
1
234
Member Avatar for gayatri.saha

1) # define cube(x)(x*x*x) main() int x=2. y, z; y= cube(++x); z= ++y + 386 / cube(++x); printf("%d %d %d", ++x, y, z); convert into hexadecimal 2) a = 0*aa b = a<<1 a) b=a b) b= 2a

Member Avatar for WaltP
1
109
Member Avatar for psycho007

Hi there, was wondering if somebody could help me. I currently have a project to create a php/mysql system for a local pizza company, a touch screen system. Cut a long story short, I need to be able to print multiple lines from a txt file. I have got the …

Member Avatar for psycho007
1
1K
Member Avatar for ajay.krish123

plzz help i have to make a program in c in which the windows (output screen) to scroll up and down with mouse as require??? i have been searching for long time but didnt got any cluee??

Member Avatar for Ancient Dragon
1
280
Member Avatar for zaryk

Is it possible to connect to yahoo server using winsock. I know I could use libyahoo2 but I have already tried libyahoo2 but didnt get any where. If not possible with winsock, I can try libyahoo2 again. [code] #include <windows.h> #define YaMainServer "scs.msg.yahoo.com" #define YaMainServerPort 5050 void YahooSock(HWND hwnd){ int …

Member Avatar for zaryk
1
132
Member Avatar for Traicey

I need to make sure that when the user select a date from a DateTimePicker the date should not be less than Today's date, anyone knows how to achieve that Thanx

Member Avatar for uim_1977
1
121
Member Avatar for m_arian

Hi This is my first DaniWeb post so I hope I get it right. My problem is homework. I have almost got it but I'm having trouble with the pointers. The entire program will output svg code but I've tried to leave out as much as I can to reduce …

Member Avatar for skatamatic
1
127
Member Avatar for f.ben.isaac

Hello, first of all i'm glad to be a member here. Nice to be with you! I wrote a simple dum port scanner. For practicing purposes. It worked fine under linux, i ported to windows, i linked it to winsock libraries. I keep getting errors, such as C:\Documents and Settings\Fahmi\Desktop\test\main.cpp|29|error …

Member Avatar for f.ben.isaac
1
497
Member Avatar for uim_1977

I'm developming a programm thet will use a dll forms, the problem i'm getting i have several forms in each dll, some of them have to use functions from other forms. For example, i have a DLL "Customers" which includes Customers form, Customer Selection List, which is a a different …

1
268
Member Avatar for iamtuxmeister

I am new to the world of compiled programming languages. I do most of my work with Perl and bash scripting. I was recently asked to pursue a listener to the Asterisk Manager Interface that will be able to pull out caller ID information based on the extension that the …

Member Avatar for Salem
1
252
Member Avatar for FrawgLips

/*this program has been condensed from over 2400 word combinations down to 27 It is for arranging the meanings of words in the order the words were written. Many words have several meanings (descriptions). */ [CODE] #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <ctype.h> #define TRUE 1 #define FALSE !TRUE …

Member Avatar for FrawgLips
1
110
Member Avatar for koman

Ok so the code makes the user type in a number. Ok if the number is odd it must say "Invalid Input". If the number is EVEN it takes the ODD numbers of it and gives you the pairs that add up to the EVEN number. For example if I …

Member Avatar for Salem
1
111
Member Avatar for jkun2

I have this program to read in a text file and store each word in a Binary Search Tree and keep track of the frequency of this number in the file. My outputFile should read like: 32 a 54 and 4 hello 8 will 9 would I have the program …

Member Avatar for stilllearning
1
1K
Member Avatar for mmjack

With this piece of code when i call read i get the output [ICODE]Start of loop Archived filename = ./Data/Test.log End of loop Start of loop Archived File = DATA MANAGER End of loop[/ICODE] Edit: It is exactly what i want except it adds there odd characters at the end …

Member Avatar for Ancient Dragon
1
105
Member Avatar for LordoftheFly

I'm having trouble with this section my code and am hoping that you can help me diagnose and solve the problem. I'm not sure if it makes a difference, but I compile and run my code in Cygwin. The problem: At run time when the program asks for the user …

Member Avatar for LordoftheFly
1
308
Member Avatar for mgirl

:) Hi, Ive written a program that is supposed to count the number of people of different ages and calculate the average of valid ages. We exclude ages entered as 0, over 130 or negative. The program does run but I sometimes don't have the right number in the different …

Member Avatar for Ancient Dragon
1
91
Member Avatar for alleycot

write a program to create a customer's bill for Ms.B's Desk-Shop. ms. B sell only three items: grater-cake, icy-mints and corn-sham, which she persoally delivers to ezch customer upon accepting their phone order. The unit prices are $50, $10 and $30 respectively, with delivery charge of 10% on the total …

Member Avatar for Ancient Dragon
1
266
Member Avatar for Newguy89

the program should print 1 this one should have six spaces and then 1 22 5 spaces then 2 333 and so on 4444 sum reason when i post here it aligns left 55555 666666 though it prints... 1 22 333 4444 55555 666666 [code=cplusplus] #include <iostream> using namespace std; …

Member Avatar for Newguy89
1
109
Member Avatar for sahdev86

hai.... i developing online food ordering system....so if user click order online, tey wil c da food pictures....so if user click da food picture to buy....tey wil c the food category,price n food name plus the food pic 2....at da same page user aso need to enter thier apartment name, …

Member Avatar for Shanti C
1
134
Member Avatar for mikeregas

here is the code that I have so far and I can not seem to get it to work properly it is return 1 for any number that is entered. Any help that you can give me would be greatly appreciated. Thanks [code=language]#include <stdio.h> double square_root(double low, double high); int …

Member Avatar for chrissygirl
1
2K
Member Avatar for peter_budo

I created menu for mobile phone, where after you make move screen should be repainted and after that a sound should be played. However at present stage sound is played first and just after that Canvas view is repainted. Bellow is skeleton of the class [code=Java] public class ContactMenu extends …

Member Avatar for peter_budo
1
148
Member Avatar for cuthien

I get the right input, but its giving out the numbers unformatted in the output ie: when it should be input: 3 5 (7) $58 3,400 output: 3 5 -7 58 3400 it gives me 3 5 -7 5 8 3 4 0 0 [code] inFile.get(aa); while( ! inFile.eof()) { …

Member Avatar for gregorynoob
1
95
Member Avatar for iichi07

I really need your help..well we have a project and it is called Rational Class. Create a class called Rational for performing arithmetic with fractions. write a program to test your class. Use integer variables to represent the private data of the class -- the numerator and the denominator. Provide …

Member Avatar for iichi07
1
220
Member Avatar for adiel224
Member Avatar for bonnie1702

Hi there! I am just starting out in c++ and so far, its going ok. I have a small problem in a simple program that is frustrating me, so I am hoping someone will point me in the right direction of where I've gone wrong. The program basically prompts the …

Member Avatar for bonnie1702
1
221
Member Avatar for mangel.murti

new to this php.. i have a login page. <form name="form" id="form" action="aa.php" method="post"> ... <input name="txtusername" id="txtusername" type="text" width="70px" class="style23"/> <input name="txtpass" type="password" width="70px" class="style23"/> ...... button here... </form> after login i am getting login name of user form `URl ->[url]http://localhost/MIS/PS/add/add_ps2.php?[/url][B]name=champawat.[/B]` in second page i hva three `combobox(unit,achivements,crop)`. the …

Member Avatar for cwarn23
1
258
Member Avatar for Vega_Knight
Member Avatar for Vega_Knight
1
92
Member Avatar for EkoX

Hi masters... How i can got last 3 character from string? Ex : Daniweb -> i got "web" is this possible? Please Help me Regards

Member Avatar for Jx_Man
1
108
Member Avatar for sciwizeh

this is confusing, I wrote this a while ago, and it didn't work right, I am almost sure that it is a simple small error somewhere that I am just missing. when i wrote it I didn't think that it would be good to post it here because of the …

Member Avatar for sciwizeh
1
146
Member Avatar for acoxia

Hello (sorry if i break any rules on post format first time on daniweb)Have a project to make a binary to hex,Dec,octal. Now i found this code here [url]http://www.daniweb.com/forums/post598839.html#post598839[/url] and made a few changes to it but i am not familiar with a few of the parts and some help …

Member Avatar for acoxia
1
87
Member Avatar for mansi sharma

[code=vbnet] Imports mshtml Imports SHDocVw Imports Microsoft.Win32 Imports System.Runtime.InteropServices Public Class Form1 Public Const BaseKey As String = "SOFTWARE\Microsoft\Internet Explorer\Extensions" Public Const SubKey As String = "{10954C80-4F0F-11d3-B17C-00C0DFE39736}" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reg As RegistryKey = Registry.LocalMachine Dim sk As RegistryKey = …

1
168
Member Avatar for Amir Ali

Dear All, In VB.net, (1) Place a textbox on the form with bigger size and multiline property TRUE (2) Allow AutoScroll of the form TRUE (3) Run the application (4) Resize the form in such a way that there should be vertical scrollBar along the form (5) Now click on …

Member Avatar for koolkeran
1
856
Member Avatar for amrith92

hey, This might be naive, but how come this bit of code isn't working??? [CODE] int lc=0; read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; }[/CODE] Have looked through the internet, and this code seems to be fine, so what is it that makes it not work?? the output is always …

Member Avatar for amrith92
1
211
Member Avatar for pauldavis

Hi, im making the website for a local youth club, and the leader there, wants to have comments posted automatically, under the contact box. I'm fine with the contact form, that works fine. Its the same one used on my website, its been tested by 3 other people to. The …

Member Avatar for digital-ether
1
117
Member Avatar for RayvenHawk

I've finished writing the program for my class and everything actually does what it's suppose to (well 99% anyway). I'm going to add snippets of the code that should help figure out the small glitch. What's happening is I can add x amount of elements to my stack and display …

Member Avatar for Radical Edward
1
3K
Member Avatar for alpine89

Hey guys. Im having some trouble with reading from a text file, into a class with strings and ints. Here is my code for my read file function: [code] ifstream infile; infile.open("books.txt"); if (infile.good()) { for (int i=0; i<=5;i++) { getline(infile, book[i].title); //string getline(infile, book[i].isbn); //string getline(infile, book[i].publisher); //string infile …

Member Avatar for alpine89
1
186

The End.