- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Programming, Sports, Gaming, Anime
When you want to remove extraneous characters from an input stream in C++, it's usually because you mixed formatted and unformatted input methods. The formatted method would leave a newline in the stream and the unformatted method would consume it and terminate successfully, but fail completely to do what you … |
|
Ok so I've used function pointers for some time. I was trying to figure out if this was possible. First. It IS possible to convert a function pointer into an array of bytes. It is also possible to reconstruct that function with the bytes in that array. I would like … |
|
[QUOTE]Write a program that uses a class named Rectangle. The class has floating point attributes length and width. It has member functions that calculate the perimeter and the area of the rectangle. It also has set and get functions for both length and width, The set functions verify that length … |
|
I programmed this vector class to support different types and different amount of dimensions. (class T,int D) D is the dimension. I don't use templates much and I'm running into an error, my constructors aren't working. Here is my class [CODE]#include <stdio.h> #include <stdarg.h> template <class T,int D> class Vector … |
|
Well I don't have any specific question. I've been writing a chess game and can't seem to figuire out what the problem is with it! I tried debugging it for a few hours now and am about to give up altogether and rewrite it. The problem occurs seemingly randomly when … |
|
This may seems like a lame question but I have yet to find something online helping me with my problem. Many websites you go to (excluding this one) instead of putting bla.php?id=2 they will have a url that looks like its in a folder or something like: /bla/2 An example … |
|
Hey guys, First post here. This community looks create. I'm working on a final school project and we must move the cursor to a designated position without the use of: mouse_event() SetCursorPos() we then need to perform a check to say if the position is correct with the numbers we … |
|
Hello, Recently I've been doing some Windows API programming and I came across a problem. I want to make a console program that accepts commands, when the command 'win' shows up it will create a window with some automated features. Lets say I had a command sendfile [file-path] [where]. I'd … |
|
okay so here's the little piece of code that would be useful in a sudoku program that i'm making... this function leftover is simply extracting the set minus of two arrays. i don't know if logic's been having any problem but i think its pretty simple clear. oh, and i'm … |
|
As we all konw that Mozilla's next-generation web browser - the final version of Firefox 3.5 is released on Jun 30, 2009. The new browser bring us many new features, improvements and unexpected surprise. Supporting new web technologies, improving performance and ease to use. According to SunSpider data,the speed of … |
|
Hi guys, I'm really sorry to bother you with a simple question. I'm doing an assignment with operator overloading at the moment & seem to not understand how operator+ should be used in regards to my program. I understand the point of it & how to get it when using … |
|
Hello. For one or two of our Windows XP Home Edition profiles (too many kids), but not all profiles, we've been getting a Windows Defender Warning stating WD has "detected programs that might compromise privacy or damage our computer." It names "TrojanDownloader:Win32/Renos.DZ." Paired with this is a 'b.exe' message stating … |
|
My first attempt at 2-dimensional arrays is not working out so well. We are to simply initialize an array and print out the results. My problem is that the data contains text and numbers.....column header is car color, row header is car make. I am getting error for lines 19 … |
|
Hello guys, I'm creating my own website-it's coming along very well but I'm stuck. There is a login, so that you can login to your account. Each account has an access of 1-10, if your access is 0 you are not logged in. When you put your username and password … |
|
Hi, I have a program that I am using to convert a string into binary. My current code is as follows: [CODE]int main(void) { string userInput; cout << "Enter a string to be converted:" << endl; cin >> userInput; for (int index = 0; index <= userInput.length(); index++) { cout … |
|
I've worked with making classes, but I've never had to use a class in code that I write, so I'm having a hard time. [CODE]#include <iostream> #include <string.h> #include <iomanip> #include <ctype.h> #include "String2.cpp" using namespace std; const int MAX_WORD_LENGTH = 254; // The type definition below permits much easier … |
|
Hello everyone. Im sure this is a simple winsock question but maybe im wrong... I searched everywhere and keep hitting dead ends. Im just learning how to use winsock and still have yet to find a good tutorial. But i found a class which i will start with. Only problem … |
|
If you have a PC shared with your friends, your brother or your cousin; your private files, videos and images are always at risk of getting seen by them. An easy way to protect your file from others is to make them “super hidden”.Super hidden files/ folders become system files … |
|
Hello, I have my own website where I make programs and put them up on my web page, it has info on the programs ext.. I also allow other people to put up they just have to e-mail me with a specified template. But I want to make this easier … |
|
Microsoft Update wants to install the latest version of Silverlight (KB970363) on my computer but every time it goes i get the same error. (A picture of the error is attached). I tried browsing to the folder, but it still did not work. I tryed uninstalling so i could just … |
|
Hi, I have designed one html page (home) with CSS. I have four more pages in html and want my heading and menus to be repeated. How should i do it? Do i have to write all the heading and menu contents in each of my pages or is there … |
|
When I first started using Windows Vista I ran into this problem. I couldn't find where the "Run" link was! I finally had to google it...(having not known the hot keys to get it all these years... tsk tsk) So in case you have just bought/installed Windows Vista (poor soul) … |
|
I have 2 binaries - a java binary that requests a microsoft word doc from a c++ binary. The C++ binary opens the word doc in binary mode, reads x no of chars and returns chars to java binary. Java binary eventually receives all data and writes data using filestream … |
|
CString constructor or assingnment or serialization of CString causes the application crash in a multi-processor environment,(this happens in a heavily loaded condition when more than 500 threads are running) whereas it does not cause any problem in single processor environment. |
|
I am trying generate even fibonacii numbers less than four million, but I keep getting negative numbers at some point and eventually it converges to a positive answer, which is obviously wrong. Can anyone please help me out? #include <conio.h> #include <stdio.h> void main (void) { clrscr(); int f1=1; int … |
|
Hi, I'm looking for some help with this short program I am writing... I'm trying to make the sure that the user enters a number when it asks for the temperature in Celsius, and when the user enters a number it works. However if a letter is entered it all … |
|
Hi, How do I use the generator in the file? I keep randomc.h as a header file in the Visual c++ project. My project has several header files and several .cpp files, many of which require to use the random no. generator. I have copied all the files in the … |
|
Hey C++ guru's... I'm pretty new to the C++ world and would really appreciate some help... ... I'm trying to build a general tree (a tree with one root and N children), I've written the code and compiled it quote/un-quote successfully... ...I say that because I am faced with a … |
|
Hello developers, I have been playing around with C++ and wxWidgets for a little time now and I think it is time to make a little useful program I am planning to make a CD ripper and Encoder (re-inverting the wheel purposely for learning) and I plan to use CDRip.dll … |
|
I need to create two enumerations, one for the months in the year and the other for birthstones. Make a function named getBirthStone that returns the birthstone based on the month. Jan-garnet Feb-amethyst Mar-aquamarine Apr-diamond May-emerald June-pearl July-ruby Aug-peridot Sep-sapphire Oct-opal Nov-topaz Dec-turquoise Add code to call the function when … |