49,757 Topics

Member Avatar for
Member Avatar for irtza

In this program: 1) an integer typed 2D array named student_scores[Rows][Cols] is initialized by providing initialization list 2) then this array is passed to a function named total_scores which recevies two aurguments .- the first aurgument is for array with explicit use of column subscript .- the second one is …

Member Avatar for usama sadaqat
0
516
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for nchy13
0
265
Member Avatar for glenc70

does anybody know how to access the solitaire playing cards in win 7 64 bit as i would like to make playing card games with c++ i used to be able to do this in xp through the cards.dll but windows 7 does not seem to have one Thanks in …

Member Avatar for deceptikon
0
133
Member Avatar for phorce

I believe there is a function which returns the max value for a double, however, I do not need this. I'm converting the following function: public void StaticCompress(short[] samples, float param) { for (int i = 0; i < samples.Length; i++) { int sign = (samples[i] < 0) ? -1 …

Member Avatar for mike_2000_17
0
8K
Member Avatar for prakhar_1

#<include<iostream.h> #include<conio.h> class counter { int count; public: counter() { count=0; } counter(int c) { count=c; } void show() { cout<<count<<endl; } counter operator++(); }; counter counter::operator++() { counter temp; ++count; temp.count=count; return(temp); } void main() { clrscr(); counter c1(15); counter c2; c1.show(); c2.show(); c2=++c1; c1.show(); c2.show(); getch(); } my …

Member Avatar for deceptikon
0
100
Member Avatar for kingkong123

I have a 2d array with 5 strings Ex: blueone greentwo redthree pinkfour yellowfive Now I want to parse these strings and get the numbers. "one", "two", "three", "four", "five" Then convert these strings to there numerical values. 1,2,3,4,5. How would I do this? I using a struct for those …

Member Avatar for deceptikon
0
226
Member Avatar for anjum1

Hello Can someone please suggest a code snippit that can create a new memu item in Microsoft Excel 2007,'s top/main menu? Thanks

Member Avatar for anjum1
0
364
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for RonalBertogi
0
439
Member Avatar for dospy

i want to construct a Message class which encapsulates and handles data for sending over a network; i want to acheive something like this: Client->Send(new CMsgPacket("Some Message", CHAT_COLOR_WHITE, CHAT_TYPE_SERVICE)); // send function deletes the data after processing it // this is the CMsgPacket class class CMsgPacket { private: int Msg_Len, …

Member Avatar for RonalBertogi
0
283
Member Avatar for prajeet10

Hi, I have an assignment that requires me to write out the code for a game. It involves 3 columns and random numbers between 0-100, so you have to place a random number into each column and as soon as the number below gets bigger, the game finishes. The main …

Member Avatar for kal_crazy
0
706
Member Avatar for manel1989

hi everyone! I have 2 applications, one coded in C++ and the other coded in java, i want to launch the one coded in c++ from the other one, honnestly i dont know how to do it at all i use eclipse and VS2010 any ideas about that??? thank YOU …

Member Avatar for stultuske
0
271
Member Avatar for kal_crazy

Q: Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. My program is able to find the prime numbers until an integer value, n, and outputs it correctly. Now how do I find the pairs of prime numbers …

Member Avatar for prakash4
0
215
Member Avatar for phorce

I might be a bit tired, but why does the following not work? class Signal { public: Signal() { } protected: std::vector<double> data; }; class Something : public Signal { public: Something() { data.resize(100); } }; class Parser : public Signal { public: Parser() { std::cout << this->data.size(); } }; …

Member Avatar for iamthwee
0
149
Member Avatar for phorce

