49,757 Topics

Member Avatar for
Member Avatar for pwnerboy

Here's my code: bigInt.cpp [CODE]/ // bigInt.cpp #include "bigInt.h" bigInt::bigInt() { int i; for(i = 0; i < SIZE; i++) //Sets all the values of digits to 0. digits[i] = 0; sign = true; numDigits = 1; error1 = true; overflowFlag = false; } bigInt::bigInt(const char temp []) { int …

Member Avatar for pwnerboy
0
1K
Member Avatar for Silvershaft

Hey all! I am interested in learning to use sockets. make client and server program. Where should I begin? Thanks!

Member Avatar for PriyankaMV
1
145
Member Avatar for dolfan55aj

I have a Graph that I'm making using an adjacency matrix to hold edge values. The noEdge value is zero and all edgeweights are positive integers. I have to delete a node from this graph and I'm having trouble figuring out how to update the Adjacency matrix after the deletion …

Member Avatar for mrnutty
0
956
Member Avatar for corby

im trying to overload the operator+= and use that to implement operator+ in my string class. i keep getting a segmentation fault when i try to evaluate something like s1 += s2 where MyString s1("");and MyString s2("hello"); any suggestions as to why this is happening? this is my operator+= function …

Member Avatar for corby
0
180
Member Avatar for MrEARTHSHAcKER

Hi, Is there any possible way to create program which'd take some data from net and store it in program memory ( some variable, irrelevant ), for example - currency list? If there's no way in console, what about using Borland Builder 6? I hope my idea ain't so absurd …

Member Avatar for vijayan121
0
78
Member Avatar for demroth

I am trying to write a lexical analyzer program that will read in input from a file and produce a formatted output. I need help as I am stuck. I am sure I am not passing the file stream, and the function parameters correctly. Do note some of the functions …

Member Avatar for demroth
0
3K
Member Avatar for coolbeanbob

Help! Why am I getting the following error on line 100?? I don't get an error when I use storage in other places? error C2065: 'storage' : undeclared identifier [CODE]#include "utility.h" struct masterFile // master file record { int employeeID; string employeeName; string departmentID; int YTDhoursRegular; int YTDhoursOvertime; double regularPayRate; …

0
54
Member Avatar for mc3330418

I have a student name, wins, losses. In that order in a txt file. I'm trying to read it in and them print it out, but i'm not real sure what I'm doing [CODE] #include <iostream> #include <fstream> using namespace std; const int MAX_SCORES = 50; ifstream infile; void report(int …

Member Avatar for mc3330418
0
82
Member Avatar for Thug_life

Hi i had to write the program that prompts the user for integer values. Place these values into an array. What i cant figure out is the following i will be highly thankful to you if you can help me on these [I]Compute Sum – add up all of the …

Member Avatar for Clinton Portis
0
100
Member Avatar for Taino

Hi, I am running an application and wish to add random outputs when the user answers correctly. example 1 + 1 = 2 cout << " great"; I wish to randomly cout << excellent or very good or fantastic as well. Thanks! This is my code: #include <iostream> #include <cmath> …

Member Avatar for mikrosfoititis
0
120
Member Avatar for Xaviorin

So new here to daniweb and just finished my first semester of programming 1 and I'm trying to do some extra curricular work to get me prepared for my spring semester. Would appreciate any and all help or suggestions anyone could give me. Here's the issue: So i was trying …

Member Avatar for Xaviorin
0
123
Member Avatar for Tom_Weston

Hi, I'm wondering how to remove a specific part of a string.. [CODE] #include <iostream> #include <string> using namespace std; int main() { string str1 = "How,Are"; cout << str1; //remove the comma, and everything behind the comma! so the output would only be 'Are'. return 0; } [/code] Thank …

Member Avatar for Xaviorin
0
362
Member Avatar for mcconnell_34
Member Avatar for thines01
0
99
Member Avatar for nubcoder

NEWB alert, lol. This was homework that I failed because i didnt turn it in on time. I didnt turn it in due to the fact that i took an online course, my book sucks and my instructor only checks his e-mail once a wk. that and i couldnt for …

Member Avatar for nubcoder
-1
127
Member Avatar for R3AL

