49,757 Topics

Member Avatar for
Member Avatar for sudhirblgupta

Hi I am doing programming with c++ and I want to save an exe file from server side to client side through c++.Client and server both are in LAN and server has all access of client machine.can any buddy help me to solve this problem? I want to use c++ …

Member Avatar for Ancient Dragon
0
114
Member Avatar for legendarya49

[code]#include <iostream> #include <time.h> #include <fstream> #define MAXSIZE 400000 #include <cstring> using namespace std; class Students { public: string firstName; string lastName; string social; double gpa; Students() { firstName = "Adam"; lastName = "Wilson"; social = "000-00-0000"; gpa = 0.00; } Students(string newSocial, string newFirst, string newLast, double newGPA) { …

Member Avatar for Ancient Dragon
0
130
Member Avatar for Yaka

hi i wrote this program... it compiles with out any errors.. but when i try to run it in G++ compiller it gives the error "Segmentation Fault (core dump)"... i did a debug on visual c++ and it breaks at line 32 **which is marked below. what the program does …

Member Avatar for ithelp
0
301
Member Avatar for rebelvarun

the question is from ----acm.timus.ru "PROBLEM 1095"-VOLUME 1-"Nikifor 3" Nikifor knows that a certain positive integer has in its decimal form each of the digits 1,2,3,4. You are asked to determine if Nikifor can rearrange the digits of the number in such a way that the new number divides by …

0
53
Member Avatar for herms14

hi guys...i just want to get some idea....I read in a book that you could make a tetris game is C++ using pointers...can someone please help me understand how to do it or the concept behind it??? thanks im just curious...^_^

Member Avatar for Dani
0
78
Member Avatar for dark7angelx07

Hi, I need help writing a function that determines if a number is prime. It has to print all the prime numbers between 1 and 10000 this is what i have...where i put a " [U] */* [/U] " is where i need your help..... [code]#include<iostream> using std::cout; using std::endl; …

Member Avatar for DavidB
0
1K
Member Avatar for hyperzero4

