49,761 Topics
| |
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:) | |
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 … | |
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. … | |
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 … | |
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 … | |
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. | |
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 … | |
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. | |
please remove this post i got it thanks | |
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 … | |
[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 | | … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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. … | |
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 ? | |
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?? | |
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? | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … |
The End.