49,761 Topics
| |
BACKGROUND Your company is writing software for a new networking device and you have the task of managing the DNS storage and retrieval. DNS must translate between an Internet IP address such as 74.125.19.99 and the URI (in this case [url]www.google.com)[/url]. The networking device is not available so the code … | |
Hey everyone I've created this Tic Tac Toe program and it seems to work. I just wanted to know if somebody could check it out and see if there are eny errors in it or changes that i should make. The files to the program can be found below. Thanks … | |
Hey I had notice that my same problem was posted about 6 months ago but remained unsolved so I'm hoping that someone has the answer to my problem. I'm writing a tax program that does the following: For single people, the standard exemption is $4,000; for married people, the standard … | |
hi i used [B]GetModuleFileName[/B] and [B]GetModuleBaseName[/B] functions to return the path(directory) for the folder the project is in and the icon as well ...like this: [CODE]void CForm1::OnCommand1() { // TODO: Add your control notification handler code here CComVariant retval; // - "AutoDim" CString toto="ccc_ext"; CString app_path; CString Icon; char buffer2[2048]; … | |
I am trying to convert the std::string Number3 = "0.31" to a double in the code below. I have used a MessageBox to show the result. What happens is that double Convert is returning the value of: 0 What I have discovered is that if I instead would have written … | |
I need some help figuring out how to remove duplicates from an array. I've been working on this for a few days now, and every time I think I'm getting close, it just causes my program to shut down. I've gt a text file with city names in it and … | |
Firstly, in my own defence I should point out that I'm something of a novice at C++. Any help with the following would be gravelly appreciated. I have a C++ class that holds an internal array of ints. E.g: class MyClass { public: ....... //lots of methods here private: #define … | |
iam having problem in displaying the elements present in singly linkllist.here is my code below plz check the whole code and pointout the errors and give their solution plzzzzz. [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> struct node { int data; node *ptr; }; node *first,*p,*nn; class list { public: void inslast(int); void … | |
Hey, am I correct in assuming that when you declare a function virtual in a prototype, it is illegal to use the virtual keyword again when you define the function? | |
I have a dfa program that gets DFA's properties from a text file and tries given string is accepted or rejected by dfa. I have some problems and can't get rid of this. Can anybody help? Here is my code. [code=cplusplus] #include <cstdlib> #include <fstream> #include <iostream> #include <string> #include … | |
Hi, I'm a Student in Vienna TU. May you help me , what's Linear Hashing,and how can i it with c++ use? I need to help on adding and searching. Ich have some Documents on Internet founded but i didn't understand them. How can i Buckets split and Which Array … | |
| |
hi all im new to this forum and i need some help with making a windows explorer in mfc. i dont expect that some1 makes one for me, but i dont know how to get started. my friend told me to make it with a treewiew and a listwiew control, … | |
hi. i'm trying to run my program but i get this error message... cannot convert âstd::stringâ to âstd::string*â for argument â1â to âvoid change(std::string*, int)â ...does anyone know what it means and where i am messing up? | |
Hello again, I'm trying to finish a function I am working on that reads data from a file set up like: itemID itemName pOrdered manufPrice sellingPrice itemID itemName pOrdered manufPrice sellingPrice ....and so on and puts the data into vectors this is what I've gotten so far and I'm not … | |
Can somebody tell me what is the difference between static class and static local variable in C++ ? u will be greatful if u explain it giving example thanking you | |
I'm having some trouble getting the shortened integer value of a fairly long double value. The double value in question is "1234567890123457024". When taking the int of it, such as: [CODE]int(value);[/CODE] This value is giving me a result of -2147483648, which is completely illogical due first to the fact that … | |
I have a text file that I want to tokenize(Separate the words) into a structure defined as [code] typedef struct { int fileno; char word[30]; int position; }storagefile[10000]; [/code] I want to be able to accesses each word, its position and the file it is in. Can anyone tell me … | |
Hi guys, I posted earlier today and had my problem resolved in record time, which was great as I had been struggling with the final elements of an assignment. Having received a preview automarking I found that I had one small error. Essentially, the read() function which follows takes an … | |
I am working on a project for school. I read the book but I'm still having trouble getting my program to function. We are working with multisets and are using 3 files. We have a multiset.h header file that is only supposed to contain the class definition. This was given … | |
This is my code to convert from binnary to octal ......what is the logic error in my code? [CODE]void main() { double base=2; char bin[10000]; int res,sum=0; cout<<"Enter the binnary number:"; cin>>bin; int len; len=strlen(bin); int coun=0; for(int i=0;i<len;i=i+3) { for(int j=0;j<3;j++) { res=bin[i]-'0'; sum=sum+res*(int) pow(base,j); } cout<<sum; } }[/CODE] | |
Hi, I have a question about the glut functions in opengl. For example, glutSolidTeapot (GLdouble size) Can anyone tell me if the rendered teapot can be textured and how? I applied textures on gluCylinder or gluSphere very easily : [code] GLUquadricObj *quadratic; // Storage For Our Quadratic Objects quadratic=gluNewQuadric(); // … | |
I am trying to switch this if...else statement to a Switch and I can not get the program to calculate. Please help? original if, else [code=cplusplus] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; int main () { int x, total=21; cout << "Input Number for … | |
The problem is that i need to save in simple way the array of structure: [ICODE]struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] This is the struct & array. Code: [ICODE]gydytojas pgyd; pgyd.vardas[25]=Edit21->Text; pgyd.pavarde[35]=Edit22->Text; pgyd.adresas[50]=Edit24->Text; pgyd.asmkod=StrToInt(Edit23->Text); pgyd.amzius=StrToInt(Edit27->Text); pgyd.gydid=StrToInt(Edit26->Text); pgyd.telefonas=StrToInt(Edit25->Text); pgyd.specialyb=ComboBox5->ItemIndex; … | |
| Hi. The assignment is to implement a function using recursion. I can't use any loops whatsoever. The function takes in an array of doubles and the array size, and is supposed to return the position of the smallest element in the array. I've already written some code out for the … |
hello, i started learning c++ on my own from internet tutorials, so i know "the basics" (pointers, classes,...) but i think that i missed some "small" but important stuff. i've been looking for some books on amazon but i can't decide which one to get. i want something that is … | |
hi [B]Could someone please tell me how can i open a txt file with a press of a button (MFC)? [/B] not with the infile >>> i mean [B]open "text file"[/B] and another question if i may.... [B]Is there any way i can transform a cpp file to a txt … | |
Can anyone help me to convert from binnary to octal or hexadecimal in c++?? | |
I have some code like this: [code] vector<double> Saved; for(int i = 0; i<10; i++) { if(some condition on i) Saved.push_back(i); } [/code] Then I want to see what order the things were saved... so naturally I do cout << Saved.at(0) << endl << Saved.at(1) << endl; But to my … | |
Can anybody please help me out in solving these problems in C++ Please reply to this thread ASAP! Thnx and regards acardiac Q.1. Write a program that accepts a nonnegative integer n and base b and display the digits of base-b representation (in reverse order) for each integer using a … |
The End.