I basically have two classes: `Signal` and `Parser` they both have differences, however, they each share the data that `Signal` has. I want to incorperate Method Chaining into the class, so my classes (at the moment look like the following): class Signal { Signal() { } Signal& Parse() { return …

Member Avatar for mike_2000_17
0
186
Member Avatar for joyvin13

What is the difference/s of **while** looping and **do while** looping statements?

Member Avatar for deceptikon
0
95
Member Avatar for Himanshu Chawla

Ques : Define the class Book with all the basic attributes such as title, author, publisher, price etc. Define the default constructor, member functions display_data() for displaying the Book details. Use appropriate access control specifiers in this program I have done some part #include<iostream.h> #inlude<conio.h> using namespace std; class book …

Member Avatar for Himanshu Chawla
0
283
Member Avatar for dominiquehelper

Exercise: Write a C++ program using do-while loop that prompts for and inputs a user entry of "Y" or "N". f the user fails to enter a correct value, the loop outputs an error message and then repeats the request for the user to enter a value. This is what …

Member Avatar for PodHunter
0
7K
Member Avatar for kingkong123

Hi, there. I have a 2D array with 208. I must concatenate the strings by twos up to index 199. So that I have 108 strings. Then I must shuffling these 108 strings. The problem is that it isn't working right. After I concatenate the strings, then shuffle, several strings …

Member Avatar for Ancient Dragon
0
307
Member Avatar for johnpadgett54

I'm trying to write this code and having trouble compiling the code I've tried everthing but doesn't seem to want to work right, can you find any thing wrong in my code? {// Overtime Pay Structures.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> …

Member Avatar for kal_crazy
0
171
Member Avatar for SpottyBlue

Can help? My casino code always fail to build. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char PlayerName[40]; // Player name int b_amount; // Current balance amount. int amount_BET; // Amount to be betted. int number; // Number bet by a player. int r_number; // …

Member Avatar for kal_crazy
0
472
Member Avatar for sonu_1

hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); …

Member Avatar for deceptikon
0
331
Member Avatar for pars99

I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance?

Member Avatar for deceptikon
0
155
Member Avatar for jbrock31

Hello everyone. I am trying to work through a programming challenge in my c++ book. I have gotten it to work, but i kind of cheated by looking at the file. I am going to past the entire code so i can be compiled, but the main problem i am …

Member Avatar for samone1228
0
596
Member Avatar for totalwar235

I am attempting to recompile a C program i programmed on linux. These are the errors i recieve: c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2275: 'FILE' : illegal use of this type as an expression c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(66) : see declaration of 'FILE' c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2065: 'sy' : undeclared identifier c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(29): error …

Member Avatar for totalwar235
0
473
Member Avatar for johngw

I have a project which has always compiled and linked OK under Borland C++Builder 6. Recently I upgraded to C++Builder2007 and now it fails to link with message [ILINK32 Error] Fatal: Unable to open file 'REGISTRY.OBJ' This project is using C++Builder purely as a C++ compiler. There are no VCL …

Member Avatar for aimuracioli
0
43
Member Avatar for GeekPlease

Good day folks, Can anyone tell me why my code only accept the first word of the input. E.g., I input Ana mae.. The output will only consider Ana as my input hence it will produce like Hello, Ana! #include <iostream> #include <string> using namespace std; int main() { string …

Member Avatar for GeekPlease
0
185
Member Avatar for Alex_13

**nestedTriangles.cpp (attached) description:** The program takes as input a pair of triangles, specified be giving the coordinates of each triangle's vertices. It then determines if either triangle is "nested" within the other, meaning that one triangle lies entirely within the interior of the other. **Pseudocode:** One triangle lies within another …

Member Avatar for rubberman
0
462
Member Avatar for shea279

k so essentially have this code [CODE]HINTERNET hInternet; HINTERNET hFtpSession; hInternet = InternetOpen(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0); hFtpSession = InternetConnect(hInternet, "ftp.freetzi.com", INTERNET_DEFAULT_FTP_PORT, "myuser.freetzi.com", "mypassword", INTERNET_SERVICE_FTP, 0, 0); FtpPutFile(hFtpSession, "C:\\log.txt", "mylog.txt", FTP_TRANSFER_TYPE_BINARY, 0); if(FtpPutFile(hFtpSession, "C:\\log.txt", "mylog.txt", FTP_TRANSFER_TYPE_BINARY, 0)){ MessageBox(NULL, "Successfully uploaded log to ftp server!", "Ftp Upload", NULL); }else{ MessageBox(NULL, "Couldn't upload log to ftp …

Member Avatar for mohd_1
0
1K
Member Avatar for chetanbhasin

I am looking for an HTTP server in C/C++ that can take data from another application and send it over the network. My basic motive is to create a command line application which takes a request type/id as input frmo the web server and generates an output which it gives …

Member Avatar for Ancient Dragon
0
635
Member Avatar for chetanbhasin

I recently tried compiling an example linked at Mongoose project's website using code::blocks and got certain errors. As I do not know where I went wrong I will list everything that I did in the process. 1. Created a new C++ console application project in Code::Blocks for Windows 2. Copy …

Member Avatar for Ancient Dragon
0
648

The End.