51,593 Topics

Member Avatar for
Member Avatar for thekashyap

Hi Guys, I was just reading up Lippman to learn more C++ and came across the third syntax of new operator called "placement new". I have a specific problem where I thot I'll use it, but it turns out to be a total fiasco. :). My requirement is: I need …

Member Avatar for vijayan121
0
306
Member Avatar for kylcrow

Hi, I am trying to compile some code using a g++ GNU Compiler, and it keeps complaining. Other people have told me the exact same code compiles with their compiler. Anyone know why? Here is the code... [code=c++] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; char getUserChoice(); char …

Member Avatar for kylcrow
0
132
Member Avatar for rapperhuj

how do i compare dis to a source code..?? The Database: AF - Afghanistan AL - Albania PH - Philippines: Smart, Globe(country's telephone operator) US - United States: Digicell, Movistar The ouput must be: Enter Country Code: PH Philippines: Smart, Globe pls.. give me some source code..

Member Avatar for WaltP
0
173
Member Avatar for Masood Ali

I m using oracle pro compiler to connect to the database and execute dml statement in a C++ program using visual studio 2005. when this procompiler connects to database, it creates a communication area known as sqlca. I have connected a file named test2.cpp, to databse using this compiler. Till …

Member Avatar for Ancient Dragon
0
192
Member Avatar for T-Fizz

Hi, I am writing a program that needs to search particular strings in a text file. The strings are typed in a text box by the user and then when the text file is opened, using fileDialog, the program searches that file using the string in the text box. I …

Member Avatar for Ancient Dragon
0
135
Member Avatar for squinx22
Member Avatar for Ancient Dragon
0
29
Member Avatar for shibam

Hi, I want to develop software for interactive map ( not world map) however I don't know which language can be used for also I want to make database and this data will be updated frequently.. if some one would like to help me how to figure it out I …

Member Avatar for shibam
0
110
Member Avatar for MadsenAim3r

Hi, this is Chris, and I was hoping that you guys could supply me with the code (yah, I know that you guys don't do homework, but this is an exception? :D) for making a simple "Hello World" program? Even one that asks answers of the user (for example, "Whats …

Member Avatar for John A
0
98
Member Avatar for youngone

This assignment I must read this .DAT file the instructor has given to me, and print out the information from it. The .DAT file is for a two-way array It has 6 rows and 8 colloumns well I have ran into a couple of problems [code] #include <iostream.h> #include <fstream.h> …

Member Avatar for John A
0
135
Member Avatar for squinx22

just asking where could I get complete tutorials about c++ application making through the net.. Ur help is highly appreciated.. thanx... :?:

Member Avatar for John A
0
76
Member Avatar for Reema_Hamed

i have to do this assigment by the next monday...;) i need to develop a test bank so i have to generate : 1-100 arrays of size 10 with randomly distinct numbers from (0-9) 2-100 arrays of size 50 with randomly distinct numbers from (0-49) 3-100 arrays of size 100 …

Member Avatar for Reema_Hamed
0
191
Member Avatar for addicted

hey, it's me again, i need help with creating a header file for some functions so that i can use the functions in some other programs.... for example a header file that will include the function prototypes that i can access... I need the syntax for it.....:)

Member Avatar for John A
0
101
Member Avatar for naya22

I have a problem: Here is my program: [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <conio> using namespace std; int main() { char choice; string name; int hours; double charges, total; cout << "\t\tInternet Service Provider\n"; cout << "\t\tSubscription Packages\n\n"; cout << "A: For $9.95 per month, …

Member Avatar for naya22
0
174
Member Avatar for kylcrow

I am writing code for a homework assignment. I have to write a function, and in the function prompt the user to enter either rock, paper, or scissors. I did it successfully declaring a char (choice) globably, but I was told this wasnt a good idea, even though it worked. …

Member Avatar for kylcrow
0
162
Member Avatar for kylcrow

Ok I am writing a Rock Paper Scissors game for my c++ class. I have done most of it, but now I am stuck. I need to keep an overall score for the computer wins, user wins, and ties for as long as the user wants to keep playing. After …

Member Avatar for kylcrow
0
1K
Member Avatar for squinx22

how do i compile a project with files/codes in a subversion.. suppose I have these files in a version control: folder/implement.cpp folder/head.hpp I want to compile my main.cpp with these files What I did is: $ g++ main.cpp ../svn/folder/implement.cpp -I ../svn/folder/ -o main It doesnt work... Pls give me link …

Member Avatar for WolfPack
0
106
Member Avatar for maher123

can any 1 of make a program in which there is a calendar which can go on the day, show the day, calculate the day,save the notes on the particular day PLZZZ. USE THE FOLLOWING FOR loop; if then; switches; array 1D ARRAY 2D ARRAY 3D STRING AND ALSO TRY …

Member Avatar for John A
0
52
Member Avatar for Mini_The_Great

How do you change curtan text in a text file? example: I have the user enter there name into data.txt and then have them enter there age in to data.txt. Then they grow up and they enter there age again, but instead of redoing the whole thing, I want it …

Member Avatar for Ancient Dragon
0
94
Member Avatar for Mini_The_Great

[code=C++] ambiguous overload for 'operator>>' in 'std::cin >> file' [/code]??? I'm going CRAZZZZYYYYY!!!!!!!!!!!!

Member Avatar for Ancient Dragon
0
64
Member Avatar for Savs

Is there a way to read the long answer from server not using non-blocking sockets? The problem is that recv blocks if server stops to send. [CODE]while(true){ n=recv(skt, buf, BUFFER_SIZE,0); if(n<=0)break; buf[n]='\0'; std::cout<<buf; }[/CODE] So, how to break from while(true) before recv() blocks? My experiments with select() failed. =(

Member Avatar for Savs
0
124
Member Avatar for kpack08

[COLOR=#555555]Hi I was assigned a project in my C++ class. the project is to write a program using arrays. I have to write it for a plane that has 15 seats. Seat 1 to 7 is first class and seat 8 to 15 is economy. The program should be able …

Member Avatar for ~s.o.s~
0
165
Member Avatar for Mini_The_Great

Ok i just started C++ about 2 days ago and I have somthing not working and somthing I need to ask, hopfully somone can help me. Im making a dll to use with a gamemaking software called gamemaker that support using dll's. oh ya, im using Dev-C++ First, This is …

Member Avatar for Mini_The_Great
0
126
Member Avatar for addicted

hey, its me again, i was thinking of asking you this questions since.... I study C++ by myself without any tutor apart from the help i get here... although i understand everything i read... and i solve most of the exercises easily .. except few... i don't know.. is this …

Member Avatar for mariocatch
0
120
Member Avatar for Matt Tacular

Hey, I was just wondering how to get a variable assigned a random number within a certain range. I tried the rand, but I seem to get the same set of numbers everytime I run the code... I did some research on random numbers in C++ and understand the whole …

Member Avatar for Matt Tacular
0
73
Member Avatar for SpiderLocMTGO

Whenever I try to compile my code in Visual C++ 6.0, I get three errors: driver.obj : error LNK2001: unresolved external symbol "public: __thiscall Rational::Rational(int,int)" (??0Rational@@QAE@HH@Z) Rational.obj : error LNK2001: unresolved external symbol "public: __thiscall Rational::Rational(int,int)" (??0Rational@@QAE@HH@Z) Debug/driver.exe : fatal error LNK1120: 1 unresolved externals My code is: [code=C++] // …

Member Avatar for mariocatch
0
88
Member Avatar for rapperhuj

HOw do you compare 2 strings without using strcmp...??? would u please give me an example and how it will work.. THNK YOU Very Much!!:S:X

Member Avatar for wise_monkey
0
120
Member Avatar for Osama Mehtab

I have wirtten the program , it executes but the only error it has is that when I run this program it is not proceeding further after entering a required data (some type of logical error :'( ) [ #include <iostream> #include <string> #include <conio.h> using namespace std; class publication …

Member Avatar for fulyaoner
-1
126
Member Avatar for stonecoldstevea

Need help urgenlty -please I'm new to the forum and request help I need to write code containing a for loop from 1 to 30.everytime the loop is executed, the answers of one respondent to each of the 3 questins, should be inputed - Q1. how old are you, Q2, …

Member Avatar for thekashyap
0
271
Member Avatar for MukeshZ

Hi, I want to calculate 2's complement [ Negate all bits + 1] of BYTE array in c++ or VC++ firstly i am adding all elements of BYTE array and assigning it to integer variable now i want to calculate 2's complement of it. How can i do this plz …

Member Avatar for MukeshZ
0
495
Member Avatar for rajeev chaubey

iam facing problems in making special figures or series like pyramids of numbers n similar figures using loop. plz hep me to get out of this prob.

Member Avatar for Ancient Dragon
0
29
Member Avatar for squinx22

how could I connect the saved implementations in subversion to the main/test program outside the subversion? I want to use the saved file in the subversion as a library so that i could use it in any programs... tnx in advance...

Member Avatar for thekashyap
0
115
Member Avatar for Elfshadow

I have trying C and so far it's gone great but this has been driving me mad today. I could swear scanf worked earlier but its crashing my programs? I know you get this problem when you forget the pointer thing & but this should work [code] #include<stdio.h> int main() …

Member Avatar for Elfshadow
0
130
Member Avatar for Dani

I'm taking an Operating Systems course in which I need to write some really in depth programs (more specifically, along the lines of a terminal based program which implements many system level unix-like commands). However, the catch is that this must be written in straight C, which I have no …

Member Avatar for Elfshadow
0
572
Member Avatar for MadsenAim3r

well, I'm using a book called "Learn C++ in 21 days" and it's working out great so far. The only problem is that when I type in the code from the book, letter for letter, many errors pop up. Is this book made for a previous version of C++? It …

Member Avatar for MadsenAim3r
0
275
Member Avatar for ntredame

I am having trouble with inheritance. I am wanting to use fullName.h as the base class and call the functions print and setName into student.h. The problem is that I am getting errors that I can not figure out. The errors are: [I]student.h(22) : error C2352: 'fullName::print' : illegal call …

Member Avatar for ntredame
0
124
Member Avatar for Tauren

Do you think the C++ Programmer Primer is a good book and will teach me alot of information?

Member Avatar for John A
0
87
Member Avatar for soultron

I'm trying to port some code written in MS Visual C++ 8.0 (the version is copyright 1998, I know that for sure.) into MS Visual C++ 2005 Express. I've been having trouble trying to translate the code though. I've been using #include<random> as a header to generate random numbers. After …

Member Avatar for soultron
0
152
Member Avatar for iamyoyo

I am writting the fallowing program: The program is working find; however I can't get the funciton to calculate the total and the tax. can someome help me please. Here is the code... [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iostream> [/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<string> [/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip> [/COLOR] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] showMenu(); [/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std; [/COLOR] [COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] menu = …

Member Avatar for John A
0
143
Member Avatar for MukeshZ

Hi, I am writing code in c++ for sending and receiving messages through ports. I have written code for opening port as hComm = CreateFile(portname,GENERIC_READ | GENERIC_WRITE, 0, 0,OPEN_EXISTING,0,0); this is done , but Now I need to send the message to be send to Port. also need to get …

Member Avatar for Salem
0
206
Member Avatar for ganesh_c
Member Avatar for Lerner
0
50
Member Avatar for sukhmani

hello I'm making chess in c++. I have to submit a report and it should include system development life cycle and detailed design....if some one cud please help me out wid it.... plz mail me at[EMAIL=<snip> sukhmani

Member Avatar for stymiee
0
94
Member Avatar for phatee

Hello everyone, i just signed up with Daniweb hoping you guys give help me out. I'm reading c++ primer plus(4th edition) and needed some help with a program exercise on chapter 9. well here it is. 2. This the namespace [code] namespace SALES { const int QUARTERS = 4; struct …

0
64
Member Avatar for rapperhuj

AHMMM... HI guyz.. ladies and gentlemen ... thank you for responding at my 1st post hir in daniweb site...ahmmm.. i really apreciated it.. please give me some suggestion..comments and solutions to this problem briefly... heres my codes... MY PROBLEM is.. how to configure the country full name and its coordinate …

Member Avatar for thekashyap
0
91
Member Avatar for sasucker

So in class we're making a pong game using the curses.h library. So far I've managed to make the ball move around and bounce, hit the paddle, determine the number of blocks/misses, and so forth. The only trouble I've had is having it dynamically update the number of blocks and …

Member Avatar for sasucker
0
742
Member Avatar for squinx22

what does subversion mean? how could I apply this in my programs? thanx...

Member Avatar for squinx22
0
100
Member Avatar for maverick786

Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the length of my queue. I started getting compilation errors when I included a length …

Member Avatar for John A
0
200
Member Avatar for tosik

hi there ! im new here and i wish to stick around for a good while !! and would like to ask you ! can u help me with this (i need this code to change a bit ! but still work in same way!! (im using c++) plz anyone …

Member Avatar for Ancient Dragon
0
143
Member Avatar for CRD

could someone please explane what a pars error is in C++? Thank your consideration. Dick

Member Avatar for Aia
0
104
Member Avatar for chubbywubba

I have these two class and I have to make the Dynamic3DArray class a template. I started it but now I am lost and I do not know where to go or what to do. I tried looking online but nothing I find I can seem to understand. Can someone …

0
69
Member Avatar for the_glitch

I originally joined this site almost a year ago so i could find out the name of the GUI library that's in most compilers. Didn't get much help back then. But I hope that will change. I'm making a sudoku game in C++, so obviously I need a matrix (or …

Member Avatar for iamthwee
0
231

The End.