49,761 Topics
| |
hi i am using visual studio 2008 (c++ express edition )i have a generated code to handle xml parsing and i am trying to use this code in my project so i build a .lib file with these setting under precompiled header *create precompiled header * create\use stdafx.h * precompiled … | |
Good day all am a complete novice to the world of windows socket programing. i recently wrote an application that should help me connect, read, and write to and from socket. thereafter, each time i build the compiler complains of: 1.see the declaration 'getservbyname' 2.see the declaration getservbyport 3.see the … | |
//Have to convert digits to words, having problems with the output. Please help. [CODE]#include<iostream> using std::cout; using std::cin; using std::endl; int numToText(int num) //function to return text version of number entered { switch (num/10) //Nested switch, this part detemines if number is multimple of ten { case 1: switch (num) … | |
I've been working on getting the Big-Oh notation for this code segment a couple days now and I can't figure it out. I've most likely come across the right answer but I can't convince myself it's right. What's the Big-Oh notation for the following code and how do you arrive … | |
i have two forms form1 and form2 i can able to call form2 from form1 in button click event but not able to call form1 from form2 in click event.. i have included the respective header files also but still not working. | |
Hi i'm writing a program that reads records from a file, then sorts these records by the person's firstname, and stores the sorted data in a new file. Heres the code: Everything works fine, except it stores garbage at the end of the last record. If i set the array … | |
Hi. I know some simple plain C++ and have even learnt some basics of MFC programming in Visual Studio.I can create simple desktop applications now. But the problem basically is that,I feel all that I have learnt is messed up.I learnt some flash actionscript,C++,then left programming itself for a long … | |
How to set Windows 7 to desktop html page or what i ned to do this on windows 7 | |
Ok so I have do a code in C++. The pattern appears to start off by adding one, then count by twos and go back to counting by one. Then count by 4s, back to one and then multiply by 2. What exactly is the pattern? * 1 2 3 … | |
i found msoftcon.h on the book and added. when i run below program on dev c compiler linker error undefined reference to set_color(color,color) linker error undefined reference to set_fill_style linker error undefined reference to draw_circle linker error undefined reference to init graphics [CODE]#include <cstdlib> #include <iostream> #include <msoftcon.h> using namespace … | |
Ok my project is to make several shapes that are all controlled by the user as far as what size and character is used I have the parallelogram, rectangle, triangles and the even diamond. But I cant get the odd diamond. I can only use the libraries that are in … | |
we have a project on our finals and we need to make a program of payroll using menu with the output of employee name, update employee record. display employee record, delet record and exit in the main menu. .we are using the c++ program. .hope u can help me thank … | |
The following code swaps values between 2 variables without using a temp variable..... i want to know the logic behind this [CODE] //#include "stdafx.h" #include<stdio.h> int main(){ int a =3, b=5; a^=b^=a^=b; printf("%d" "\n" "%d",a,b); return 0; }[/CODE] [CODE]Output 5 3 [/CODE] | |
I previously posted an MS-Windows example program about how to recursively search folders and create a list of their filename. This program is similar in concept but is for linux. It c++ and uses std::string and std::vector classes to hold the strings. When the program encounters a directory it will … | |
I'm trying to solve a maze that originally chooses moves randomly, keeping track of its last move...left and forward, right and foward, and forward, and by chance will choose to 'undoMove' if a 'moveBlocked', but not guaranteed. I am attempting to use a stack to solve. according to instructions the … | |
I created this function(it works if I put all this into the program) but I can't seem to use the value I get there (the size of a string) in my program... how can I call it and use the values I calculated here [code=c]string::size_type ssiz(const vector<string>& sz) { typedef … | |
I am told to write a definition after the main program that takes numbers from the keyboard and stores them in an array. I'm slightly confused on how to do this step. Help would be majorly appreciated. This is what I have so far with the program. [code] #include <iostream> … | |
I am trying to loop through a polynomial using the iterator from the STL but it says i am dereferencing the iterator somewhere but i can not spot it. I have pin pointed the error to the return of the following code. [code=c] Polynom& Polynom :: AddPoly( const Polynom &a) … | |
Hi.. Here is a program about determining the total number of green-necked vulture eggs counted by all conservationists in the conservation district. The program in fact works correctly but there is a line which i am not being able to understand its use in the program and it is the … | |
I'm working on an assignment where we are to implement an address book that holds standard information (ie. Name, Address, City, State, Zip) and contains a user interface to provide options to add, delete, or modify records, search for a specific record, or display all records. These operations are to … | |
I am a beginner in c++, I taught myself c++ through the book "c++ primer plus", it really took me a lot of will to finish the book. Now i just want to use the thing i learned to do some pratical things in my life, can anybody tell me … | |
helllo, i've got a problem with the code below. I think the problem lies with the const command . I understand you have to use const_iterator with variables that are passed as const. However in the code i->printSummary() it reports a problem? I've been reading about the const command and … | |
Hello, I am new to C++ and I am trying to create a program but I am not sure where to start exactly. Program purpose : Person/Player is asked to enter a number between 1 and 100. The computer randomly guesses a number and the player says whether its (h)igher … | |
You might find this a bit silly, but could someone please explain to me how to do C++ templates? I know they're very simple ... I just never learned them nor ever had a teacher who taught them or even made mention of them. | |
I am trying to extract data from a 1.5 GB text file. The problem occurs when the program tries to open the large text file. It works perfectly on smaller files. Does anyone know how to successfully open a file of this size? Or, is there a better way to … | |
I "miss wrote" the name of the book ... sorry ahhaha accelerated hhahah why did I write advanced ... damn =S ahha 4-2. Write a program to calculate the squares of int values up to 100. The program should write two columns: The first lists the value; the second contains … | |
hi guys.. m thinking to make a project on resume management system.. pls suggest me some features that i can include in my project... Regards Varun | |
I am trying to extract data from a 1.5 GB text file. The problem occurs when the program tries to open the large text file. It works perfectly on smaller files. Does anyone know how to successfully open a file of this size? Or, is there a better way to … | |
i have just observed this wierd thing with visual c++ the following is my code.[please forgive my poor C++ standard. im using it only because im doing it 4 a school project and the examiner wont be bright enough to understand what iss not in the syllabus. this is sad … | |
i have a problem with my program it can only search 1 account number at a time... and after i search again... it will not display the search number... hope someone can help my with the missing parts of these program.. tnx in advance... goal: to search id number more … |
The End.