49,766 Topics

Member Avatar for
Member Avatar for MAGiC333X

Hello, I'm having a pretty weird problem with a program i created, it's going to be a RSA encrypter... I've made a BigNum class that is able to do multiplications, additions, decreament, divisions and modulo on very large numbers... The size of these numbers is defined by a contant (named …

Member Avatar for MAGiC333X
0
126
Member Avatar for Sun

[COLOR=Navy]How can i make a program in c++ which accept only the following: 1) Any positive number. 2)Character from [A to Z] -in upper case.[/COLOR] [COLOR=DarkRed]Note: this program won't work as desired because idon't know how to get the ASCII of any number or character-by using int().[/COLOR] #include<iostream.h> void main() …

Member Avatar for Narue
0
92
Member Avatar for Layla_2401

Hello Everyone, I'm working on a couple of programs, client/server. I'm using winsock library to handle data transfer between the two programs. I'm having a problem when it comes to sending int values, they must be converted to (char *) since that's the data type of the buffers used in …

Member Avatar for Narue
0
187
Member Avatar for amen

i input a sentence " i love eat".how can wanto to get c++ to get a full sentence.. [CODE] #include <iostream> #include <string> using namespace std; void echo(string message) { cout << message << endl; } int main() { cout << "Enter your word: "; string word; // place declaration …

Member Avatar for Narue
0
148
Member Avatar for marioxp

I am new in programming and my problem is probably notorious but still is a problem. I want build class which can produce object which contain two dimensional dynamic array and member function which fill that array. Question is where I should to create the array, in function or in …

Member Avatar for Narue
0
173
Member Avatar for Duke_0064

Does anyone have any suggestions as to how I could better this code.(Not too fancy). I'm supposed to use a switch statement. I think the concept isn't bad. But some things are off as far as my opitions displaying correcly. [INLINECODE]#include <iostream> using namespace std; int main () { char …

Member Avatar for Ancient Dragon
0
146
Member Avatar for vamsi.rgiit

the specific problem is that there are no errors in the prob but it is giving segmentation fault.plz check it #include<iostream.h> #include<conio.h> void main() { struct mylist{ mylist * nxt; int val; }; int a,b,c,d=1,i,j;mylist * t; clrscr(); cout<<"Enter the no&the total no of numbers"; cin>>a>>b; mylist * head=new mylist; …

Member Avatar for Bench
0
90
Member Avatar for Duke_0064

