49,761 Topics

Member Avatar for
Member Avatar for manel1989

hi everyone! I want to get the output of my c++ application from my jaca applacations o i use a file abs.bat to get it done i used this code in .bat: start readxmlresou.exe that commande line opens readxmlresou.exe that is in my desktop and execute it, now i want …

0
98
Member Avatar for triumphost

In the two for loops below, I want the checksum variable to hold the same value for both even though one loop starts at row 12 and another at row 0. Any ideas how I can combine these loops so that I don't have to iterate the same buffer twice? …

Member Avatar for triumphost
0
870
Member Avatar for usama sadaqat

#include "stdafx.h" #include<iostream> #include<conio.h> #include<ctime> using namespace std; int *p[10][20];// int _tmain(int argc, _TCHAR* argv[]) { cout<<sizeof(*p)<<endl; getch(); return 0; } output: 80 but i cannot understand how it work.

Member Avatar for sepp2k
0
151
Member Avatar for dendenny01

Whenever I try to run this code in turbo c++ 4.5 I recieve an error "General Protection Exception List.c 60 List(2) 0x24DF:0x0157 processor Fault" whereas when the same Program is run in Turbo c++ 3 Dos version It Compiles and Runs Propely without any error. Please Help. #include <stdio.h> #include …

Member Avatar for Ancient Dragon
0
918
Member Avatar for Sci3nc3F1cti0n

Hey guys, as the title says, this is my first encryption program. Being extremely simple, I was just looking for advice on ways I could improve it. I just recently got back into programming(I tried to learn before but unfortunately lost interest while I was still learning the basics) and …

Member Avatar for nchy13
0
419
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
517
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
365
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
708
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
273
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
473
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
606
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
474
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

The End.