49,761 Topics

Member Avatar for
Member Avatar for asilter

when i, [code] g++ -c Serdar.cc [/code] compiler says: [code] Serdar.cc:3: error: semicolon missing after declaration of `Serdar' Serdar.cc:4: error: ISO C++ forbids defining types within return type Serdar.cc:4: error: two or more data types in declaration of `SetValue' Serdar.cc:4: error: prototype for `Serdar Serdar::SetValue(const int&)' does not match any …

Member Avatar for iamthwee
0
312
Member Avatar for Ricle

Is there any API provides easy threading and socket programming in C++? I am programming in VC++6 environment. Thanks.

Member Avatar for vijayan121
0
64
Member Avatar for hapiscrap

I ran the program in Xcode with Java Tools: [code=cpluslus] #include <iostream> using namespace std; main() { int employeeid; int hoursworked; float hourlyrate, grosspay, taxamount, netpay; float const TAXRATE = 0.10; cout << "ENTER THE EMPLOYEE ID: "; cin >> employeeid; cout << "ENTER THE HOURS WORKED: "; cin >> …

Member Avatar for vijayan121
0
144
Member Avatar for prs55

I am trying to calculate the date of easter in the years 1900-2099 ,inclusive.And a,b,c,d,e variables are defined as in program and the date of easter is March 22+d+e(which may be in april),except in the years 1954,1981,2049 and 2076 when easter is one week earlier than the formula given. From …

Member Avatar for prs55
0
153
Member Avatar for asilter

[code] typedef map<string, Attr_info, less<string> > AttrMap; [/code] i do not know what "map<", less and ">" represents? What I little understood from the code is AttrMap is a collection of Attr_infos. If so how can i add a Attr_info into AttrMap? could u plz help? thanx

Member Avatar for Salem
0
77
Member Avatar for nive

Kindly let me know Code for (a) Checking whether a number is a prime number or not, (b) to generate the first 10 prime numbers, (c) finding HCF of 3 numbers in C++ and a programme to print the first n number in the fibonacii series. An early reply from …

Member Avatar for Sturm
0
265
Member Avatar for eranga262154

I have a binary data block(a byte), and I want to convert it to decimal. Is there any inbuilt function to do that.

Member Avatar for eranga262154
0
105
Member Avatar for SammyHasibi

