49,761 Topics
| |
I need help finding a bug in my program. Whenever I run it it keeps saying Debug Assertion Failed. Expression:_block_type_is_valid(phead- nblockuse). Here's the code: http://pastebin.com/0vVciqZS | |
Hi, I have always programed in Turbo C 3.0 and little exp. with 4.5 but recently I installed Borland C++ Builder 6 and the environment is completely diifferent.. I was just testing some codes to get used to this new environment.. But this code below is giving an error i've … | |
so all i want to so is read a txt file and store it into an array but im im having a difficulty and here is my code and my txt file has a delimeter (',') so i put a getline function as well but it is not wrking for … | |
/*Hi guys ^^ can you help me ?? i keep getting these "error C2447: missing function header (old-style formal list?)" i just want to do 2 converters and somehow i end up in doingthis, pls guys help me ^^*/ # include <iostream> # include <cstdlib> using namespace std; int choice; … | |
i am trying to save file data to int array their are three files and every file contain more than 1 million records and i don't know how to save this data to array.............. file look like 12000 135680 69857 5986 . . . . . anyone please help me … | |
Hello everybody, I need your help to solve my problem. I've just upgraded my Windows from 7 Ultimate to 8, and my Dev-C++ (latest version - 5.7.1) it's compiler is becoming slower than when I use it in Windows 7 environment. It takes more than 20 seconds to compile a … | |
HI, i'd like to do a simple calculator in c. i write this program but all the results about subtraction ( SOTTRAZIONE) are not correct. can you told me why? thanks you so much `Inline Code Example Here` case 2: printf ( "the subtraction of these n numbers is : … | |
I am creating multiple C++ DLLs which have a C wrapper around them for use by an external application. I wanted to have a single error handling library that each DLL has access to. If I created the error library as a static library and then include it in the … | |
# include <stdio.h> #include <stdlib.h> int option(); int questions (); int count_yes (); int main () { questions (); option (); medcode(); } Printf("Are you an asthma patient?\n"); Scanf("%s", &option); if option='N' { Printf ("You are not an asthma patient. Goodbye."); } else option='Y' { while option= Y { Int … | |
Hello am finding it difficult to write the problem analysis for this project....,.one of the works that Mr Robert has been given is to organize special paper for a report for a board meeting.The paper comes in reams of 500 sheets.he always makes 5 more copies than the number of … | |
I want to be able to control the print head of a Canon PIXMA iP5000 (inkjet) for printing. This printer has the finest resolution of any I.J. Printer made and it is this resolution I need to be able to utilise and control. I do have access to Cannon's Official … | |
using: char username[255+1]; DWORD username_len = 255+1; GetUserName(username, &username_len); i get the actual user name. but how can i get the program folder name for execute a program? the '%ProgramFiles(x86)%' on folder name string is ignored :( | |
Salutations! I am having a lot of trouble trying to create a program that will test the validity of a user entered password. Below is the criteria of the test: 1. The password must be 6 digits long entered as a single integer (assume no leading zeros are entered – … | |
hello friends sorry for posting this basic question here but i can't figure it out why my variable "tasse" is getting 8 or (the value of variabale i) in this code below. #include <stdio.h> int main(){ int leght = 15; int tasse =0; int random; int array[15]={1,5,4,7,8,5,1,0,9,7,0,0,5,4,10}; int i,j; for(i=0; … | |
I need to write a C++ program that declares an array of type integer of size 10.The user will enter the number of integers N to be stored in the array. The program should have a number of functions each of them will at least take two parameters.These functions are … | |
I have a Points class and a Segment class as follows: class Points { double x; double y; int Index=-1; } class Segment { Points Orig; Points End; Segment(const Points& a, const Points& b){Orig=a;End=b} void ChangeGlobalIndex() { do something to change the index of two end points. } } int … | |
please help me for this program... You are working for a company designing cute, funny robot vacuum cleaners. At a high level, the robots’ behavior is divided into three modes: 1. Exploration 2. Vacuuming 3. Rampant Killing Unfortunately, while consumer testing shows that the last two modes are working perfectly, … | |
Hello friends i just have one question i want to make my own android OS customized version or even one day make entire own OS, so i wanted to know for the android OS i must learn JAVA ? or c/++ ?? | |
Hi , Below is the code for printing even/odd numbers alternatively.But some how i am not able to achieve the result. I have seen a version with while loop http://www.bogotobogo.com/cplusplus/quiz_multithreading.php working perfect. But i would like to use one thread for printing one value instead of same thread running in … | |
I am trying to define a function in c++, I wrote it in main function. I am getting an error : a function-definition is not allowed here before ‘{’ token}I have defined it as following : float distance(float x, float y, float pitch) { float r; //local variable r = … | |
This program displays a simple analog clock to show the current system time. Uses a Hand class to create objects - hour, minute and seconds hands.The 'hands' are just straight lines, and two circles make the 'frame' of the clock. Compiles correctly on TurboC++ v3.0 | |
#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which … | |
#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which … | |
I am trying to create a 2D array of Point of distorted checker board like this photo: [Click Here](http://download.altamisoft.ru/download/resources/image_with_points.jpeg) Starting from the mid point, I think there should be some kind of sin and cos algorithm depending on x&y distance between each vertex and the mid point but I don't … | |
Hi can i get the c++ code where you have 2 variables and you need to add sub multiply and divide those (new to this) | |
Dear friends: ` The gcc version used in my opensue 42.1 is 4.8, i installed a gcc 6 from the opensuse package download center by "oneclickinstall".` The installation process was sucessful, but the gcc in my system is still 4.8. So how to resolve this problem. Regards | |
Dear friends: I need to use a data structure which can start the first index of an array from a nagtive value. I have searched the MTL library, and bltiz lib, but it seems that they doesn't support this kind of vecotr. Could you please give me some suggestions. Regards | |
Hi, I am working on tesseract OCR with my data set that only has upper case English alphabets and numbers. Is there a way to modify an existing traineddata file so that it only searches for upper case alphabets and numbers? | |
I have not used an object to call the function but have passed objects as parameters and call function without an object. Can anyone explain #include <iostream> using namespace std; class test { int a; public: test(int x): a(x) {} void display() { cout<<"the value of a is"<<a<<endl; } void … |
The End.