49,761 Topics

Member Avatar for
Member Avatar for redtribal23

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

Member Avatar for tinstaafl
0
210
Member Avatar for snehil_khanor

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 …

Member Avatar for dessy_1
0
3K
Member Avatar for Eskindir_1

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 …

Member Avatar for tinstaafl
0
7K
Member Avatar for Kurumi_1

/*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; …

Member Avatar for Reverend Jim
0
173
Member Avatar for Ammar_7

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 …

Member Avatar for rubberman
0
358
Member Avatar for devccompiler

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 …

Member Avatar for Eren_1
0
998
Member Avatar for Elena_4

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 : …

Member Avatar for ddanbe
0
88
Member Avatar for Sarlacc

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 …

0
185
Member Avatar for Sade'

# 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 …

Member Avatar for rubberman
0
204
Member Avatar for cobra1001

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 …

Member Avatar for ddanbe
0
197
Member Avatar for antona

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 …

Member Avatar for rproffitt
0
280
Member Avatar for cambalinho

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 :(

Member Avatar for cambalinho
0
1K
Member Avatar for usingnamespace

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 – …

Member Avatar for ravenous
0
251
Member Avatar for chrisschristou

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; …

Member Avatar for toxicandy
0
251
Member Avatar for RaYan_1

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 …

Member Avatar for chrisschristou
0
215
Member Avatar for ztdep

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 …

Member Avatar for rubberman
0
124
Member Avatar for chetan12

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, …

Member Avatar for tinstaafl
0
379
Member Avatar for chrisschristou

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/++ ??

Member Avatar for rproffitt
0
229
Member Avatar for clife

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 …

Member Avatar for clife
0
192
Member Avatar for ALosh99

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 = …

Member Avatar for ALosh99
0
245
Member Avatar for vicky_dev

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

Member Avatar for salman_7
0
2K
Member Avatar for Betty1909

#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 …

Member Avatar for Shattered
0
171
Member Avatar for Betty1909

#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 …

Member Avatar for Betty1909
0
222
Member Avatar for Devon_1

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 …

Member Avatar for ddanbe
0
183
Member Avatar for ali.akber

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)

Member Avatar for rubberman
0
38
Member Avatar for ztdep

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

Member Avatar for rubberman
0
182
Member Avatar for ztdep

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

Member Avatar for tinstaafl
0
247
Member Avatar for Devon_1

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?

Member Avatar for rproffitt
0
88
Member Avatar for boobalan_1
Member Avatar for ddacot
0
84
Member Avatar for Indu_1

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 …

Member Avatar for David W
0
236

The End.