my code: [CODE] ... DWORD WINAPI myGWTHPID(HWND hWnd, LPDWORD lpdwProcessId){ __asm { MOV EDI,EDI PUSH EBP MOV EBP,ESP JMP [DLLFunc] } } int main(){ hInst = LoadLibraryA("user32.dll"); DLLFunc = (DWORD)GetProcAddress(hInst, "GetWindowThreadProcessId" + 5); HWND hwn= FindWindowA(NULL,"Untitled - Notepad"); cout<<"Window handle: "<<hwn<<"\n"; DWORD pID; myGWTHPID(hwn,&pID); cout<<"Process id: "<<pID; getch(); return 0; …

Member Avatar for R3AL
0
143
Member Avatar for momin90909

I am making a calculator which shoul not use cmath.h. I was just thinking that how is it possible to calculate trigonometric functions without cmath.h. Please help me. Thanks in advance.

Member Avatar for WaltP
0
271
Member Avatar for kusel1030

I'm trying to write a program that will read in a file to a 2-d array and find out how many groupings (blobs) of characters there in the file. It then uses a recursive function to delete the already counted blobs, to avoid recounting. The program compiles fine, but when …

Member Avatar for kusel1030
0
661
Member Avatar for Labdabeta

I have a project that I have formatted for Doxygen. I use extra header files to hold extra classes. The thing is that Doxygen only generates documentation for the first header file. How do I get it to document all of the files I specify?

Member Avatar for Labdabeta
0
2K
Member Avatar for Thermalnuke

I am having trouble with my looping sequence in this program at the end of the program it will let the user choose if they would like to exit the program or start all over again and it exits for both chooses and sometimes it will continue on to the …

Member Avatar for Thermalnuke
0
180
Member Avatar for itzcarol

HI All, I am having a little difficulties here. Here is my requirements: Play the game of paper-rock-scissors. In main ask the user how many hands he/she wants to play. This must be an odd number, so you must validate this input to make sure the number is odd! After …

Member Avatar for Tumlee
0
249
Member Avatar for gameguy91

#include <iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number\n"; cin>>n1; cout<<"input number\n"; cin>>n2; cout<<"input number\n"; cin>>n3; cout<<"input number\n"; cin>>n4; cout<<"input number\n"; cin>>n5; if (n1>n2 && n1>n3) return 0; }

Member Avatar for gameguy91
0
153
Member Avatar for gameguy91

#include<iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number1\n"; cin>>n1; cout<<"input number2\n"; cin>>n2; cout<<"input number3\n"; cin>>n3; cout<<"input number4\n"; cin>>n4; cout<<"input number5\n"; cin>>n5; if(n1 < n2) n1 = n2; if(n1 < n3) n1 = n3; if(n1 < n4) n1=n4; if (n1<n5) n1=n5; cout << "The largest number is\n" << …

Member Avatar for gameguy91
0
259
Member Avatar for vonbv25

i can't find what's wrong w/ my program. the output is wrong when i type long names and names w/ less similar letters (sorry for my english i'm a filipino) [CODE]#include <stdlib.h> #include <iostream.h> #include <string.h> #include <conio.h> #include <stdio.h> char name1[20],name2[20]; int count1[25],count2[25],temp1,temp2,total; void flames(int num) { switch(num) { …

Member Avatar for Schol-R-LEA
0
151
Member Avatar for begyu

Hi, I would like to read a directory, and get all the files in that with some kind of sorting, let us say sort by timestamp. Can you help me, here is my code so far: [CODE] #include <stdio.h> #include <iostream> #include <sstream> #include <fstream> #include <cstdlib> #include <vector> #include …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for pradiptart

Sir, Kindly tell me what is the library name for the c++ in linux. I know for c it id libc.so ,,similarly for c++ what is the library name and how can i get it for my linux. I wrote a simple c++ program and executed it is working but …

Member Avatar for olivia123
0
209
Member Avatar for Ahmed2

Hello there, submissiontime length finishtime remainingtime 1031 17:11 574.1025391 MB 1050 17:30 1 1326 22:06 536.0175781 MB 1343 22:23 2 2721 45:21:00 608.1279297 MB 2741 45:41:00 3 32 0:32 575.8115234 MB 51 0:51 4 1161 19:21 652.6259766 MB 1182 19:42 5 937 15:37 288.7597656 MB 946 15:46 6 3087 51:27:00 …

Member Avatar for Ahmed2
0
319
Member Avatar for iwlc
Member Avatar for lothrodel

As I stated in the title i am having the issue where the object 'bj' does not call any of the functions that are within the class. I am stuck on this issue. Any help will be a appreciated. Thanks in advance. [CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <string> …

Member Avatar for csurfer
0
152
Member Avatar for BrianC.

vista home premium Adobe CS5 Design Premium Acrobat X Pro Dell desktop (silvery gray):) Everything on my machines is properly licensed and registered. EVERY time I launch Acrobat X Pro I get, "MS Visual C++ Runtime Error Acrobat X/.../Acrobat.exe This app has requested Runtime to terminate it in an unusual …

Member Avatar for hinsburg
0
340
Member Avatar for bwilson1

I have been working on my code today and have minimalized my errors. Sadly, I still have a few errors left I can't figure out how to solve. [code] 28 F:\Program6-Arrays2.8.cpp cannot convert `double' to `double*' for argument `1' to `double getInput(double*, int)' [/code] [code] #include<iostream> #include<cmath> #include<conio.h> #include<iomanip> //needed …

Member Avatar for MandrewP
0
118

The End.