Hello, I have this program here>> it's a random guessing number game. It works great the only thing I can't figure out, is how to display the [B]best score[/B] at the end of the Loops. The outer loop is suppose to keep track of the number of games played ( …

Member Avatar for dubeyprateek
0
149
Member Avatar for dors_zone

here are the program below reads five numbers, find their sum, and print the numbers in reverse order. #include <iostream> using namespace std; int main() { int item0, item1, item2, item3, item4; int sum; cout<<"Enter five integers: "; cin>>item0>>item1>>item2>>item3>>item4; cout<<endl; sum = item0 + item1 + item2 + item3 + …

Member Avatar for Narue
0
125
Member Avatar for vcgillu

hi......... to every one, actually i'm learning c/c++. i'm struck in the file copying topic. my problem is appending file1 to file2 , i.e we should be able to append file1 anywhere in file2 as per our wish. can anyone help me out regarding this with some coding part or …

Member Avatar for Narue
0
80
Member Avatar for gampalu

Hi all! I´m having a problem, I'm reading from a txt file values (doubles) but my cout outputs the following: -9.25596e+061 -9.25596e+061 -9.25596e+061 -9.25596e+061 Press any key to continue When it should read this: 1.986772 2.607455 0.000000 0.000000 The code is: [CODE] #include "stdafx.h" #include <stdlib.h> #include <stdio.h> #include <time.h> …

Member Avatar for gampalu
0
142
Member Avatar for pete0

:confused: hi everyone as much involvement i get with C++ i alway get to a point where my fingers are tied, and here i am. This piece of code displays a date then the time selected by the user, wherei got stuck are: 1. i tried to validate (check) the …

Member Avatar for dubeyprateek
0
98
Member Avatar for shakoush2001

Hi Iam using Borland C++Builder6 ..This is the first time I use BDE I ve read some tutorials and articles and Ive tried to create an alias for my *.mdb Microsoft Access 2003 database so that I can access it from within the application but it does not work. What …

0
53
Member Avatar for Duke_0064

Hello, I have this for loop here, and everything is great except I can't figure out how to display 3 numbers per line instead of all number on one line. Can anyone help? Thanx! #include <iostream> using namespace std; [INLINECODE]int main( ) { int x; cout << "Numbers between 5 …

Member Avatar for Duke_0064
0
84
Member Avatar for comwizz

Why cant we overload assignment operator using a friend function? Please help?? Thanks, comwizz.

Member Avatar for SpS
0
665
Member Avatar for mwo0002

Hi, I'm using Microsoft Visual C++ and I keep getting this error referring to this one line in my main file. The line of error is in bold. Header file [php] int f (int n); double e (double accuracy); double exp (double expo, double exaccuracy); [/php] Computation file [php] #include …

Member Avatar for mwo0002
0
306
Member Avatar for Duke_0064

Hi, I'm new to this C++ stuff. So if anyone can help that would be nice. I have this program to generate a random number and a the user inputs a number from the keyboard to correctly guess the number that the computer randomly chooses. but the numbers are always …

Member Avatar for Duke_0064
0
106
Member Avatar for leedurr

is this program accurate? if not i need somebody dat can make clear directions to me on how to create this program with no errors or warnings. i got 2 errors n 1 warning on here so far after i compiled it. the code is in the following: //Program 2-2 …

Member Avatar for Bench
0
233
Member Avatar for fitfool

Hello, i have a couple questions. im making a simple program were the user has to guess a number. One of my problems is that ounce they enter a number, they have to restart the program to guess again because it will quit if they guess it after the first …

Member Avatar for Bench
0
72
Member Avatar for cczak

:sad: I have to write a program using classes, and design an online address book to keep track of the name, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. The out put menue should look like this: 1: To see if a …

Member Avatar for Bench
0
169
Member Avatar for fitfool

hi, I have a problem. I am trying to make it so when i open up my program A jpg loads with it. I have a add-on called JPGloadthat i downloaded from the "update tool" in Dev c++ .when i compile the code that was included with it, gets a …

Member Avatar for fitfool
0
101
Member Avatar for Vagabond

Hi can anyone please tell me how to create a shortcut for the bcc32 compiler? I want to access it from my desk top Many thanx :mrgreen:

Member Avatar for Vagabond
0
87
Member Avatar for comwizz

He friends, I would like to have some guidance over projects to take up in C++? I would like to take up a challenging project . Also I have changed my compiler from turbo C++ to Dev C++ but i cannot figure out how the output can be seen ie …

Member Avatar for Narue
0
184
Member Avatar for rontab68

Hi. I wanted to save an array elements to a text file using Microsoft Visual C++. But I cant seem to put the data into the saved file. I have this part of the code to initiate the save as dialog..Pls help.Thanks void DATADlg::OnSave() { CFile f; char Filter[]= {"DATA …

Member Avatar for rontab68
0
153
Member Avatar for Lippy

I am learning C++ using Stephen Pratas "C++ Primer Plus" (excellent book btw). However i am stuck on exercise 6 chapter 4, where in essence i just have to use new to allocate the array of structures dynamically. I can allocate a single structure dynamically, however i still do not …

Member Avatar for Narue
1
203
Member Avatar for Kanvas

Write a program that, given a file of text (called poems.dat), will read in several lines of text, until end of file is reached and display a table indicating the number of occurrences of each letter in the alphabet in the text. For example, the phrase “This is great fun!

Member Avatar for Lerner
0
208
Member Avatar for hu_4life

Hello! I'm new to the site and I'm having trouble compiling my program. I was hoping that somebody can take a look at my code and try to point me in the right direction. It's a charge account program that consist of using a repetition control structure. Here are the …

Member Avatar for hu_4life
0
2K
Member Avatar for mhm_ra

:lol: hello i want to show the time in a certain program in part of seconds but i don't know,can you help me in solve this problem? thanks

Member Avatar for WolfPack
0
448
Member Avatar for Mr Violent

I'm using windows sockets 2, and I've been able to write a server using a client array of sockets to hold more than 1 client at a time. All of this is fine and dandy, I can have multiple clients from the local machine connect to 127.0.0.1 without a problem. …

Member Avatar for Mr Violent
0
91
Member Avatar for pete0

This code below suppose to repeatedly prompt the user for an hour number and if the hour is “free

Member Avatar for dubeyprateek
0
93

The End.