48,986 Topics

Member Avatar for
Member Avatar for CreativeCoding

In visual C#, there was this thing where you can add a settings file and refer to a setting in that settings file in your code. With that, I was able to save user settings easily. But I can't find it in C++. Is there no settings file option? If …

Member Avatar for WaltP
0
131
Member Avatar for jcps65

What up yall, Im working on this program that reads in strings and numbers from text file and store them into an parallel arrays. My program also needs to: "list each sales person ID,name,sales amount, and commissions" "list each month of the year and total sales for the month for …

Member Avatar for Salem
0
96
Member Avatar for rizzi143

13. What is the output of the following code? int x; int *p; p = new int; *p = 14; x = *p; *p = 65; cout << x << ", " << *p << endl; a. 65, 65 c.14, 14 b.65, 14 d.14, 65

Member Avatar for Salem
0
167
Member Avatar for tsy123

[CODE]#include <iostream.h> #include <conio.h> int main() create s; push (s, '#'); while (not end of infix input) { ch = get char; if (ch is an operand) add ch to postfix expression; if (ch is a '(') push (s, ch); if (ch is a ')') { pop (s); while (ch …

Member Avatar for Salem
0
147
Member Avatar for mksafi

Can you please give me sample code of a Win32 console application that will hook to Windows through the API and listen for mouse clicks (all mouse clicks in the OS; not just the clicks on the app's window)? I looked high and low for this, but couldn't find it …

Member Avatar for mksafi
0
236
Member Avatar for pinsickle

I have a weird file i/o or system() error. Here is the deal, I completed an assignment for threaded trees recently. My professor wanted us to turn in own data set we used to test our tree along with the one he provided for us. I thought I'd be fancy …

0
59
Member Avatar for mani_singh

hey guys, i need help with understandind this code-actually just some parts of it. can you explain to me what the purpose of this is: *(float*) variable = 34; i can understand the variable = 34 part just not the *(float*) part. what does it do? also what is the …

Member Avatar for nezachem
0
159
Member Avatar for rasheed1984

Respected Users. I am implementing a kind of hash table in my simulations. I have a message which contains (Timestamp, Random Number, and Location (x,y)) information. Now i need to calculate [B]H(Timestamp||Random Number||Location). [/B] I have no idea how to do that and need some starting point and help in …

0
29
Member Avatar for vishy1618

Well, I am currently learning Qt and I develop on two systems, a Mac OSX 10.5 and Ubuntu. I decided to make a small app with the default template in QtCreator (Qt4 GUI app). I put some menubar entries, and the last entry "Exit" is separated by a separator. While …

Member Avatar for vishy1618
0
111
Member Avatar for miskeen

Hello, I have a file where the data layout is known. Suppose it's like this: image1 SomeData ... image1000 SomeData ... I want to get an access to the line I want without the necessity to move across all the lines. Let's say I wanna access directly to the line …

Member Avatar for miskeen
0
96
Member Avatar for artikapri

I wanted to know if there is a function in visual studio C++ 2005, that is called on if your mouse hovers over something, and how to use it?

Member Avatar for Ancient Dragon
0
42
Member Avatar for spdbump08

Hello, I'm having a bit of trouble figuring out how to get C++ to output something to a text file. Any help would be very appreciated. Here is the code: [code] //THIS PROGRAM IS INTENDED TO GENERATE THE SQUARE ROOT OF AN INPUTTED NUMBER USING A WHILE LOOP AND A …

Member Avatar for Ancient Dragon
0
126
Member Avatar for soapyillusion

Hey guys I have a almost seemingly trivial problem yet its probally so simple. No matter how hard i try I can never seem to get the format of the cout statements to look they way i want. I always use the setw command and set precsion, even the left …

Member Avatar for Ancient Dragon
0
89
Member Avatar for JohnPhilipps

Good evening everyone, I have been working on a base\derived class C++ program in which I am trying to compare the areas of a couple of Rectangles, and once I get past the errors I am currently having, I wouldn't mind comparing the Square to the rectangle, but first things …

0
79
Member Avatar for vbx_wx

i know there are many ways to hide a console window,but all of them that i test ,they all pop for a second and disapear,how can i do so its doesnt pop at all ???

Member Avatar for Ancient Dragon
0
37
Member Avatar for Schottenhemir

I'm supposed to output a program that comes out like this: [URL="http://img638.imageshack.us/img638/4135/screen3t.jpg"]http://img638.imageshack.us/img638/4135/screen3t.jpg[/URL] And here is the top part of the code. It is supposed to read a .txt file that has the numbers of the: flight; passengers; and miles; [CODE]int flight, passengers, miles; float income, cost, profit, base, fuel; ifstream …

Member Avatar for Schottenhemir
0
207
Member Avatar for apo

how can a make the floating variable show just 4 digits i mean : 8.6540098 to just 8.654 i guess what i'm trying to say is "less decimals" :D

Member Avatar for jonsca
0
127
Member Avatar for moqbel

[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; void main() { //decleration ifstream source; ofstream target; char * box; int width, height, numlevel; string s; int amount= 100; //-------------------- source.open("1.ppm",ios::binary); while(source.fail()) { cout<<"can not open the file"<<endl; // to make sure the file is opened } source>> s; if ( s …

Member Avatar for moqbel
0
90
Member Avatar for vbx_wx

heelllo i am trying to upload a file to a ftp server,here i smy code: [CODE] HINTERNET internet; HINTERNET ftp; internet = InternetOpen(NULL , INTERNET_OPEN_TYPE_DIRECT , NULL , NULL , 0); ftp = InternetConnect(internet , "127.0.0.1" , INTERNET_DEFAULT_FTP_PORT , NULL , NULL , INTERNET_SERVICE_FTP , 0 , 0); bool x …

Member Avatar for vbx_wx
0
153
Member Avatar for gregarion

Hey guys, i am having a problem in getting to store data in a text file. I have a certain text file which contains data in this format... [CODE]Jimeno Rames James Kimon[/CODE] what i am tryng to do is to store each line into a seperate value. The problem i …

Member Avatar for jonsca
0
88
Member Avatar for jeffmt1234

I can't seem to wrap my head around what I'm doing wrong. I'm trying to create an N-ARY tree. I'm pretty sure I'm close. But the nodes are filling wrong. I have used cout to output the nodes as they fill and sometimes the nodes are filling with the same …

0
28
Member Avatar for some

Hello everyone, I have a question regarding advanced file manipulation. I am trying to make a function that will take in a number which will be the number of a record and basically take that record out and display its contents and let the user edit it. Here is the …

Member Avatar for SCarlisle
0
111
Member Avatar for johndoe444

[CODE]map<string, int> Employees; Employees.insert(map<string,int>::value_type("John A.",7582)); [/CODE] what does the value_type do? what is the difference between pair() and make_pair()

Member Avatar for johndoe444
0
120
Member Avatar for Priyanka88

hi I am having VC++ 2008 express edition downloaded few days before....will you please help me how to compile c++ source file,debug and run it....pls....hv no time to read dat help topics...pls help me out!!

Member Avatar for Priyanka88
0
142
Member Avatar for aroma7
Member Avatar for gnarlyskim
-2
100
Member Avatar for MVB

Hey guys. I'm having some issues with my Visual Studio 2008 Pro. I'm trying to compile the following code, included in the link [url]http://pastebin.com/r6WsG5r7;[/url] but, whenever I try compiling the code, I get like 5 erros: The errors are listed below. Why is it that moving certain declarations around changes …

Member Avatar for Salem
0
408
Member Avatar for sana zafar

Hi all, I need to write a program that will first read a file and then 1. Output all the words that appear in a file. 2. Treat only sequences of letters and digits as words, i.e., all other characters such as punctuation marks should be used as word delimiters, …

Member Avatar for gnarlyskim
0
118
Member Avatar for wale89

[QUOTE]Hello..can anyone help me in order to solve this problem regarding the collision that happend.. I use the modulo-division hash function and intended to use the chaining solution method to resolve this collision but i got stuck.. because i dont really have the full knowledge in link list..Can someone that …

Member Avatar for craig_ka
0
630
Member Avatar for buzzykerbox

Hey,have been having a problem with this code,dont no what to do here,trying to find the letter in the secret word in hangman.when the user inputs their choice how do i compare it with the secret word.was using a for loop but not sure [CODE] cout<<"\n\t\t *********** H A N …

Member Avatar for Fbody
0
78
Member Avatar for biggie_smalls

Hey all, I got interested in using smart pointers and tried to implement the following solution: [URL="http://www.davethehat.com/articles/smartp.htm"]http://www.davethehat.com/articles/smartp.htm[/URL] It's probably far from perfect but this is mainly a learning experience. It's a non intrusive reference counted implementation of a smart ptr. And somewhere in the article the assignment operator is defined: …

Member Avatar for Fbody
0
188

The End.