49,761 Topics
| |
Hi, I wonder how it would be possible to pass a String to the clipboard. If you normally select a textstring in for example WordPad and press Ctrl-C, you copy this string to the Memory/Clipboard so you can Ctrl-V that text somewhere else. I wonder how that would be possible … | |
I'm not even certain if I am wording my title correctly for this question but this is my predicament. I'm trying to get input from the user, it could possibly be a float value like so ###.## or it could be a character value like DNA, I/P, or F, or … | |
Greetings! So my question is: Is it possible to create your own data type? Not a class, or a structure, that builds from predefined C++ types, but your very own. For example a 128bit integer type, or a very very long floating point data type, or a binary number type … | |
The leap year thing is troubling, eg 29-02-2009 is not a leap year but it still displays a day which it should not. [code] #include<iostream> #include<conio.h> using namespace std; int main () { int d=0,m=0,y=0,r1=0,r2=0,r3=0,r4=0,l=0; cout<<"Enter day : "; cin>>d; cout<<endl; cout<<"Enter Month : "; cin>>m; cout<<endl; cout<<"Enter Year : … | |
This is the first big program I'm gonna do and so far, i have really no idea on how to go about it. Basically, I aim to create a C++ program that:- [LIST=1][*]Takes expressions of the form... [TEX](3+4(5*2)+(3/(sin 62))-4)[/TEX] or similar ones and evaluates them [*]Takes equations of the form … | |
Hello. I've spent many hours on this code and I cannot figure out why when I either declare "kot" - which will be in the code below or when I call blob_detect() which uses included .cpp with a "new" call (so to speak) I get an error allocating memory. If … | |
Hi everyone, For practice I am trying to code a simplified version of the template "std::list" but have come accross the LNK1120 + LNK2001 errors. After looking in Visual Studio's documentation and some investigation, it seems the two most common causes are: 1) invalid calls in the code to things … | |
Hello, i have been developing a game-project in Visual C++ 6.0 but now i have an extremely bad problem. When i start my game, it gets a lot of CPU usage - like 60-70%. When i start debugger it gives me a several errors, but i have no idea how … | |
Hi , I am looking for the code for student management ,Please provide me the same. | |
hi', could help me how to solv this problem: Write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree. Once the tree has been built, present the user with a menu that allows him or her to … | |
I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can … | |
Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash … | |
[B]how to display text on [U]right side of window in caption bar[/U] (titlebar) .Is there any function available to do this ?[/B] [B]plz help.[/B] [MFC] | |
[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " … | |
i can't get this to run. my math functions at the end have messed up logic. and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment. [CODE] #include <iostream.h> #include <math.h> #include <cstdlib> #include <iomanip> //here i am … | |
"I am trying to display an array of digits using rand. My final result need to be: 1) Output all digits <=40 to the left side of array 2) Output digits > 40 to the right side of array Prob: The random digits does seems to change & result incorrect … | |
Hi, How the fixed and scientific manipulators should be used in c++ | |
[URL="http://img686.imageshack.us/img686/3380/hw1.jpg"]http://img686.imageshack.us/img686/3380/hw1.jpg[/URL] Okay so I got homework from my IT programming. I am completely oblivious in programming so I need a bit of help getting me into the right direction. Here is the question to understand my flowchart: Above is the link to my flowchart. Consider N students receiving the marks … | |
i have three integers per line in a text file but when i read a file it prints four integers Code: [code] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { int clas; ifstream inf; inf.open("kash.txt"); do { inf>>clas; cout<<clas; } while(!inf.eof()); } [/code] here is the file kash.txt (no enter after the … | |
This function is suppose to randomly chose 2 out of 16 dice, swap their positions, and then chose what side of the dice is facing up. The problem is, when I run the function (I loop it 250 times). It only changes a few dice and the board looks close … | |
Hi, I have to create a program that takes 20 random numbers between 0 and 100 and sorts them in order from smallest to largest. Then, I have to used File I/O to output the list into a .txt file.My code is compiling, and I'm getting the random numbers, but … | |
Hi all, a friend told me to take a look at this board whenever I got in trouble coding. At the moment I'm studying a game, disassembling it, mapping out parts of the scripting engine, etc. I have a proxy dll which I use to hook certain functions (d3d8.dll), and … | |
Hey, I have a big problem. I want to do a program which will get a part of the screen of a program. After that It will show this small rectangle in Image component in BCB. But the problem is, it has to refresh it at least 10 times in … | |
Hi, I need your help. I'm searching for very tough C++ tests over the net. Can you send me links of such a tests. Thank you!!! | |
Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, … | |
Hi, i have to create a algorithm called find2D, to find an element x in an n × n array A. The find2D function iterates over the rows of A, and it calls the algorithm findArray shown below, on each one, until x is found or it has searched all … | |
Hey frenzz I wanna make a Web content filter as my project. I have been looking for some help from past one month. I want ur help in making my project. Please help me explaining about its implementation or provide me with some links If u can. Any kind of … | |
I wonder how the try, catch, finally function works. I know how try and catch works. What I wonder is if the try block is successful then I know that the catch block doesn´t execute. Is it true that the finally block doesn´t execute either ? [code] try { } … | |
As I see in some code having something like "[b]ClassName[u]&[/u][/b]". For example: [code] // this demo // check if a parameter passed to a member function is the object itself #include <iostream> using namespace std; class CDummy { public : int isitme ([b]CDummy[u]&[/u] param[/b]); }; int CDummy :: isitme ([b]CDummy[u]&[/u] … | |
Hey, I'm to work on GUI interfaces with C++ but I have loads of classes that I want to use, will I have to re-code the whole classes or can I still use them? + Are they hard to implement and use? Thanks |
The End.