49,761 Topics
| |
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 … | |
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 … | |
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 … | |
[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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
Hey guys, Is there a was to show every process running using C++? Or to see if "X" process is running? Thanks | |
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 … | |
[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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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! … | |
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 … | |
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; … | |
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? | |
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. | |
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: … | |
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 … | |
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; … | |
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 … | |
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. … | |
:-| 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 … | |
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 … | |
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 … |
The End.