49,761 Topics
| |
Hello everyone, I wanted to implement AES encryption technique to encrypt text file of any size. but for large size my compiler crashes.could anyone solve my problem problem is in line 304 according to me I attached my code with this thread plz help me asap. | |
Hello guys, Ron here...im going to start my IT lessons next year but I already started learning some basics in C++...actually, I tried making a Hangman game already but there's something wrong...My loop is incorrect...please help me...so here is my first ever code.. #include<iostream.h> #include<conio.h> #include<stdio.h> #include<math.h> void main() {char … | |
Can someone give me some resources (books, online tutorials, etc.) on algorithms for 2D collision detection? I've searched a little, and all the ones I can find are for 3D collision detection. Thanks in advance. EDIT: Just to clarify, I know [I]how[/I] to do collision detection, just not efficiently. | |
| I am getting an error during the build stating: "Illegal call of non-static member function" and I cannot figure out 1) what does this mean, or 2) how to resolve it. For detailed clarification, I will type out what the assignment was (I say was because the assignment was due … |
Hi friends, I am new for C++. Please answer my questions [LIST=1] [*]How to write a Multiple COM Port at same time? Is it Possible?How? Please give a Code [/LIST] In My Program,I declared a Object like this [CODE] struct _DCB dcb; HANDLE hCom; [/CODE] [LIST=2] [*] What is mean … | |
[CODE]//Header file for Array.cpp. #ifndef ARRAY_H #define ARRAY_H template<class Datatype> class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; Datatype* m_array; public: //Constructor. Array( int p_size) { m_array = new Datatype[p_size]; size = p_size; } //Destructor. ~Array() { if( … | |
Hi Folks :), I need your help:?:, I am getting segmentation fault for "delete bptr_1" ( please refer program written below and line number 46 ). If i remove statements "delete dptr;" (@line 32) inside try{}, then the program executes otherwise it will give error. Could you please tell me … | |
Hello: How can I improve on my function template to also do insertion sort on strings? I'm afraid I'm very new to templates, any hints appreciated. Template looks like so: [CODE]template <class T> void insSort(T arr[], int size) { T key = arr[0]; int j = 0; for(int i = … | |
Hello I'm trying to read files of file extension .obj or .txt and for certain characters using boost iostreams How would I implement that using this current code as a basis [CODE] typedef ex::container_source<string> string_source; string input = "hello"; string output; io::stream<string_source> in(input); getline(in, output); assert(input == output); cout << … | |
Hello, I am just starting out in a basic C++ class and am having some trouble with this problem for class. Any help would be seriously appreciated. In the program, I have to use an input file that includes the name of a college, where the college is located, the … | |
hi everybody my problem is when i set timer for ftp to send me a file , the keylogger doesn't log or save any text in log file , i face this problem just when i set timer for ftp otherwise it work fine i mean without timer i set … | |
How does one simply make a mutator or setter for an array of strings? I have made a inspector or accessor but cant seem to figure out how to make a mutator. much appreciated. | |
Is there anyway I can specialize JUST the Contains function of the class below? I tried for hours and cannot figure it out as I'm not too good at specialization but I learned templates recently. I want to do something like: [CODE] bool Contains(string ToFind) { //If typeof(T) == typeof(string) … | |
Hey guys, learning about multi-dimensional arrays and am tracing a code that my teacher gave us, but I'm failing to see or conceptualize it. for instance: Why does the following code output 3? [CODE] int a[2][4][2] = {16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1}; cout << a[1][2][1] << endl; //output is 3 [/CODE] How are the … | |
Hey guys, I'm trying to get my code to compile. I have 3 files: a header file, a cpp file for my main function and another cpp file for my other functions. When I try to compile my cpp function file, I get the error Undefined reference to 'WinMain@16 and … | |
Hello I built a personal 2D array for my current project. I also store these arrays (called Matrix) in a std::vector. The matrices are 24*181 and currently I sue between 30 and 50 of them. I don't think project details are relevant however I'm getting 3 errors which I have … | |
Hi all... I have been trying to read a huge file of size around 7 GB. It looks like impossible task now.. The file looks like this: [ICODE] CITY0_084989053<tab>hdewhiuewf CITY1_000989090<tab>AACGTACGT CITY1_000989090<tab>GTACGATAH CITY2_643274032<tab>kdijadadsail CITY3_004498906<tab>Adjbsajdada CITY3_004498906<tab>Adjbsajdada ...... [/ICODE] I expect an output like below with only duplicate left side records. [ICODE] CITY1_000989090#1<tab>AACGTACGT … | |
| |
Is it possible to loop an if-else statement? How would such a thing be coded. Basically, this code allows the user to enter a value for a month. If it's not from 0-12 it asks the user to enter a new value. How could I get that to go through … | |
I bet most of you in here have seen the old movie "Wargames" Im wondering how would you go about programming an AI like WOPR that learns from itself? Lets take an example in chess *Which he loved* He would make simulations of a chess game, if he lost he … | |
Hello everyone. I'm a new member here but have an issue that I've searched and searched for and just cannot figure out how to resolve. Based off of the issues that I was able to correct, Daniweb seemed like the best place to ask. I'm making my first attempt to … | |
Hello there, okie, my problem today is i i have all this names, [CODE]John, Dave, Steve, Kevin,Andrew,Scott,Colin,Timothy,Zenon [/CODE] and i have to sort them using insertion sort, i can sort number using insertion sort with no probs, but when it comes to strings, and stuff, i get lots of problems. … | |
My methods dont seem to be working for example void Resize doeznt do anything. AM i using it in the wrong way oris the method faulty. [CODE]//Header file for Array.cpp. #ifndef ARRAY_H #define ARRAY_H template<class Datatype> class Array { private: //Template for use with the Array's data type. //Member Variables. … | |
I was told to make a stopwatch program..but i am unable to figure out how to take come out of loop and pause it and again go back into the loop if resumed ( i tried the pause button on the keyboard and it works) but i have to take … | |
It reads in the whole file.. thing is, it crashes right after it hits the last line in the file.. the file is 115 lines long.. it prints all 115 lines but for some odd reason, it crashes right after :S If I remove the blank line at the end … | |
Hi I'm new to XML file. I have the following format XML file and I only need to read the value for data name = "A2" in VC++. How to read the value using the XML DOM methods without looping all the nodes? My xml file is as follows: [QUOTE] … | |
| Hey, I am working on a project and I want to know how to return a class object that is a Character Array. I am having trouble with it and can't find out any way to do this. Thank you for taking the time to help (: |
Can I use a DLL embedded in an executable (as a resource) without writing it to the disk? (Windows) | |
I'm attempting to transfer some OpenCV images over the network, I've been trying to put them into a format I can easily encrypt and transfer, but I'm almost certain it's not going to work properly. Essentially the IplImage is a structure but it has a pointer that points to some … | |
I want to create a struct array and get the max number of books written by particular author...The problem is that i can't get the number. I am not finished up yet with the code,but i don't know why i am not getting anything when calling the Max function.Please advise! … |
The End.