49,761 Topics

Member Avatar for
Member Avatar for deepaknegi777
Member Avatar for i_luv_c++

hey guys im working on a homework problem..im done with 99% of the problem :|however i cnt figure out how to display my output(which is in dollars) using the comma my output shows >>160000 how would i make it >>160,000 um should i use setprecision??? please help thanks:)

Member Avatar for i_luv_c++
0
161
Member Avatar for newcmp

Hey, i've just joined...having trouble with a vector question.. the question asks that if a you a range of numbers, eg.6, we want to erase every third number: eg. 123456 12456 1245 125 15 1 and out we get should be as in this case 1. so far what i …

Member Avatar for Ancient Dragon
-1
86
Member Avatar for tom384

Hi folks, First a bit of context (Errors are shown at the bottom of the post): I am creating an object viewer for opengl in Visual C++ 2008 Express Edition. I have written a parser which reads the file and stores all the info I want in a Mesh object. …

Member Avatar for tom384
0
354
Member Avatar for Dabareah

Hey everyone, I need help in figuring out how to make this program work. I am attempting to reverse this TraverseList. Yet I am still encountering issues when I compile. I am hoping that someone might assist me in re-creatin the program so that it goes forward. Anxiously waiting!! Please …

Member Avatar for Ancient Dragon
0
68
Member Avatar for kavourdoukos

I've got this: [CODE]#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <sstream> using namespace std; class alfa{ private: int x; public: alfa(){ cout<<"Dimiourgithike ena alfa"<<endl; x=rand()%10; } ~alfa(){ cout<<"Katastrafike ena alfa"<<endl; } void get_x(){ cout<<"To x exei timi: "<<x<<endl; } }; int main(){ alfa* alfadi; int no; cout<<"Dose enan …

Member Avatar for mitrmkar
0
94
Member Avatar for techie929

How to find number of total child(including grand children also) nodes for a particular node in a bst using C++. Could anyone please suggest me method of doing it. Thanks.

Member Avatar for WaltP
0
39
Member Avatar for cwarn23

