49,761 Topics

Member Avatar for
Member Avatar for blazinking

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 …

Member Avatar for WolfPack
0
144
Member Avatar for moe1983

[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 …

Member Avatar for WolfPack
0
373
Member Avatar for shadevar

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 …

Member Avatar for shadevar
0
114
Member Avatar for maharba

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 …

Member Avatar for bkelly
0
104
Member Avatar for nwiner

[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++ << " - …

Member Avatar for nwiner
0
106
Member Avatar for scharan

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 …

Member Avatar for Ancient Dragon
0
194
Member Avatar for comp_sci11

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??

Member Avatar for Ancient Dragon
0
171
Member Avatar for krayJ

[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 …

Member Avatar for dilip.mathews
0
99
Member Avatar for Shital Parab

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?

Member Avatar for WaltP
0
83
Member Avatar for NavidV

;) 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 …

Member Avatar for NavidV
0
93
Member Avatar for shekharkopuri

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 …

Member Avatar for aj.wh.ca
0
171
Member Avatar for squadjot

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 …

Member Avatar for squadjot
0
147
Member Avatar for ultra vires

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 …

Member Avatar for jim mcnamara
0
297
Member Avatar for chaosfromthesky

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 …

Member Avatar for Ancient Dragon
0
125
Member Avatar for anyone
Member Avatar for Salem
0
106
Member Avatar for savyasachi1973

dear all, i am new to vc++.please tell me how to control serial communication using vc++ in windows environment. thanks savyasachi

Member Avatar for WolfPack
0
94
Member Avatar for portege

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 …

Member Avatar for Dave Sinkula
0
4K
Member Avatar for krayJ

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 …

Member Avatar for Bench
0
84
Member Avatar for kookai

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, …

Member Avatar for Salem
0
903
Member Avatar for geek

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); …

Member Avatar for ~s.o.s~
0
128
Member Avatar for kalaichris

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... …

Member Avatar for ~s.o.s~
0
141
Member Avatar for CJ_NOE

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 …

Member Avatar for hollystyles
0
81
Member Avatar for djkross

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 …

Member Avatar for djkross
0
93
Member Avatar for abujunad

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 () …

Member Avatar for ~s.o.s~
0
87
Member Avatar for saman

[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]

Member Avatar for ~s.o.s~
0
196
Member Avatar for dilip.mathews

[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 …

Member Avatar for WolfPack
0
101
Member Avatar for rdubey_jsr

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; …

Member Avatar for WolfPack
1
287
Member Avatar for rdubey_jsr

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); …

Member Avatar for rdubey_jsr
0
166
Member Avatar for Blitzer

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 ??? :'(

Member Avatar for iamthwee
0
63
Member Avatar for lewisy

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 …

Member Avatar for lewisy
0
220

The End.