49,757 Topics

Member Avatar for
Member Avatar for cassie_sanford

I have a title that is read in from the keyboard. I need to put it in quotation marks but i dont know how to do that...for instance, my program asks the user to put in a movie title and they input the title. Then i have to display the …

Member Avatar for Comatose
0
158
Member Avatar for Jayrrus

this is my struct [CODE] struct CropType { string crop; string farmer; string color; string order; }; CropType myCrop; [/CODE] and this is my tree [CODE] struct TreeNode { CropType info; TreeNode* left; TreeNode* right; }; [/CODE] how do i compare a string within my struct like crop to a …

Member Avatar for Jayrrus
0
94
Member Avatar for kartik14

Hi, I'm trying to get [URL="http://www.cgal.org/"]CGAL [/URL]working with VS 2005. So, I installed the [URL="http://www.boost.org/"]Boost [/URL]libraries as well as CGAL and tried to run the following example program: [ICODE]// file: examples/Polygon/Example.C //-----------------------------------------------------------------------// // This is just a simple example that demonstrates how to use the // class CGAL::Polygon_2. //-----------------------------------------------------------------------// #include …

Member Avatar for jencas
0
219
Member Avatar for asweetroxxi

i have to use an array for this and when i run my program my computer starts to spit out number can someone help me. the critia is that it can read from base 2-9 and will give me the answer in base 10. [code] #include <iostream> using namespace std; …

Member Avatar for Freaky_Chris
0
75
Member Avatar for billchow24

I am recently writing a doubly link list by C++ However,I don't know how to perform shuffle as the following: Places all the nodes in odds positions before that in even ones. For example,after executing shuffle, the list {a, b, c, d, e} will become {a, c, e, b, d} …

Member Avatar for Freaky_Chris
0
852
Member Avatar for Everlong

I need some help with a project. I'm trying to print out all possible combinations of a number grid. For example: 1 3 2 5 4 2 4 3 1 5 5 3 4 2 3 4 3 1 5 2 5 3 4 1 2 The numbers are randomly …

Member Avatar for Everlong
0
220
Member Avatar for cassie_sanford

I am trying to right align my numbers to make them look like this: [TEX] Total Collected: $ 26572.89 Sales: $ 25068.76 County Sales Tax: $ 501.38 State Sales Tax: $ 1002.75 [/TEX] The problem is i dont know how to format it in my code. Here is my code …

Member Avatar for vmanes
0
110
Member Avatar for UGndLord

Hi! This is my first post here :) and I'm not good with english :) I hope that you will understand :) I'm trying to enter a string with only numbers. I solved this but i dont know how to enable delete (backspace button) ? I solve and this problem …

Member Avatar for UGndLord
0
121
Member Avatar for kristjan84

My task is to write a command line program, which has to try and delete a file which is in use. The reason for this is because I am writing a tool which is used for removing malware, and it is very time consuming to have to load up a …

Member Avatar for Comatose
0
80
Member Avatar for mtramnes

I tried to search for other threads to answer my question but couldnt come up with anything that I could think of to describe what I was looking for well. My assignment is this: Write an application that shows the sum of 1 to n for every n from 1 …

Member Avatar for mtramnes
0
151
Member Avatar for daviddoria

I have a function that I call recursively, but I want to keep track of a maximum through the entire process. This is what I am doing: [code] void Intersect(double &MaxDistance) { if(something) MaxDistance = something; Intersect(MaxDistance); } [/code] Is that correct/reasonable? Something doesn't seem to be working and I'm …

Member Avatar for vmanes
0
155
Member Avatar for OrionImprisoned

Game description here:[url]http://www.google.com/url?sa=t&source=web&ct=res&cd=11&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBreakthru_(board_game)&ei=dXeTSZH9KJmatwe2i_DiCw&usg=AFQjCNGMFXvDxyuxmi8PrdyGneGpX5SNRA&sig2=pdq6w2j03qSNW-9gQio83g[/url] Variables/functions needed to be known: m_count: turns taken (0,1,2) x,y starting coordinates of a piece h,v destination of said piece get() returns integer 0,1,2 [empty,gold,silver] sideSwitch() resets m_count to 1 and turn to the opposite player. ___ [B]Problem:[/B] First pieces started disappearing: fixed game wasn't ending when …

Member Avatar for OrionImprisoned
0
207
Member Avatar for Himerz

Hi people. I have this code and I am stuck on trying to get a 'call by reference' to work properly. I need to convert Celsius to Fahrenheit and Fahrenheit to Celsius. I am not sure what is wrong with my code. Remember that I have to use a function …

Member Avatar for DemonGal711
0
173
Member Avatar for massivefermion