[6 #include <stdio.h> 7 int main () 8 /* Declare and initialize variables. */ 9 int number1 = 4, number2 = 7, sum; 10 /* Calculate sum. */ 11 sum = numberl + number2; 12 /* Print the sum. */ 13 printf("The sum is */.d \n", sum); 14 /* Exit …

Member Avatar for Salem
0
100
Member Avatar for eranga262154

Hi all, I have just start to work on C++. I want to open a text file, then write few text there. This is the code I wrote for that. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ofstream file; file.open ("example.txt"); if(file.is_open()) { file << "Write a …

Member Avatar for eranga262154
1
165
Member Avatar for jaepi

Hello there, do you have any idea of what is the corresponding standard lib function of Win32's WideCharToMultiByte()? Thanks!

Member Avatar for jaepi
0
139
Member Avatar for Duki

Hey guys, Just got started on this, and I keep getting an error saying Missing ";" before "." starting at line 25 and pretty much on all of my functino calls in main. Anyone know what I'm doing wrong? Here's my code: //driver - main #include "prob6.h" int main ( …

Member Avatar for Duki
0
129
Member Avatar for rainbringer

Hello! How can it be done? I've the two things installed, but in order to get help about anything within the VC++ I must manually open the MSDN Library. Pushing the F1 button on a needed function to get help for it is much more comfortable... Respectfully, Alex

Member Avatar for rainbringer
0
179
Member Avatar for daniweb2013

I'm trying to calculate sin(x) without using #include <math.h> i need to use Maclaurin Series to calculate sin(x) with recursive process. thanks

Member Avatar for Rashakil Fol
0
441
Member Avatar for aslamkhan24

I just started to implement Call Control Gateway for CTI Gateway. I want communicate with Micorsoft Office Commumicator 2007 to provide call control functionalities. Communicator use CSTA over SIP protocol and i just new to SIP. I want to implement SIP protocol in C++. Is there any body to help …

Member Avatar for vijayan121
0
59
Member Avatar for ehsen

I started to learn C++ few days ago. When I Run a program it show a console window for a moment then return to IDE. I even couldn't see the output. for example followig Hello World Program [code] // a small C++ program #include <iostream> using namespace std; int main() …

Member Avatar for sd.lamba
0
113
Member Avatar for vijayan121

there seems to be nothing much happening in the c++ forum today. so here is something to chew on for programmers who are relatively new to templates: c++ can also be used as a metalanguage. [code=cplusplus]#include <iostream> using namespace std ; // compile-time computation of fibonacci numbers template < int …

Member Avatar for Bench
1
446
Member Avatar for Crouchinho

Ok guys, I could sure use some help regarding this search methond in C++. I have a 2D vector which i read from a text file. It looks like this: 000000000 000100001 000010000 The idea here is I have to search for the leftmost '1' in the highest possible row …

Member Avatar for Dave Sinkula
0
8K
Member Avatar for daniweb2013

Hi, I'm using suse Linux 10.1, i wonder if there is any good compiler such as turbo c v.3 in Microsoft windows?! if anyone knows please help me.

Member Avatar for iamthwee
0
91
Member Avatar for hungdt

I have an annoying problem with this piece of code: [CODE] int len = 5; char str[5]; do { cout << "Enter a string: "; cin.getline(str, len); } while (true); [/CODE] when the length of str is less than 5, the code runs fine. I can re-enter the string over …

Member Avatar for hungdt
0
90
Member Avatar for kahaj

Anyone else using Dev C++ v. 4.9.9.2 ? I can't figure out how to make it word wrap. Also, when I go to run a project, the window comes up for a split second, then just disappears. Never an error message, just disappears. Any ideas?

Member Avatar for Ancient Dragon
0
592
Member Avatar for cathy01

Hi im new to this site, im sory if i post a message on a wrong section.. i juzt wana get some help on my assignment,, that is, doing a round robin or short job first cpu scheduling algorithm on c or c++.. please help me. thankz a lot!..

Member Avatar for vijayan121
0
105
Member Avatar for icetux

Hey, everyone. I am having getting my code to work. I have tried to add in a selection for the users. Not to mention I think I broke my table. here is the errors I get. 1>c:\users\keith\documents\visual studio 2005\projects\wk5mortgage\wk5mortgage\wk5m.cpp(51) : error C2446: '!=' : no conversion from 'int' to 'void …

Member Avatar for Salem
1
220
Member Avatar for mark busenitz

wanted something fast for writing a rendering engine so i wasted way to much time writing metatrix, then started having illusions of getting a job with it and now i'm closest to bum status i've ever been. maybe somebody can learn or actually use it, and if i get some …

0
179
Member Avatar for venomlash

Hi, I took a course in JAVA and learned about exceptions...I'm not sure how to throw and catch in C++. Can I get some help please???

Member Avatar for vijayan121
0
153
Member Avatar for trey.jonn

Is there any need to escape a Registry Key path when reading it from a file? eg. For the path :[B] HKEY_USERS\.DEFAULT[/B] When reading input from a file , is there a need for escaping the''? If I use [B]" HKEY_USERS\\.DEFAULT"[/B], I get the same string [B]" HKEY_USERS\\.DEFAULT"[/B] back - …

Member Avatar for Ancient Dragon
0
150
Member Avatar for xxCattehxx

Everytime i turn on the pc i get serval things come up. First its Error Loading C:\WINDOWS\system32\fslvndya.dll Then its Error Loading C:\WINDOWS\system32\wxstofsr.dll Then finally its Microsoft visual C++ Runtime Libray C:\WINDOWS\explorer.exe Here is my HiJackThis Log file. Please help me sort it out, its doing my head in. Thanks alot …

Member Avatar for kananga
0
381
Member Avatar for Crouchinho

Guys, Your help will be appreicated in this matter. i have to read a text file which has rows and columns into a vector. The text file could be of any size. 000000000 010010001 010010011 001001001 Now, how do I upload this text file on to a 2D vector? so …

Member Avatar for Dave Sinkula
0
5K
Member Avatar for gaggu82
Member Avatar for n.aggel

This question goes out to everyone who knows the latest c++ standard by heart:P. We have the following program: [CODE=c++] #include <iostream> using namespace std; void wow(int& x, int& y, int&z) { x=x+1; y=z; z=z+1; } int main() { int i=0; int A[2]={10,11}; wow(i, A[i], i); cout<<i<<endl; cout<<A[0]<<endl; cout<<A[1]<<endl; } …

Member Avatar for n.aggel
0
119
Member Avatar for Ashu@sym

hello everyone, i am a rookie in C++ programming, can someone please clarify my one doubt regarding difference between handles and pointers ?? actually i am little confused about handles, can any one please clarify what exactly is a Handle and why is it used??

Member Avatar for SpS
0
242

The End.