49,761 Topics

Member Avatar for
Member Avatar for student89

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 …

Member Avatar for Ancient Dragon
0
128
Member Avatar for Osas106

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 …

Member Avatar for Ancient Dragon
0
93
Member Avatar for keweul

//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) …

Member Avatar for keweul
0
238
Member Avatar for pandaEater

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 …

Member Avatar for gashtio
0
378
Member Avatar for rinkuburagohain

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.

Member Avatar for rinkuburagohain
0
126
Member Avatar for Vllinator

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 …

Member Avatar for Vllinator
0
142
Member Avatar for simple dude

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 …

Member Avatar for simple dude
0
134
Member Avatar for dfxover
Member Avatar for 4824hbk

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 …

Member Avatar for csurfer
0
89
Member Avatar for burcin erek

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 …

Member Avatar for burcin erek
0
519
Member Avatar for cpt clueless

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 …

Member Avatar for cpt clueless
0
125
Member Avatar for ghingghing

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 …

0
43
Member Avatar for neoraghav

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]

Member Avatar for neoraghav
0
4K
Member Avatar for Ancient Dragon

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 …

Member Avatar for Ancient Dragon
0
950
Member Avatar for bmos31

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 …

Member Avatar for bmos31
0
1K
Member Avatar for mitrious

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 …

0
59
Member Avatar for kuchick32

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> …

Member Avatar for kuchick32
0
98
Member Avatar for cchase36

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) …

Member Avatar for mrnutty
0
47
Member Avatar for shahanakazi

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 …

Member Avatar for vidit_X
0
226
Member Avatar for hockeygurl35

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 …

Member Avatar for hockeygurl35
0
188
Member Avatar for dspjm

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 …

Member Avatar for iamthwee
0
149
Member Avatar for Beancounter5

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 …

Member Avatar for mike_2000_17
0
91
Member Avatar for canadianpanda

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 …

Member Avatar for gerard4143
0
95
Member Avatar for Dani

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.

Member Avatar for phfilly
0
453
Member Avatar for vavazoom

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 …

Member Avatar for Ancient Dragon
0
213
Member Avatar for mitrious

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 …

Member Avatar for daviddoria
0
142
Member Avatar for kapoorvarun23

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

0
51
Member Avatar for vavazoom

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 …

0
104
Member Avatar for maharjun

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 …

Member Avatar for Narue
0
119
Member Avatar for kirvie

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 …

Member Avatar for csurfer
0
159

The End.