Hey I want a code for a please wait with dots in front of it (writes some and delete them and starts again) or a / or \ that rounds. thanks

Member Avatar for ArkM
0
133
Member Avatar for h3llpunk

Hi, I tried creating multiple bitmaps on top of each other but cant seem to get the result i want: currently i have one bitmap that is the background and another bitmap that is supposed to be an animal and will be on top of the background. this is my …

Member Avatar for h3llpunk
0
201
Member Avatar for shikhakenue

I have to write a code in Native C++ using which i have to load the contents of an XML into GUI and write back the changes done (pertaining to parameters) into another xml which is a replica of the loaded XML. The usage of TinyXml is a must. Please …

Member Avatar for Salem
0
78
Member Avatar for PaulThomas

Hi, I am a beginner of C#. Currently, I am doing a project of capturing image from a 1394 camera and I used the CMU 1394 camera API to get image from it. As the API is written in C++, is it possible to use in C# by using the …

Member Avatar for ddanbe
0
36
Member Avatar for prateek_one4u

Hi, I am designing a class having interlinked object...a sort of tree. The code for each element of tree looks like : [code] Class C; class Element { public: int key; string payload; C * next; }; [/code] But the object of Element is becoming too heavy because of use …

Member Avatar for StuXYZ
0
88
Member Avatar for tope007

Am a final year student of an institution, i need a computer science based project topic and someone to put me through too. Please help me, is urgent !!!!

Member Avatar for Nick Evan
0
45
Member Avatar for shamila08

Hello! i got this code. However i'm really not familiar with memcpy function. Can anybody can show me the other way to write that code without using memory function? [code=cplusplus] void rightRotate (int k, int n) { char temp [2*MAX], *saveptr; saveptr = num+k; // cout << "k" << k …

Member Avatar for StuXYZ
0
162
Member Avatar for ozan

Hi, I am using Windows Vista as operating system and Microsoft Visual C++ 2008 Express Edition as an compiler. I need a matrix library.Could you suggest me any library that I will easily configurate and link with my compiler. For example I need to take square root of a matrix.Because …

Member Avatar for ArkM
0
160
Member Avatar for Rabia Iqbal

Peace be on all the readers, i want to read a dbx file from Outlook Express in C++ or even in C#. But i dont know how to do this. Can anyone help me please !!!!!!!

Member Avatar for Rabia Iqbal
0
110
Member Avatar for DJPlayer

asked to do something that is I suppose a little strange. maybe because it's out of the blue and never tried it before. Essentially take a .txt file and split it up into 4 files. (no criteria on size, readability etc.. etc. ) Just split it up.. give each a …

Member Avatar for DJPlayer
0
112
Member Avatar for Stefano Mtangoo
Member Avatar for Stefano Mtangoo
0
92
Member Avatar for astropirit

Hello all! I am getting my feet wet at working with ftp. I am working with the WinINet library. This is what i have so far: [CODE=syntax] #include "windows.h" #include <iostream> #include "wininet.h" using namespace std; int main() { const char* apphndl = "ftper"; char* wrkingdr; DWORD buffer[100]; HINTERNET handle,handle2,handle3; …

Member Avatar for nucleon
0
117
Member Avatar for PoZHx

Ok, what i'm wanting to do is read a variables from another process ( not modify it ....just read it and output it) so e.g. test.exe: int main(){ int test = 1; return 0; } how would i write a program to read from the process (test.exe) and check what …

Member Avatar for PoZHx
0
96
Member Avatar for hybrid87

I get this error message while I'm trying to use copy constructor, I understand why the error message is showing but I don't know how to resolve it. #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <string> #include <ctime> #include <cmath> #include <vector> #include <cassert> using namespace std; class …

Member Avatar for Freaky_Chris
0
189
Member Avatar for iansane

Hi, I have read about using sprintf and tried it but can't make sense of how it works. I have a double with the value 16.525 . I want to cout only 16.53 I also tried setprecision() and it just cuts off the 5 on the end which won't display …

Member Avatar for vmanes
0
731
Member Avatar for axfv

I'm trying to get info about users in Active Directory using C++. In particular, I'd like to retrieve the EmployeeID property, but it doesn't seem to work. I know for sure one user has a value for the EmployeeID. If I look for FullName or LastLogin, I get the values, …

Member Avatar for axfv
0
176
Member Avatar for En-Motion

I'm trying some code with classes but get these errors: overloaded member function not found in 'Point' 'Point' : no appropriate default constructor available [CODE]#include <iostream> using namespace std; class Point { public: Point(float f_x, float f_y, float f_z); private: float x, y, z; protected: }; Point::Point() { cout << …

Member Avatar for En-Motion
0
1K

The End.