49,757 Topics

Member Avatar for
Member Avatar for khaled.s

Can you please tell me what's wrong? I get this error: error C2447: '{' : missing function header (old-style formal list?) [code] // // Area= 1/2 | (x1y2 - x2y1) + (x2y3 - x3y2) + (x3y1 - x1y3) | // (distance)^2 = (x-difference)^2 + (y-difference)^2 // v= sqrt[ s(s-a)(s-b)(s-c) ] …

Member Avatar for WaltP
0
234
Member Avatar for david tran

Hello, I am recompiling a project using Borland C++ builder 6. The recompile process failed due to linker error. The message was: "[Linker Fatal Error] Fatal, unable to open file ABCC.lib" I removed the ABCC references from the project and environment options, but the same error still occurred. I even …

0
35
Member Avatar for Lukezzz

I have a Panel that holds 200 buttoncontrols. If I for example minimize the Formwindow and maximize the window again, panel1 that holds the 200 buttoncontrols makes the 200 buttoncontrols to "flicker" for about 2 seconds. I beleive I have set up code for panel1 that have Doublebuffer = true; …

Member Avatar for Lukezzz
0
102
Member Avatar for esdftw

Hi all, I did a search on this site to find threads where people were talking about finding a variable length number in a text file and came up with no results. So, I'm asking :) I have a text file with hundreds of lines of data in it. One …

Member Avatar for esdftw
0
150
Member Avatar for C_Dannehl

Ok so a little bit of background, I am trying to write a boggle solver, I had everything working until I tried to implement a Binary Search Tree for storing the words found on the board, when I tried to do this I got the following errors: Error 1 error …

Member Avatar for C_Dannehl
0
134
Member Avatar for angel6969

//Define a function that takes a partially filled array of numbers //as its argument and returns the standard deviation of the numbers in //the partially filled array. Since the partially filled array requires //two arguments, the function will have two formal parameters: an array //parameter and a formal parameter of …

Member Avatar for jonsca
0
261
Member Avatar for StaticX

Hi, Can anyone help me with this problem.For example i have a text file called food.txt with contents 1 apples 2 oranges 3 mango 4 bananna What i would like to do is enter the choice of fruit into a string and loop through the file until the word is …

Member Avatar for Lerner
0
108
Member Avatar for smith73

I have to modify the program so that it can read 10 sample points and determine which are contained in the plume boundary. This is my first object oriented class and I have made it run ten times but I dont think that is correct. Please advise.... Thanks. data given: …

Member Avatar for smith73
-3
113
Member Avatar for iamcreasy

I have just started using CodeLite. [url]http://www.codelite.org/[/url] It looks impressive.... I was using Codeblocks.But it's lack of features and less frequent stable release has disappointed me.Though, it's subversion is very frequent. I am no expert, but CodeLite looks better then codeblocks. But, if it is better then codeblocks then why …

0
64
Member Avatar for JustSuds

Hi everyone, I just can't seem to find an explanation for using this "->" in code, in C++. I've migrated from Java and C#, and haven't seen this notation before. Basic example: [CODE]CMesh *pMesh = WorldObjects[i]->m_pMesh;[/CODE] As best as I can tell, this is the C++ equivalent of C#'s [CODE]WorldObjects[i].m_pMesh;[/CODE]. …

Member Avatar for Skeen
0
90
Member Avatar for corby

[U]for[/U] i<-1 [U]to[/U] n [U]do[/U] [INDENT][U]for[/U] j<-1 [U]to[/U] n^2 [U]do[/U][/INDENT] [INDENT][INDENT]write(i*j)[/INDENT][/INDENT] [INDENT][U]end-for[/U][/INDENT] [U]end-for[/U]

Member Avatar for corby
0
126
Member Avatar for sandorlev

Hello! I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces …

Member Avatar for vmanes
0
767
Member Avatar for sidra 100

“Although for consistent and reusable design we follow Object Oriented paradigms; “structured approach” has still its worth in some imperative and critical applications. Support or contradict this statement with solid arguments.

Member Avatar for sidra 100
-4
76
Member Avatar for Nicholas_Roge

In the code below, I check if test.dll has been loaded, and it always returns false... I can't figure out what I'm doing wrong. Can anyone give me a hand? P.S.: I've triple checked that the DLL is in the running directory. [code=c++]#include <iostream> #include <windows.h> typedef int (*AddFunc)(int,int); typedef …

Member Avatar for Ancient Dragon
0
155
Member Avatar for hawkoftheeye

Hiya. Many apologies if the question I am about to ask has already been answered. I searched the forum, and found a couple of threads that seemed to be relevant to my problem, but none seemed to describe the problem fully. I'm fairly new to C++, having only been using …

Member Avatar for Ancient Dragon
0
234
Member Avatar for Tommy2010

Hi! I've been searching for reading number in a string containing mix of number and char for hours, but I've found the right code. The string has the format q23 - q3 (or q23-q3) I'd like to read the number '23' and store it in x, '3' --> y, and …

Member Avatar for Ancient Dragon
0
239
Member Avatar for Democles

I am currently having somewhat of a brain stump here. I am programming in a larger project and well, it's on the move to c++. the source code is all c we compile by using a makefile. There is a file with several functions we are taking one removing everything …

Member Avatar for Ancient Dragon
0
170
Member Avatar for Ed Ashworth

I wrote some C++ programs and classes a few years ago using Visual C++ 6.0 as my editor/compiler. Recently I replaced the 6.0 with Visual C++ 2008 Express. Now, none of my older code will compile. I read that there were some changes to the C++ standard library some time …

Member Avatar for jonsca
0
134
Member Avatar for Metraton

Hello guys, that's my first post around here and I have a problem with binary files. I'm writing a simple editor for my arkanoid clone game. This editor opens a binary file defined by this: 0-26 byte: Descriptor for the file. Once in each file. 27->(1141*n): Levels inside the file, …

Member Avatar for Metraton
1
181
Member Avatar for spirit3ch

Hi I am trying to implement a sequence using a linked list. I need to have the following functionalities: insert, remove and concatenate. The concatenate should not be destructive and the function call should be like. That is Seq1 and Seq2 should be preserved post function call. [code=c++] Seq3 = …

Member Avatar for jonsca
0
197
Member Avatar for sidra 100

plz chk my code i m having error at line 35 and 36[CODE]#include <iostream> #include <cstring> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } string getstring() { cout<<"enter the sting:"; cin>>s; return s; } void displaystring() { cout <<"the string is:"<<s<<endl; } const strng &operator+= …

Member Avatar for tkud
0
111
Member Avatar for hydersha

hey guys.. greetings to all please help me regarding my problem i want to find how many times a digit has occurred in a number. for example i have an array which consists of numbers 1011 1022 1033 number of 1's= 5 number of 2's= 2 number of 3's= 2 …

Member Avatar for jonsca
0
845
Member Avatar for tomtetlaw

When I compile my code, I get these errors: [code] ------ Build started: Project: engine, Configuration: Debug Win32 ------ Compiling... baseanimating.cpp c:\program files\microsoft visual studio 9.0\vc\include\time.h(39) : error C2143: syntax error : missing ';' before 'string' c:\program files\microsoft visual studio 9.0\vc\include\time.h(39) : error C2059: syntax error : 'string' c:\program files\microsoft …

Member Avatar for mitrmkar
0
494
Member Avatar for n.utiu

I have recently installed Code:Blocks 8.02 for Windows, but I have a problem with my debugger. Every time I try to debug I get an error that says I haven't set my debugger executable yet. I selected the mingw c++ compiler included in the install, and set the debugger exe …

Member Avatar for n.utiu
0
126
Member Avatar for aman rathi

hi as i finished my I sem of computer applications at SGRRITS coll in dehradun ,india in second sem C++ is part of my course. now i want to know about the main difference between c and c++ how c++ is more use ful and its features with the help …

Member Avatar for farag
-1
114
Member Avatar for misfits86

Input a list of positive numbers, terminated by 0, into an array Numbers. Then, display the array and the largest and smallest number in it. Process, Input, Output information with variable names and type and complete pseudo code of the program (with declaration of variables, calling of modules, any modules, …

Member Avatar for misfits86
-2
191
Member Avatar for yun

pdcurses works well with code::blocks but is there any way to use pdcurses with visual Studio, plz help.

Member Avatar for miguelbezerra
0
2K
Member Avatar for wen30

Hi , i got an application API interface written in C++. i wanted to inherit the interface in C#. can somebody be kind to teach me how may i write this code in C#? [CODE]HRESULT _stdcall ExampleFunction() [/CODE] thanks!

Member Avatar for kvprajapati
0
71
Member Avatar for miteigi-san

I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me... Here's what i would like to know: 1] what does the value returned by …

Member Avatar for mrnutty
1
615
Member Avatar for terabithia

So i suppose to do some Matrix calculator and perform some calculation by using classes. But we need to copy the square matrixes to other matrix to perform the calculation without changing the actual value. So we can use the same matrix and just changing the form to upper or …

Member Avatar for Lerner
0
1K

The End.