49,761 Topics

Member Avatar for
Member Avatar for mariaprabu

Hi, While compiling error found. Please give a solution as soon as posible. CODING: ---------- [code=c] #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> #include "delayImp.h" // // Local copies of strlen, memcmp, and memcpy to make sure we do not need the CRT // extern "C" static inline size_t __strlen(const char …

Member Avatar for mariaprabu
0
350
Member Avatar for addicted

pls i will like you to help me with something i was practising with c++ classes and i created a class interface called GradeBook, you know that i will need a source file to write the details of the implementation of the public functions? so in the source file i …

Member Avatar for WolfPack
0
195
Member Avatar for raj157

Hi i need help in c++ vectors ... if you have a vector lets say 1,4,5,6,4,6,7 and you have to remove the duplicate vectors i.e to bring it in the form 1,4,5,6,7 .... i tried the double nested loop and trying to get the first vector and comparing with the …

Member Avatar for ~s.o.s~
0
127
Member Avatar for Amanda21

[code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; const double PRICEA = 9.95; const double PRICEB = 14.95; const double PRICEC = 19.95; const int ONE = 10; const int TWO = 20; const double EXTRA1 = 2.00; const double EXTRA2 = 1.00; int main() { int hours; …

Member Avatar for Amanda21
0
106
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
354
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
89
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
224
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
186
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

The End.