49,761 Topics
| |
if u pass a std::vector by value to a function, does all of it's content get copyed? thx | |
Hi guys, I have been using winhttp to download pages (openrequest, sendrequest etc.) However I dont know how to download images from these webpages at the same time using winhttp. Is it possible? If it is, could please direct me to the api or post an example? Thanks Harsha Reddy | |
Hello, guys! I got a problem here: You're given set of x-y coordinates (at lease 2 and at most 60000). You need to find out the number of positive slopes formed by those coordinates. e.g. 4(this is the number of points that you want to pass) 0 0 1 1 … | |
Thanks in advance for your help. I am writing a program that is supposed to display a menu and ask the user to enter a list of his/her favorite games, then display the games if they choose to. The problem is that when it comes to entering the names of … | |
Hi, I'm doing a program in dual core processor. I'm wondering, is it possible for write a program that is core specific..? For example, thread A only runs at core 1 and thread B only runs at core 2. I'm currently looking at [URL="http://www.threadingbuildingblocks.org/documentation.php"]IntelĀ® Threading Building Blocks (TBB)[/URL].. Am I … | |
Ok, here goes, I've got a staticwindow where I am putting the information from keyboard presses and onscreen button presses. When I run the program, I can press the keys and they show up just fine. I then press the button on the screen with my mouse which also works. … | |
Hey guys, i need some help with a hangman project for school. The outline is: make program that plays the game of hangman, read the word to be guessed into a string variable. ( The programmer must make about 10-20 words to have one randomly picked each time a game … | |
I am trying to copy a string into an array then write bits out to a file accordingly. (compression assignment). here is the code [code=c] // strnewdup(const char* s) returns a copy of a // null-terminated string, with the copy stored // in the heap char* strnewdup(const char* s) { … | |
I have written a scanner program for oberon language compiler but its incomplete,in the botton i need to write certain code to make this program work properly,so can anyone help me to make this program work properly. [code] FILE *input; int row, col; token t; char buff[bufflen]; int tabwidth; int … | |
I've been looking around the site for an answer to this, only thread i've found pertaining to it was this: [url]http://www.daniweb.com/forums/showthread.php?t=96516&highlight=how+do+i+get+my+function+to+ask+a+question+and+wait+until+the+user+presses+a+key+in+C%2B%2B%3F&page=2[/url] and that thread wasn't very helpful, so, i'm sorry if it's been asked before somewhere. anyway, onto my question: The title was pretty self explanatory, I want to know … | |
Hello all, I am writing a program that reads in from a file and depending on the first character read in, it will then read in other data and make calculations. The file has data similar to "C 10 or T 10 20" The letter being the shape and the … | |
I'm implementing an [URL="http://www.objectmentor.com/resources/articles/acv.pdf"]acyclical visitor[/URL] in my project and having some difficulties with the requisite dynamic_cast. The setup looks something like this: [CODE]class Visitor; class Entity { public: virtual void accept(Visitor &v) const = 0; }; class MyClass ; class MyClassVisitor { public: virtual void visit(const MyClass &obj) = 0; … | |
I cannot assign my rawWord value to the string array. The program reads a value from testText.txt and then edits it. Then this manipulated char rawWord[20]'s value must be assigned to the string array word[i]. When i debug i see that rawWord is edited correctly, but when it comes to … | |
Please i need the code of a simple ATM program on C, please help me!!! | |
Hello just Admit in a university and new in C++ i just wanted to know how to do area for several circle How to modify the code below to do the area of circle?? here's the code: [code=C]//Calculate area of a circle #include <cstdlib> #include <iostream> using namespace std; // … | |
Okay so Im having an issue,and am not able to find the actual problem with the code. I have a runtime error at : First-chance exception at 0x008b182b in OpSys.exe: 0xC0000005: Access violation reading location 0x00000000. Unhandled exception at 0x008b182b in OpSys.exe: 0xC0000005: Access violation reading location 0x00000000. I do … | |
I am trying to get a WndProc Mapping solution to work so that I can avoid just making my WndProc static. In addition, a mapping solution is supposed to be great because I don't need to declare variables in my .cpp file, I can do it in my .h file … | |
I am trying to center the triangle, but I have no idea how. I am trying to make a triangle like below:[code] * *** **** ****** [/code](this is not the one I want, the format screws up) I kind of forgot, do i use something like printf? [CODE]#include <iostream.h> #include … | |
I have to write a program that reads in from a .txt file similar to 12345 Il 4350 (sales number, state abbreviation, amount) for the most part I dont have an issue with this, however I have to read in the State abbreviation as separate characters and ultimately alphabetize them. … | |
I'm just a 4-months newbie in C++, and I have an assignment to do a small phonebook program for DOS or FreeDOS. This is what i got from days after searching: This is CTelrecord class that would save every record in details [CODE]class CTelRecord { private: int szTime; char szName[_MAX_NAME_LEN_]; … | |
Hi, Could anyone please tell me how should I concatenate the below two: unsigned char byte2[1]="0X"; unsigned char byte0[6]; byte0="29"; | |
Could anyone please tell me how to read data from a binary file???.. | |
Hi people. I'd like to use MySQL in my application - would be an easy way for me to store users. But then I'd have MySQL credentials in my app, visible for everyone with a HEX editor, I'd suppose? And even though that MySQL user will have low privileges, then … | |
how will i code this triangle: a bcb cdedc defgfed efghihgfe pls help me | |
Hey all, Trying to get a simple LAN based chat program going (required to use UDP and multicasting). I've tried both client/server and p2p implementations, yet I still can't seem to get it working. The best I've gotten with client/server is that clients on pc1 and pc2 will connect to … | |
anyone can do case statment for stack , queue and linked in one program plz ex: void main () do { cout << "1 - stack"; cout << "2 -queue"; cout << "3 - linked list "; cout << "4 - stack with linked list"; cout << "5 -queue ....... … | |
How would I write a program that can tell what directory it is in? For example, how would I write a program that can tell if it is in C:\Windows or C:\Users or something like that. | |
So, in Visual C#, You were able to declare variables for everything to use. Like this: [CODE]namespace MrTwitterStalker { public partial class Form1 : Form { string fullUrl; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { fullUrl = "http://www.rawrs.com/"; } } }[/CODE] but for some reason, … | |
i tried to write a prrogram using array which take 5 digits as in put and reverse that digits,but that program doesn't work.below u can see my program [code] { int no[5]; cin>>no[5]; for(int i=5;i<=0;i--){ cout<<no[i]; } } [/code] try 2 correct the errors. | |
So I have this code: [CODE]String^ main = "http://www.lockerz.com/"; if(main == web->Url->ToString()){ MessageBox::Show("Hello", "WIN"); }[/CODE] and it's attached to a timer that ticks every 100 milliseconds. Oh yeah, and web is the web browser in VC++. But when I run, I get this error: [CODE]An unhandled exception of type 'System.NullReferenceException' … |
The End.