49,757 Topics

Member Avatar for
Member Avatar for Jasy

Can any one please help me i have been working on this program since morning but couldnot figure it out.....pls... the program reads an input file and counts the frequency of characters in it i.e. how many times each character occuring. i know how to read from an input file …

Member Avatar for Lerner
0
120
Member Avatar for raj157

hi i have this assignment in which i am lost ... if someone could help me it would be great .... i dun need someone to write the program ... just some hints ... i will try to compile it myself ... just let me know how would u do …

Member Avatar for iamthwee
0
350
Member Avatar for nottoshabi

I have a question. Eventually, I mean when I can code. I want to write tools for a 3d program called Maya. I dont know if you guys are familiar with it or heard of it. I was wondering if Dev is going to cut it, cause I also need …

Member Avatar for Ancient Dragon
0
113
Member Avatar for fulyaoner

Hi to everyone... I am told to code a Schelling's Segregation Model simulation in C++ . This is about agent simulation and let me explain shortly what it is wanted: * There is a place like the chessboard (8*8) * there are 2 kind of people , the X and …

Member Avatar for fulyaoner
0
483
Member Avatar for saleh.23

[COLOR=#000000]help me please?[/COLOR] [COLOR=#000000]Write a program that uses a for statement to calculate and print the average of several integers. Assume the last value read is the sentinel 9999. A typical input sequence might be[/COLOR] [COLOR=#666666] 10 8 11 7 9 9999[/COLOR][COLOR=#000000]indicating that the program should calculate the average of …

Member Avatar for WaltP
0
82
Member Avatar for xdfear

Hey guys, Is there a was to show every process running using C++? Or to see if "X" process is running? Thanks

Member Avatar for WaltP
0
53
Member Avatar for rodkay

Folks, Most of you can see what the below segment of code is doing, the problem I have is that the program is skipping the next line in the source file (airportsMaster) after it has processed a successful match. Is the problem because I am using getline twice or that …

Member Avatar for rodkay
0
101
Member Avatar for Fabii23

[code] #include "Object.h" #include "Entry.h" class Node: public Entry{ public: //constructors Node(); Node(int type,int size, Entry *entryArr[],Node *link); public: //abstract methods virtual bool isFull(); virtual string toString(); //public methods string toStringSimple(); Entry* insert(Entry *entry); StudentRecord* treeSearch(int searchKey); StudentRecord* leafSearch(int searchKey); void insertIntoNode(Entry *entry); //int getNumberOfInteriorNodes(); int splitIndex(); int depth(); //accessors …

Member Avatar for John A
0
67
Member Avatar for Derice

i am a newbie in C++ file processing... Any1 can guide me to search for an item(lastname) in the example below? what is [B]seekg[/B] or [B]seekp... [/B]how to use it? [code=cplusplus] #include<iostream> #include<fstream> using namespace std; void main(){ char firstname[10], lastname[10]; int age; ofstream write("text.txt", ios::app);/*actually i am not sure …

Member Avatar for ~s.o.s~
0
131
Member Avatar for spankyg

I have arranged this code in many different ways. I can't seem to make it simply print the array. I have read alot about pointers and arrays, but the explanations are scetchy at best. What exactly are the rules for properly pointing to an array? #include <iostream> using namespace std; …

Member Avatar for John A
0
122
Member Avatar for need.help

So I wont pretend it's not HW..it's a HW question.. it says: Write a program that computes the approximate sine of an angle (θ) by using the following infinite series: Approximate sine of θ = θ – (θ^3 /3!) + (θ^5 /5!) - (θ^7 /7!) + (θ^9 /9!) … (other …

Member Avatar for John A
0
121
Member Avatar for jan1024188

Hello again, I was working on Linux platform for a lot of time now and now I am moving to windows (because of job). Today I was accepted to wow project, and I have to start with developing apps for windows. I have a doubt. I dont know what to …

Member Avatar for jan1024188
0
88
Member Avatar for raj157

for regular series caluclation we could use this [CODE]{ double summand = 1; int n = 1; double sum = 1; do { summand = summand * x / n; sum = sum + summand; n--; } while (summand > 0.00001); return sum; }[/CODE] i.e for e^x= 1+x+(x^2)/2! + (x^3)/3! …

Member Avatar for need.help
0
357
Member Avatar for raj157

in a simulation program like below Program the following simulation: Darts are thrown at random points onto a square with corners (1, 1) and (−1, −1). If the dart lands inside the unit circle (that is, the circle with center (0, 0) and radius 1), it is a hit. Otherwise …

Member Avatar for ~s.o.s~
0
131
Member Avatar for addicted

i just started working on structures and i am having this problem: i created a structure "point" thus : [code] struct point { double x,y; }; [/code] i created another structure "rectangle" that contains a point as the origin like this: [code] struct rectangle { point origin; double width, height; …

Member Avatar for addicted
0
102
Member Avatar for daljeet_smt
Member Avatar for Salem
0
51
Member Avatar for jan1024188

What do you think is better for making applications? I like QT API verry much, but I dont know how compatible is with a system . I dont like VC++ because I can only use it on windows. Please help me to decide.. What do you think?

Member Avatar for ~s.o.s~
0
209
Member Avatar for felicia89

hallo!!i m new in programming and now i had given an assignment to complete.now the the problem is i dont know how to solve it.the question is how to find the max value in a list of number without using decision.that is the problem now i m facing.

Member Avatar for ~s.o.s~
0
30
Member Avatar for jnabeel

Take a odd string give output middle of string [code=cplusplus] #include<conio.h> #include<stdio.h> #include<iostream.h> #include<string.h> char func( char str1[]); void main(void) { clrscr(); char a[20],result; cout<<"enter any word"; gets(a); result=func(a); cout<<result; getch(); } char func(char str1[]) { int a,b,f; char m; a=strlen(str1); if((a%2)==1); { m=char(str1); return m; } }[/code] for example: …

Member Avatar for ~s.o.s~
0
70
Member Avatar for rdsii64

I have just completed a mortgage calculator for my intro to C++ programming class. The code compiles and meets all the instructors requirements. My future assignments will build on top of previous ones. So what I am asking for are opinions on how to write better code. My goal is …

Member Avatar for WaltP
0
111
Member Avatar for nottoshabi

I need to fallow these directions for homework but I'm stuck on some things: [code] // open output filestream for appending // get valid file name ofstream fout( getOutFileName().c_str() ); // if the file opened successfully if ( fout.good() ) { cout << " The file was succesfully opened." <<endl; …

Member Avatar for John A
0
184
Member Avatar for gackiem

hi everybody, I've got some troubles in C and i need your help In C: (test.c) Suppose i include <unistd.h> and i call function "open" ==>> it run OK In C++: (test.cpp) I'm using a framework (e.g. RTM) which is function "open" has already in it. My problem is: althought …

Member Avatar for gackiem
0
93
Member Avatar for nottoshabi

What would be the pusedo code for a program that would write data to file? Would it look something like this? Declarations of type of data you want to enter. Open the file, you want to write to. Check if the file opened. If file did not open try again. …

Member Avatar for WaltP
0
127
Member Avatar for Bahama.Mama

:-| I am desperate... Can someone help me to debug this program.. It is a dynamic allocation file ..... > Write a program that will open a sorted text file, compute how many lines are in the text file, and then create an index that will tell at which byte …

Member Avatar for Ancient Dragon
0
141
Member Avatar for JadedTortoise

OK I am wondering Can you make a variable hold an operator. Such as say +, -, / etc... And if so can that variable be used to replace an operator in an equation? for instance char a = "+"; int b = (2 a 3); thoguh that doesn't work …

Member Avatar for Ancient Dragon
0
113
Member Avatar for notfornothing21

Hi -- I am writing a program taht is supposed to input 12 integers into a program, sort them as they are entered, and then Print out the Sorted list. Second step is compute the average. I have done all that. THIRD is to delete all the integers that are …

Member Avatar for WaltP
0
140
Member Avatar for Earendil

It's my fourth day with <Accelerated C++> and I have to admit that this is WAY over my head. I picked this book because of the sticky "C++ Books" but really... this was NOT meant for beginners. (or is it just me?) Okay, enough of the whining. By taking joeprogrammer's …

Member Avatar for Ancient Dragon
0
226
Member Avatar for ngoctron

Hi,:p Someone can show me the way to controll I/O in soundcard and the way to create DTMF( dual tone multifrequency) signals ....in C/C++. How to get data from "line In" and "microphone"? and then (sampling, frequency progressing), send it to "line OUT" ? I can create a sound with …

0
64
Member Avatar for olams

Hi everyone. I am new to C++ and struggling badly. This is the first course i have ever struggled with in my life. I have problems with setting up programs and seeing the logic. Does anyone have any tips for understanding C++, and is there any good textbook or website …

Member Avatar for olams
0
113
Member Avatar for Tauren

Uhh well, I was just wondering if C++ and visual C++ are any diffrent

Member Avatar for John A
0
122

The End.