Hi and I am making a script but am having a slight math logic problem. Below is an example of an encoder I am working on. [CODE]for(int m=0;m<80;m++) { if(m<=19) { f = (b & c) | ((~b) & d); k = 0x5A827999; } else if(m<=39) { f = b …

Member Avatar for cwarn23
0
117
Member Avatar for SCoder1

Would it be possible to code an IP Tracer strictly for experimentation purposes? I was just wondering I know a c++ so I was just wondering if it could be done like in VC++ or win32.

Member Avatar for Salem
0
60
Member Avatar for theABCasian
Member Avatar for Zcool31

Hello everyone. I am trying to write an application that uses OpenGL (with GLFW) for graphics. It is meant to be as portable as possible, and I try not to have direct interface with platform specific things other than through GLFW (I can also use SDL). The problem is that …

Member Avatar for Zcool31
0
198
Member Avatar for techie929

[CODE] //This is what we are asked to print in the assignment of Binary Search Trees.The Nodes are printed like: F +-- D | +-- NULL | \-- NULL \-- R +-- P | +-- M | | +-- NULL | | \-- N | | +-- NULL | | …

Member Avatar for techie929
0
77
Member Avatar for rwill357

I am new to binary trees. I have been given the task to write functions to count the number of nodes, to count the number of leaves in nodes, to count the number of right children, to find the height of the tree, and to delete all the leaves of …

Member Avatar for WaltP
0
169
Member Avatar for 140chris140

Hey, I have no idea if this thread already exists. I did try to make one before but it seemse like it didn't work. So here goes ! My question is - How do I put my .o files into an object library file? I'm using c++ visual studio express …

Member Avatar for 140chris140
0
530
Member Avatar for corby

pretty much where i have many of my comments are where i need to call the functions from the player and cell class in the tictactoe class? anyone have any ideas on how to do this? [CODE]#include <iostream> #include <cstdlib> using namespace std; class TicTacToe { public: TicTacToe()//contructor initializes the …

Member Avatar for WargRider
0
657
Member Avatar for intervade

So I'm working on a linked list class, for a class I'm taking. I've basically just started working on it and I'm getting an unknown error that I really don't know how to deal with. The compiler is not returning an error in my code really, its returning a bunch …

Member Avatar for mitrmkar
0
147
Member Avatar for gajji2020

Hi i have weird doubt. My assingment is C++ program to insert and delete elements in Binary Search Tree.I am almost done wid the assingment. But the major part lies here. the strucure of the output is difficult to obtain.. i will explzin the question now. Input: F D R …

Member Avatar for WaltP
-2
136
Member Avatar for valeriy_zf

I'm confused totally... Ok, I create the class with the array: [CODE]ref class my_child { public: array<int>^ mas_1D; my_child() // constructor { mas_1D = gcnew array<int>(10); }; };[/CODE] Next, I create one more class with the variables of the previous class: [CODE]ref class Father { public: my_child dear_baby; // 1-st …

Member Avatar for valeriy_zf
0
150
Member Avatar for sonai4u

Hi, I need one of my assignments to be done in C or C+. Need someone who can do the assignment for it. Need it urgently..need the assignment done by sunday. Will pay money for doing the assignment. Please email me immediately <<Email Snipped>> thanks Raj

Member Avatar for Ancient Dragon
-7
495
Member Avatar for Kirielson

I'm having Buss Error issues. I feel that it has to do with either my deconstuctor or my insert/delete functions. I know I'm not supposed to put up whole source code, but I will put it up if needed. Assume that ItemType is an integer and Next is a pointer. …

Member Avatar for Kirielson
0
114
Member Avatar for wwsoft

hello my question is, How do you sort a vector containing a bunch of game_object* 's ? You can use STD's algorithm.sort() somehow ... right ?

Member Avatar for mitrmkar
0
101
Member Avatar for techie929

Hi, Could anyone please tell me how can i input data either from a file or stdin. If the file name is not specified the data can be read from the UNIX command prompt using stdin. I know stdin is a file pointer but how to use it please explain??

Member Avatar for Duoas
0
589
Member Avatar for suncica2222

I need start up function that will make registry entries and make my .exe app start with the windows start up.Where can I find code for such function?

Member Avatar for suncica2222
0
121
Member Avatar for angel6969

write a definition of a class named Point that might be used to store and manipulate the location of a point in the plane. a. A member function set that sets the private data after an object of this class is created. b. A member function to move the point …

Member Avatar for vmanes
0
96
Member Avatar for CppBuilder2006

temporaries: Definition: a temporary is a C++ object which is niether a constant nor a variable, but is has type. example1: [CODE]TYPE f(int a) {...}[/CODE] f(2) is a temporary. it is niether a constant nor a variable but it has a type. example2: [CODE] class A { public: A(char ch) …

Member Avatar for CppBuilder2006
0
275
Member Avatar for angel6969

Create a temperature class that internally stores a temperature in degrees Kelvin. However, create functions named setTempKelvin, setTempFahrenheit, setTempCelcius that takes input temperature in the specified scale, converts the temperature to kelvin, and stores that temperature in the class member variable. Also, create functions that return the stored temperature in …

Member Avatar for Fbody
0
2K
Member Avatar for tetron

There is probably a joke in the comment that I am missing but this post is going to give the design approaches to solving the problem posed by FirstPerson in his signature: find the last ten digits of x^x (x raised to the power of x) for all the positive …

Member Avatar for mrnutty
0
291
Member Avatar for MrYrm

Hi all, As a learning project I'm rewriting a spider i have in php to c++. One part of the spider is a multi-threaded downloader, all this downloader does is read urls from a text file download the page and save it. I would like the downloader to strip out …

Member Avatar for MrYrm
0
78
Member Avatar for Aliun

So, this is my version of battleship with single space ships instead of a ship with 2,3,4, and 5. The only issue is the cpu I programmed isn't always choosing five, or it's choosing spots not on the map, I am completely lost if you can offer any help at …

Member Avatar for Aliun
0
974
Member Avatar for aswin cp

Ive been told to do a program that prints the first [B]15 non-fibonacci series[/B] using 'while'...i got the fibonacci series correct, but cant find a solution for this... Here is my code for printing the first 15 fibonacci series... [CODE]#include<iostream.h> #include<conio.h> void main() { int n=1; int a=-1; int b=1; …

Member Avatar for mrnutty
0
1K

The End.