199,114 Archived Topics
Remove Filter ![]() | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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? … | |
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. … | |
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); … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
"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 … | |
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 … | |
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 | |
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 … | |
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?? | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
/*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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | :) 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 … |
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 … | |
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; … | |
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, … | |
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 … | |
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 … | |
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()) { … | |
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 … | |
| |
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 … | |
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 … | |
how i can create control at runtime? is this possible? Regards Vega. | |
Hi masters... How i can got last 3 character from string? Ex : Daniweb -> i got "web" is this possible? Please Help me Regards | |
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 … | |
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 … | |
[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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.