49,761 Topics
| |
hi all, I'm new to site {nice work on the forum ;) } and to c++ in general. I've started a class in the subject not to long ago and have hit a snag on one of the programing projects i was asigned to do ... I just cant figure … | |
[B][U][COLOR=#000000]part iII: project[/COLOR][/U][/B] [B][U][COLOR=#000000]Problem 1[/COLOR][/U][/B] [COLOR=#000000] [/COLOR] [COLOR=#000000]a- Compute the median of a data file. The median is the number that has the same number of data elements greater than the number as there are less than the number. For purposes of this problem, you are to assume that the … | |
Hello, This is my first post here, although I have been browsing these forums for a while now, and I must say this is quite an informative place. I have a small question that I would like to post, more to verify if I am correct or not in how … | |
I have a question. I'm writing a small program in c++ for my kid to help her with maths and to teach myself how to program. I'm using srand() to get a few random numbers for her to divide with the number she choose. All is fine until I get … | |
[code]#include <iostream.h> int fred[] = { 11, 22, 33, 44 }; int *fp; int main(int argc, char *argv[]) { for (int i=0; i<argc; i++) cout << argv[i]; cout << endl << "Hello world." << endl; fp = fred; cout << *fp++ << *fp++ << *fp++ << *fp++ << " - … | |
Hi all, This is charan new member of this team. Iam having one Question to all of you What is the difference between static and dynamic Dll and how the mechanisim of static dll goes in VC++ --------------------------------------------------------------------- [quote=neuronco]You can have a DLL without DllMain function. Its purpose is for … | |
can someone help me about creating a window in turbo c?? because i can't find anything about creating a window in turbo c! is there a site explaining or about creating a window in turbo c?? | |
[code] { int input; cout<<"Please select a number from 0 to 127: "; cin>>input; if (input<127 && input>0) MarkNumber(input); else cout<<"Please enter a number from 0 and 127!"<<endl; } void MarkNumber(int input) { int loop=0, n=0; while (loop!=input) { cout<<n; n++; //incrementing number from 0 loop++; //incrementing counter for loop … | |
I am novice of c++. How to set co-ordinates of console using c++? e.g. what to do if i wanna print pyramid of astericks at the center of the screen. should i use gotoxy(x,y) function to go to the center of the console? | |
;) Hello, I have just started to learning C++. I have a question regarding a small code snippet that I am having trouble with. I get a compiler error saying that there is a parse error before the { token. Can anyone help me with this? Thanks, Navid Here's the … | |
Hi! I am stuck with some unusual situation and am seeking urgent help. We have a backend server in C++ on Solaris 5.9 . The need is to intiate a sftp/scp to a remote location. We have the login and passwords set up. I know for non-interactive SFTP/SCP2 sessions we … | |
Hey all i'm stuck in my little project. My plan is to build a application that can interact with a q3-engine game, nothing fancy, i just want to be able to read and send to the game console. magically i managed to actaully create a .exe that does this.. (alltho … | |
My friend just gave me a c++ problem.. well the problem was to make small circles on circumfrence of a big circle that is positioned in the middle of screen... well i can get that middle of screen by getmaxx()/2 ... but all i can get to find locus of … | |
Hey I am not that well versed in C++ and just recently switched my microsoft visual program from 6.0 to the 2005 version (computer switch.) I saved all my programs and converted them over to the new program however it keeps saying LINK : warning LNK4076: invalid incremental status file … | |
send me a program to remove unnecesary space from a string in turbo c++ | |
dear all, i am new to vc++.please tell me how to control serial communication using vc++ in windows environment. thanks savyasachi | |
I've been teaching myself C++ for the last two weeks. One of the things that was difficult for me to find on google was using the left click on a certain coordinate on the screen. The goal is to eventually be able to recognize images on the screen and alter … | |
Hello, I am a beginner at C++ and need some help with arrays.. - I need to create a function that returns a random number from a sequence of 4 #s. - Then I have to loop it 1000x and print the frequency of those 4 #s. So far I … | |
I need help with this problem. I have tried writting the program, i just can not get it to run properly. Please Write a function qualityPoints that inputs a student's average and returns 4 if a student's average is 90 - 100, 3 if the average is 80 - 89, … | |
Can someone tell me what is wrong with this code? I cannot find an error, but yet the compiler crashes everytime I execute it. Convert.h [code]/*Dec to Bin and Hex to Dec*/ /* Example */ /* Convert.h */ /*Define the class*/ class Convert { public: Convert();/*Constructor: default parameters*/ void DecToBin(int); … | |
im not a pro in c++, so hope you pros out there can help me out. I can convert a bmp to grayscale but dont no how to convert it to a binary image..i mean i dont no which functions to use..all helps are greatly appreciated..thank you..this is my structure... … | |
I need to wright a program to compute the number of prime numbers in the first 50 "chiliads”. Yes sounds confusing but it just has to out put this basically. Start End Number of Primes 1 1000 168 1001 2000 135 2001 3000 127 3001 4000 120 4001 5000 119 … | |
I've been trying to fix this code for 2 days now and i still don't understand where the error is coming from. this is my stackLL.h file [code] #include<iostream> using namespace std; class Node { public: int data; Node *link; }; class stackLL { public: stackLL(); ~stackLL(); bool isEmpty(); bool … | |
I am new in C++, and learning the langauge by my self only, while practicing i come across one question for which i have no idea, the question is to calculate area and perimeter of rectangle, the code i wrote was [code] #include <iostream> using namespace std; int main () … | |
[COLOR="DarkRed"]hi 2 all, i have placed a file in a folder in BIN, How can i no that if that file is present there or not?? Do reply me soon ... Thx ..take carez n keep smiling all .. :) [/COLOR] | |
[code]#include <iostream> using namespace std; class Exercise { public: int a; Exercise(){cout<<"constructor\n";} Exercise(const Exercise& x) { cout<<"copy constructor\n"; a = x.a; } Exercise& operator= (Exercise &x) { a = x.a; cout<<"assignment operaor\n"; return *this; } }; Exercise fun(Exercise& ); int main(void) { Exercise y; Exercise z; z = fun(y); return … | |
I am reading a CSV file and parsing its content into tokens. Now i want to know how to check for End of File. I am giving my code to be more clear. [CODE][COLOR=#0000ff]ifstream file(filename); if (file) { char ch ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; … | |
Hi I need to cast string type variable to LPCTSTR type. How to achieve this. I am inserting my code for yours help.[code] [COLOR=#0000ff] ifstream file(filename); if (file) { char ch='\n' ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; string token; // token decleared string type istringstream iss(tmp); … | |
I have char that replace by number char a[10]; cin >> a; I set a at 4597 and then I want to convert it to four integer char 4597 >>> integer 4 integer 5 integer 9 integer 7 how can I do it ??? :'( | |
Hi all, I am pretty new to C++ and hope you guys can help me out. I need to write a C++ code which map a network drive (in filesystem), create a new folder on filesystem(called user101) then grant user101 full control access to this newly created folder. My code … |
The End.