51,593 Topics

Member Avatar for
Member Avatar for alex-VX

when i try to compile stuff i get this [code=c++]c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2143: syntax error : missing ';' before '{' c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2871: 'vc_attributes' : a namespace with this name does not exist c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2447: '{' : missing function header (old-style …

Member Avatar for jonsca
0
479
Member Avatar for sahil1991

hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some …

Member Avatar for sahil1991
0
216
Member Avatar for LevyDee

Hi all, the setup is as follows: -One base class -My top layer class that holds: -Four derived classes from said base class(four different types of objects that all derived from my base class) Is it possible to have a function in my top layer class that has one object …

Member Avatar for LevyDee
0
95
Member Avatar for freakyboard

[CODE]class x{int a;}; class y:public x{}; main(){y k; k.a=3; } [/CODE] How can I access "k.a"? PS: You can't change or omit any part of the code. a have to be private. Member access specifier have to be public ( class y::public x ). You can add functions to x …

Member Avatar for embooglement
0
122
Member Avatar for matthewkeating

Hello, I am looking into testing the performance of different numerical datatypes like double, integer, float, etc and see which one is the fastest. Is there a way to do this in C++. Time the time it takes to do basic arithmetic with numbers. Starting and end a timer within …

Member Avatar for mrnutty
0
128
Member Avatar for MasterGberry

I know there is an easy way to do this in C#, but i was wondering about C++. If I want to have an ifstream object defined that will read the input of a file, but i want it to read backwards. So basically here is the format I have. …

Member Avatar for MasterGberry
0
106
Member Avatar for Juginx

Hey First: How to get Length of textbox(how much sings have text) @edit : NVM first! Secound: I have Film Duration 00:00:22 and i must add that to xx:xx:xx how i can do that?

0
60
Member Avatar for COKEDUDE

This does a nice job of explaining headers. [url]http://www.codeguru.com/forum/showthread.php?t=344569[/url]

0
66
Member Avatar for MasterGberry

I am getting external link errors with the static consts below. Couldn't figure out what to do, would appreciate help :) [CODE]// Declartion of Order class class Order { private: // all of the different combo #s int a, b, c, d; int e, f, g, h; int i, j …

Member Avatar for MasterGberry
0
142
Member Avatar for Stefano Mtangoo

forgive me buddies if it is childish question, I cannot find good tutorial explaining it. So bear with me. My questions are, how does forward declaration differ from normal include which I'm used to? Also, where do we use it and what are limitation of the two? Lastly is there …

Member Avatar for Narue
0
107
Member Avatar for Jelte12345

I would like to know how to check for a keypress/keydown, so I can pause a loop when that key is pressed. I found something on the [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress(v=vs.71).aspx"]msdn website[/URL], but I don't really understand any of that. Can someone explain it to me in newb language? Or show a piece …

0
53
Member Avatar for L.sha

Hey, I Have a code to implement digital logic circuits , using linked-list. I have managed to build a simple program to work on 3 gates, which gives the user the option to choose between the gates and enter the kind of operation he wants and the values also. The …

0
75
Member Avatar for indr

hi, i created a linked list. it just adds values to the list called "source" and copies it to another list called "destination", it also deletes the values which is found in the source list and prints the source list again. link_list.h [CODE] #ifndef LINK_LIST_H #define LINK_LIST_H class link_list { …

Member Avatar for indr
0
224
Member Avatar for Jelte12345

I am creating a creating a program which needs the ability to make the get stream pointer jump to a specified line in the textfile it has opened. For example line 153. The lines have a variable length and contain only numbers. Is there a way to do this and …

Member Avatar for arkoenig
0
562
Member Avatar for Cup of Squirrel

Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks :D

Member Avatar for mslade
1
2K
Member Avatar for zeke188

hello i know that to sav i have to write someting like this [code] if (saveFileDialog1.ShowDialog() == DialogResult.OK) { StreamWriter sw = new StreamWriter(saveFileDialog1.FileName); sw.WriteLine(this.textBox2.Text); sw.Close(); } [/code] how would i go about saving more than like 5 textboxes and other stuff like pictureboxes. do i manually enter the picture …

0
48
Member Avatar for kunal2020

hi ,, i am kunal ,, n m a 3rd year b.e. student ,, really in need of mini projects on c as well as c++ .. can u plz plz help ??

Member Avatar for Celtrix
-1
115
Member Avatar for johnray31

Hi guys, I was trying to use inline function and i put inline function definition in .cpp file by using inline keyword like below.. [CODE] class SomeApp { private: SomeApp() { } public: returnType_t SomeState(); }; inline returnType_t SomeApp::SomeState() { code lne 1... } I was trying to access SomeState …

Member Avatar for Fbody
0
310
Member Avatar for viandante

Hi all, I am trying to modify sqliteman. I need to add a module able to import plug ins made in python. Mainly, this is in order to have some sort of powered Excel where data are stored in a DB and macro are written in Python and can have …

Member Avatar for viandante
0
127
Member Avatar for AmerJamil

first of all please any one tell me what is a armstrong number. i have a problem statement in c++,cant find any logic to work on it.. can any one give me some hints to do it? please also explain my problem statement in simple wordings thats whats my problem …

Member Avatar for Ancient Dragon
0
166
Member Avatar for Juginx

Hey again :p I use OpenFileDialog to open files. When i open file then how i can get that length video.(i open video files)

Member Avatar for Juginx
0
126
Member Avatar for cjjack88

Hi, I am doing an assignment about binary search tree. I have problem with remove the root in binary tree. When i remove the root of the binary tree and I view the binary tree in In-Order Traversal, my program will stop running. [CODE]void myCarSystem::remove(string m) { //Locate the element …

Member Avatar for troyduff281
0
3K
Member Avatar for ashishchoure

Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?:

Member Avatar for ashishchoure
0
169
Member Avatar for macaela

Hi i need to make a C# windows application that displays “Conway’sGameOf Life” game of life. you can find a history of the game online. does anyone know what sort of tutorials should i be looking to be able to complete this project my knowledge on c sharp is 1 …

Member Avatar for kvprajapati
0
52
Member Avatar for anthonyjpv

Im a newbie and im working with 4 forms, first form is a main menu which has 6 buttons, if one of the button is clicked, a view only form is shown. this view only form has add edit and delete buttons. if edit or add is clicked, a single …

Member Avatar for kvprajapati
0
274
Member Avatar for TSims11

Hi again, I've run into a problem with an if statement in my code. Here is the code: [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { if ((textBox1->Text == ("")) && (radioButton1->Checked == false) && (radioButton2->Checked == false) && (radioButton3->Checked = false)) { Form3 ^form3 = gcnew Form3(); form3->Show(); } else …

Member Avatar for TSims11
0
108
Member Avatar for ethanbuckley

Im stuck on a bit of code which I am re creating from a reference code given to me by my teacher. I have the following line that is giving me 6 errors: [CODE]this->Load += gcnew System::EventHandler(this, &EditWaveTrack_form1::EditWaveTrack_form1_Load);[/CODE] [ICODE]Error 1 error C2039: 'EditWaveTrack_form1_Load' : is not a member of 'WaveMachine::EditWaveTrack_form1' …

Member Avatar for jonsca
0
251
Member Avatar for goldman480

Hi all. can anyone help me correct errors in my code which is not running anymore and i dont really know why. If anyone can notice anything which shouldnt be in the code let me know please. I would really appreciate any sort of help. [QUOTE]Before writing your code you …

Member Avatar for jonsca
0
168
Member Avatar for gth759k

Hi, I need help with a simple problem. I'm still new to c++ but this should be fairly straightforward. I just need to generate a random number, but with only a very small range like ... 0.00001 to 0.001. Any help would be appreciated. Thanks.

Member Avatar for Zjarek
0
83
Member Avatar for dophine

Hi All, I just read the book called "C++ coding stardards - 101 rules". And Found there is something I don't understand. [CODE]class FlagNth { public: FlagNth( size_t n ) : current_(0), n_(n) {} // evaluate to true if and only if this is the n-th invocation template<typename T> bool …

Member Avatar for dophine
0
123
Member Avatar for alone882

Hi, I`m new here and, of course, have a small problem. I need to create a program with VC++ 6 Builder where: Press ENTER once - open picture, Press ENTER Twice - start a music. I can`t figure out how to check if user press ENTER twice, can anybody help …

Member Avatar for jeff.reith
0
331
Member Avatar for ChEeZeBaLL

I've found many tutorials on writing IRC bots and I think it would be nifty to code a simple chat bot for [URL="http://www.tinychat.com"]tinychat[/URL] I was thinking something with basic greet functionality and maybe being able to tell you what the weather is going to be. I have no idea where …

Member Avatar for ChEeZeBaLL
0
181
Member Avatar for gilly231

Hi, i wish to store a mix of derived classes in one array. so i make the array from the base class i.e. Base* array[11]; and fill it with my classes. The base class has a method. Base::print(); this is overridden in all the child classes and used as follows, …

Member Avatar for gilly231
0
151
Member Avatar for Elgan

Hello, I am trying to read some words from section in an INI file. Then putt hem into a vector of a section vector, This is the struct and class def [code] struct elgbotsections_t { char name[30]; vector <string> phrase; }; class ElgbotManager { private: char * filename; public: ElgbotManager( …

Member Avatar for Elgan
0
222
Member Avatar for kotddanny

Fellow C++ citizens, I am very new to C++ and am trying to do the following: I want to transform a chart into code. Basically, the chart serves as a diagnostic reference. For an example, if a certain condition is below a certain value, there would be a few issues …

Member Avatar for kotddanny
0
134
Member Avatar for gilly231

I need help with an assignment for my programming course. I have three classes A,B,C. all stored in one array. (These are not my real classes there are just a guide) [CODE=c] Class A{ char name; public: virtual print(){ printf("%s",name); } } Class B : public A{ char middleName; public: …

Member Avatar for gilly231
0
196
Member Avatar for Freude

Hello, I have a problem using the member function attach several times. Compiler does not find error, however only one curve appear that does not satisfy me. Is it possible to attach several curves to QwtPlot object?

Member Avatar for Freude
0
1K
Member Avatar for tshepomaz

I need projects to start a portfolio In C++ and Java programming. need to get experience and get a portfolio that will get me hired got the qualification but no experience. PLEASE HELP

Member Avatar for tkud
0
91
Member Avatar for Eddiebauer
Member Avatar for Eddiebauer
0
194
Member Avatar for petmol

Hi everyone, I can't get this program to compile. It has something to do with brackets in the wrong place(s), but I just can't find what's wrong. Help, anyone? [CODE]#include <iostream> #include <string> #include <sstream> #include <conio.h> #include <ctime> #include <iomanip> #include "iodos.h" using namespace std; // Funktionsprototyper -------------------------------------------------------------------------- void …

Member Avatar for VernonDozier
0
209
Member Avatar for moroccanplaya

i get a undefined reference to get_menu_choice error message but i dont know why ? [CODE] int get_menu_choice( void); int main() { //code// while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) //code// } else if (choice == 2) //code// } if (choice == 3){ puts("you chose …

Member Avatar for gerard4143
0
165
Member Avatar for jay200032

Hello guys, I'm quite new to C++, I'm trying to achieve a task whereby i could read from a csv file and write to that same file and vice versa depending on the user's selection. This is what i did: [B]Here's the data already on file[/B] 1,Mickey,23,090,Girne,TRNC,465 2,Charles,23,090,Girne,TRNC,465 3,Species,23,090,Girne,TRNC,465 4,Moody,23,090,Girne,TRNC,465 …

Member Avatar for Ancient Dragon
0
307
Member Avatar for SDH1

I revised a code i found on the net. It doesn't print/output "0 1 2 3" when running it?. any potential bad errors?. [CODE]#include <iostream> #include <windows.h> class Thread { public: Thread(); static void * EntryPoint(void*); int Start(); int Run(int arg); void Execute(int); int Arg() const {return Arg_;} void Arg(int …

Member Avatar for Narue
0
104
Member Avatar for sadia.ab

please write c++ code for this problem it is urgent help.............. Problem Statement: Calculate salary You are required to write a program which will calculate the salary of an employee according to his/her grade assigned by the employer. You must declare a class named CalSalary whose private data members will …

Member Avatar for Clinton Portis
-8
168
Member Avatar for sahil1991

I was implementing this algorithm of parsing a mathematical expression....but dint meet the required result........i have restricted the string to take one digit numeral only i think i am suffering because of this type conversions between int and char...but don't know what to do... here's the code.. //parsing.cpp #include<iostream> #include<conio.h> …

Member Avatar for vinayakgarg
0
108
Member Avatar for mario vincent

hi! help me.. Construct a c++ program that will accept the integer value. The program will get the factor of the integer..

Member Avatar for vinayakgarg
0
99
Member Avatar for hgseric

How do I plot a continuous sine or cosine wave on a Dot marix LCD using C++? Can I have a sample to see? Thank in advance..

Member Avatar for LevyDee
0
338
Member Avatar for TSims11

Hey guys, I'm having trouble with an error message in my code, would you mind taking a look and helping me out? [CODE]private void button1_Click(object sender, RoutedEventArgs e) { if (textBox1.Text == "user" && passwordBox1.Password == "password") { Window2 W2; { W2 = new Window2(); W2->Show; } Close(); } }[/CODE] …

Member Avatar for TSims11
0
165
Member Avatar for GobanToba

OK, I was working on a project where I needed to randomly generate tens of thousands of 1s and 0s. I started noticing it didn't seem very random. To test it out I created an array of 458752 (896x512) ints. Then, I tested by seeing how many 1s were generated. …

Member Avatar for Zjarek
0
163
Member Avatar for ft3ssgeek

Hi guys, It's been forever since I did any programming, and came upon a project where a simple program would speed things up for me tremendously...Basically, I have a folder with thousands of text files in it and I want to add a block of text to the beginning of …

Member Avatar for Ancient Dragon
0
136

The End.