Hello! I'm fairly new to computer science, and I'm working on a program that holds a database in a vector. The data type for the vector though is defined as a class. My header file has this in it: [CODE]class problem { private: string name; //Name of person with the …

Member Avatar for bugmenot
0
96
Member Avatar for DaveCachia

Hey all. I'm new to the community and I have found it very useful in the past. I have a problem that I cannot find a solution to: Here is the question As a system administrator, your task is to write a computer program for the CompanyINFR1100 to manage its …

Member Avatar for vmanes
0
118
Member Avatar for sisi

I have to write a programme using loop struture to calculate the following formula r=1/x+1/2x+1/3x+......+1/nx . The user can input any interger for n and nonzero for x .

Member Avatar for Narue
0
122
Member Avatar for Maulth

Hello, thank you for taking a look at this thread. I've been using the C++ language for almost two years now, although my knowledge doesn't amount to much due to the fact that my teacher is a complete moron, hence the reason I'm here, trying to strike out on my …

Member Avatar for vijayan121
0
123
Member Avatar for buvnut

i am trying to create a program that shows details of 40 different hills. he dteails must include hieght and distance from home. i am trying to show tge details in order of height from smallest to highest but i cant get them in order here is all of my …

Member Avatar for Ancient Dragon
0
86
Member Avatar for jimJohnson

I dunno what I did wrong with my program but I am getting a bunch of errors is converting letter to number...could anyone take a look.... [code=c++] #include <iostream> #include <string> using namespace std; string Get_Name_and_Num_Classes(string name, int classes); double Calculate_GPA(char grade, int count); void Get_Letter_Grade(char grade); double Convert_Let_to_Num(); void …

Member Avatar for jimJohnson
0
135
Member Avatar for Waseemn

Hello All I am writing a program, for homework, that would rank 3 runners in 1st, 2nd and 3rd places based on their finish times. I need to bubble sort the names, but it fails. Here is what I have: [code] //Constants Used: const int iLength = 21; //20 Chars …

Member Avatar for vmanes
0
166
Member Avatar for kux

i have a ifstream m_ifsInput variable and I try to open a file like this: m_ifsInput.open( sFileName.c_str() ); where sFileName is a std::wstring variable the error i get when compiling with g++ no matching function for call to ‘std::basic_ifstream<char, std::char_traits<char> >::open(const wchar_t*)’ the thing is the same thing compiles well …

Member Avatar for Narue
0
219
Member Avatar for Crazycfk

i am done with my c++ class and got a passing grade but this project problem that i was suppose to do is incomplete and is stuck in my head so I want to try and finish it but i am stuck here... not sure if i am using a …

Member Avatar for Ancient Dragon
1
123
Member Avatar for chidambaram

hi all, I am working in a Carbon Application(MAC) using C++. I want to connect my application with SQL Database because i want to retrieve the values from the database and use in my application. How to connect SQL.?

Member Avatar for Ancient Dragon
0
34
Member Avatar for hjong.mahjong

code to display linked list: [CODE]for (Node *cur = head; cur != NULL; cur = cur->next) cout << cur->item << endl;[/CODE] in the header file: [CODE] struct Node { int item; Node *next; }; [/CODE] It will declare a new pointer called cur, set it equal to head, and keep …

Member Avatar for hjong.mahjong
0
101
Member Avatar for caio1985

Hello all, This is my first post here, this board seems to contain interesting stuff regarding C++, that's why I subscribed into it. Ok, let's go the problem... I have a class with two methods into it: floodLog writeToLog floodLog is intended to create threads that will execute the method …

Member Avatar for vijayan121
0
2K
Member Avatar for robbins88

I have the binary function done for this question, but I can't get the blur function to work using arrays/matrices. Can anyone help me? This is what I have so far: [code]void threshold(int src[], int rows, int cols, int dest[], int thr) { for (int i = 0; i < …

Member Avatar for dougy83
0
227
Member Avatar for TheFueley

How would I display an IP address from /var/log/wtmp? I know I could use utmpdump, but that's not what I'm going for. I have included bits/utmp.h and can display other members of the struct, but when i try to display the ut_addr_v6 member, I get a random hex address instead. …

0
76
Member Avatar for armen_shlang

hello, Im kinda stuck on how to initialize the class inside the main. Or what to write instead of the ??? inside the main. Thank you in advance... [code] //********************************************************** // Work In Progress // Author Armen Babakanian // A complete set of examples to use reference and pointer issues …

Member Avatar for dougy83
0
90
Member Avatar for amroto

Hi...Plz i'm facing some problems on how to make my program work successfully. i'm a beginner in the c++ and i have an assignement to make a text editor using the devc++..it requires certain functions and i've written this code so far but i can't handle except the choice number …

Member Avatar for amroto
0
471
Member Avatar for L31chH4rdT

Hey guys, first post here so go easy. Ha. I am writing a program that needs to take command line arguments, a number and 2 characters. However, if one of the chars is a command line specific char (such as #, &) it must produce an error. Does the isgood() …

Member Avatar for Salem
0
130
Member Avatar for WIP

These are the question an my codes are attached to this form! Create a class called Reservation. This class will have a data member that is an array of type int, of size 10. This member should be called plane. You should also have a data member called seats which …

Member Avatar for Salem
-1
614
Member Avatar for robotnixon

I'm having a tough time conceptualizing this problem. I have a recursive function computing the number of possible combinations of two numbers. I have it working fine, just need one thing sorted out. My output needs a counter to increment each recursive step. Like this: Level 1: ... Level 2 …

Member Avatar for robotnixon
0
91
Member Avatar for mzdiva041986

I have some errors that I can't seem to understand, could someone help me clear up this problem? [CODE=cpp]#include <cmath> #include <iostream> using namespace std; double F ( double X ) { return pow ( X, 4) - 9*pow ( X, 3 ) - 2*pow (X, 2) + 120*X - …

Member Avatar for WaltP
0
128
Member Avatar for bhoot_jb

i want to clear a doubt... please check out the following codes.. [CODE]int function (int p[]) { //sm code } [/CODE] another style is : [CODE] int function (int *p) { // sm code }[/CODE] here i am passing an array to both the functions...and one receives it through p[] …

Member Avatar for bhoot_jb
0
116
Member Avatar for tgiboss1

Hello, I searched most of yesterday online for an answer to this question and was unsuccessful. please help. What I am trying to do, I have an emulator.exe application which is totally external from any project of my own. I want to create a control (custom control, activex control???) on …

Member Avatar for tgiboss1
0
776
Member Avatar for Nemoticchigga

Hey, Any Idea why this section of code would give me these linker errors using Visual Studio 05 in a console application and using winsock2.h: error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl CloseDevice(void)" (?CloseDevice@@YAXXZ) error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "void __cdecl CloseDevice(void)" …

Member Avatar for Nemoticchigga
0
88
Member Avatar for sudhirblgupta

i am getting error like " [Linker error] undefined reference to `WNetOpenEnumA@20' " How i can solve it?

Member Avatar for Ancient Dragon
0
58

The End.