49,761 Topics
| |
I need help Fixing this I traced through the code, and it compiles not error but when I run the program its just goes crazy I need help finding a the soultion to this problem please Thank you very much [CODE]#include <iostream> #include <fstream> #include <cstdlib> using namespace std; int … | |
Hello, I am having a problem to call a function I am posting the code... Can anyone help how we can solve the problem... [CODE]int AES(string path1, string path2) { ifstream myfile1 (path1, ios::binary);// error ofstream myfile3 (path2, ios::binary);//error } int main() { AES( "c:/plaintext.txt" , "c:/cipheretxt.txt" ); return 0; … | |
Hello everyone, I need to write code such that: .you can select number of players(2,3or4) and put that number in array.. .display message if correct number not entered. .then each player must be able to choose their color(red, blue, yellow,green) .two players cannot be assigned the same colour This is … | |
Hi, When I am trying to return a QString from a method I am getting linker error. My code is like: extern "C"{ _declspec QString _stdcall function1(char* name); } I am using MSVC 6.0 compiler. Could any body help me? (NOte: If I remove _stdcall its working fine) Thanks in … | |
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++ … | |
[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) { … | |
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 … | |
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 … | |
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...^_^ | |
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; … | |
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 … | |
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 … | |
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 . | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.? | |
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 … | |
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 … | |
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 < … | |
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. … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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 - … |
The End.