May 16, 2008

C++ General Discussion - any problem in c++ shall be discused here

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

C++ General Discussion - any problem in c++ shall be discused here

amit nigam
hello guys i have started this topic to share our little experience with this language and could help the needys out there and also to share programs or projects ...
take care

Notice from BuffaloHELP:
Please do not start an empty topic--no actual discussing subject matter. We have dedicated C++ programming language section. Moved.

Reply

osknockout
Ooh! C++ experience... let's see. I started when I was like 12 because I felt bored one day and picked up this book at the library.
Learned the language and played around it for a few months and then dropped it because it couldn't do anything interesting at the time.
Few years later, came across OpenGL and the gcc and started using it again. I've been using it for almost everything since - until I came across
assembly of course, but that's a different story. biggrin.gif

Reply

squeetox
I started learning C++ when I was 13 because I wanted to know more about how computers worked, and I was intrigued by what software really was. After a few VB6 tutorials I felt the whole thing was a bit lame so I tried another language, C++. After that I began a book about making RPGs with DirectX9 and that gave me much more practice with the whole language. By that time I learned other languages as well, which lead me to web design too.

Reply

rajibbd
I get in to this language three years back ph34r.gif . One day I was thinking about how calculate works and figure out I can also make my own calculator by using any of programing language cool.gif . And start thinking about C and later C++. After then I start thinking sorting integer or character and I start learning different feature of C++ like comparison, Loop, Different condition and later OOP in C++ blink.gif . C is cool but I prefer c++ because of OOP. In case of OOP C++ is not perfect but work out. Then it was a break. Now again start C++. And try to implement different Algorithm in C++. Right now I am thinking about Dynamic Programming. If you guys want to give me any kind of support I will be glade. Specially on "Matrix Chain Multiplication". Coz to write programming I got stuck

 

 

 


Reply

t3jem
Well, I started learning C++ in 7th grade when I saw one of my friends' programs she made at IBM. After seeing her program I became interested in programming and my dad had a C++ book that I took up and read whenever I could. After a year, I borrowed my friends OpenGL book then I got one for christmas so by 8th grade I was programming visual applications. I took programming 9th and 10th grade, but it only taught me a few basic techniques, nothing really too helpful since I had already made the final project before school started. Now I still use C/C++ for my games, I never took a real class so my code isn't pretty/efficient, but I have fun while coding.

Reply

musicmaza
Hi guys i have got c++ problem can u plz help wth the pre and postfix operators
heres an expression sad.gif
a=++x+x++ if x=10
then a=???

plz give the answer and reason if any knows about this
i would be thanful to u... smile.gif

Reply

osknockout
QUOTE
a=++x+x++,,,,if x=10 then a=???
Wait, what? ,,,,? Could you explain that more clearly?

Reply

musicmaza
oh thats nothing .the expression goes something like this:
a=(++x)+(x++),now here x is initially 10, what I want to ask is the outcome of this expression.
It would be also good if you can give me any information about postfix and prefix operations like their precedence and other facts,I really find it difficult to calculate when such expressions are used in a class
I don't know but I think that is it true that at someplaces the value of such expression changes due to "change in instance",I have such change in values when they are used in a class.

Reply

osknockout
prefix changes the value of the variable before the expression is calculated,
postfix changes the value of the variable after the expression is calculated.

So in the example a=(++x)+(x++) with x=10,
first, the value of x is incremented by the ++x. So x = 11.
a = 11 + x++. The x++ increments x after the expression,
so a = 11 + 11 = 22. x is now 12.

Now personally, I wouldn't write code out like that unless I was in a rush,
because that just confuses other people who'd read it. This type of devilish
code belongs to schools and obfuscation contests. biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : c, general, discussion, problem, c, discused

  1. Problem With My Email : [urgent]
    Can't send or receive email. (1)
  2. Flash Problem
    sometimes the buttons will load the wrong link. (7)
    Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
    www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
    mess around and click the buttons for a little bit you will notice this happening. This is a problem
    because people visiting the site will sometimes click the button once and be like oh I guess the
    link is broken and never come back, if anyone has a solution to what could be the problem it would
    be awesome. This is one of my first custom flash banners and im just confused what....
  3. I'm In Love! Now What Do I Do?
    This is the first time I've ever had a problem with a girl. (6)
    I am a jock, I'm man enough to admit it. I'm one of the big strong men on campus. I've
    never had a problem asking out, flirting, or approaching girls. Unless it comes to this one girl.
    I've known her since 8th grade and fell in love with her the first time I saw her. After I got
    to know her a little more she turned out to be even more amazing. But, she isn't the same as
    most girls when it comes to giving off signals. I don't think she has ever even gone out with
    anyone, so I don't want to come on overly strong and just skip dating and t....
  4. Problem With Time/date On My Computer
    (6)
    This strange issue has been happening to me recently. I notice that when I shut down my computer,
    and then start it up the next time, the time and date of my computer remains the same as that of the
    time and date that I shut down my computer, and it continues from that time and date until I adjust
    it manually myself. For example, if I shut down my computer on 3 May 2008, 10pm, even when I switch
    on my computer on 4 May 2008 9am, the date and time shows 3 May 2008, 10 pm. I don't understand
    why, I did not automatically synchronize it with an internet server, and I....
  5. Gamma Servers' Problem
    This topic is for all who have their account on Gamma Server & ha (1)
    Okay I see a lot of chaos all around and my site zoebelkin.co.cc is still down. Everything including
    FTP, CPanel etc are down. My site is on the gamma server. I see that all the servers are moved
    around a lot and the IP blocks also changing. So what is the new IP set for 'gamma'. When
    doing a reverse check on gamma I see it is still assigned to it's previous IP but when I'm
    trying to access the previous IP's port 80 then I get a Server not found error. Also the
    gamma.xisto.com name for the server fails to open the default Apache page which it used to ....
  6. Ip Problem
    (2)
    I CANNOT ACCESS MY SITE: http://pinoyteens.net from IP: 124.6.174.5 and 222.127.170.30 I'm
    having a dynamic IP, this really begins to suck.....
  7. Connection Problem!
    ??? (3)
    There are many softwares which need internet connection, and there is a problem. The program itself
    does connect to the internet at my home and different places, but not at my University! So, how
    can I force this program ti be connected to the internet. The thing is the internet is present, but
    the program, somehow, can not find it. List all the ways!!!....
  8. I Have A Problem With A Question
    R.S. question does not make logical sense (8)
    I was doing a mok exam for my R.S. GSCE (Religous Studies) and it was the paper from the previous
    year i think. Then a question came up "the amount of religion in the is proof god exists, do you
    agree? give reasons for both sides of this argument" So whats the problem, the problem is it is
    logically impossible to argue both sides Why? : Proof means something that establishes something a
    true or factual beyond all arguable doubt. So if i were to argue that it is proof for why God
    exists, which i wouldnt because it isnt, for me to argue that it isnt proof would make t....
  9. Frontpage Problem
    Strange message when press Submit (0)
    Trying to set up a "skeleton" form generated with Frontpage 2000. After installing Frontpage
    Extensions, when I hit Submit on the form I get this response: *-*-* :-| :^| :-/ :-( 8-( *-*-*
    * status=1 * osstatus=0 * msg=FrontPage security violation. * osmsg= I'm new at
    this, and don't understand any of the above response. Please explain the above stuff and suggest
    how to fix it. Thanks, Jack Here's the brief code: <!--webbot
    bot="SaveResults" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/CS....
  10. Can Anyone Help Me With My Graphic Card - 8600 Gt
    temperature problem :D (8)
    Hi, My system specs are as follows: QUOTE Processor : Intel Core 2 Quad Q6600 @ 2.4 GHz
    Motherboard: nVidia 650i Ultra RAM : 2 GB GfxCard : XFX 8600 GT (512 MB) Problem is all of my
    nVidia component are now managed by a single Control panel - nVidia Control panel and it doesn't
    show any tab for graphic's card temperature. I want to know the temperature of my graphics
    card. does any body know any software for this ?? or at least a work around ? thanks /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  11. Hey Guys
    General Intro... (2)
    Hey Guys Roooss here, just found this site community looks kewl! hope to be a decent part of
    the dev community and am keen to get involved with some projects. am a web developer for an SEO
    company have great knowledge in php css sql etc. also a java developer and dable in c# every now
    and then. also love the *nix platform...who doesnt? but anyway anyone ever wants to contact me
    feel free!....
  12. Nvidia Display Driver Problem
    (2)
    Hello everyone I have a problem with my new pc: my card the 8500gt 512mb graphics ... Game
    slow-loading computer freezes, when I launch a video: message (the display driver NV4_disp not
    working properly) + blue screen, reboot. My configuration: QUOTE -- Lg_95c abit motherboard.
    -- Dual Core 3.4 GHz -- PSU 300w -- 2 gbs ddr2 ram (no problem with memtest) -- NVidia graphics
    card 8500gt 512mb As recommended by Trap17, use an online translator if you don't speak
    English well. http://translate.google.com/translate_t?langpair=fr|en ....
  13. Heart Problem
    love (0)
    i'vee been cheated by some one,, im so sad,, Totally unrelated and copied advertising
    removed. Readme ~ Rules ~ AUP ....
  14. Sub Domain Problem : Urgent
    Cannot access my sub domains (10)
    Hi, I am having some serious problems with my sub domains. I registered a site with trap17 named
    http://zoebelkin.co.cc . Then I made 2 sub domains for the site. One is for the forums section
    and the other is for the gallery section. 1> forums.zoebelkin.co.cc 2> gallery.zoebelkin.co.cc
    Whenever I type these in the browser adress bar the browser gives an output that it cannot find the
    web sites. But they are complete and should show something. Also using www. in front of the sub
    domains didn't help. Is www. needed in front of the sub domains. Could you just....
  15. Selling Bone Marrow, Dire Problem.
    (7)
    I'm an American, and I've been out of "the system" for over a decade. I can't be
    officially employed, because it would generate income tax. The tax would be automatically withheld
    from me, and go towards subsidizing lovely things like human torture, war atrocities, warrant-less
    domestic wiretapping, and general treason and inhumane practices. So, I'm left to work under
    the table. This has hit me pretty hard, and now I have a ton of cavities I can't pay to have
    filled. If left unchecked, this will soon kill me slowly and painfully. So as I'm ....
  16. Diabetes And Insulin Pump Therapy
    Discussion on diabetes control (5)
    I wanted to make this a Subforum but didnt know how so I posted this here. I have been a diabeteic
    for about 25 yrs. I am now on the inslin pump which seems to be working well. I was basically
    wanting to know if there are otheres diabetices that use the pump or discuss any other ways others
    could share to help other diabetices control ther sugar levels.....
  17. Rpg Maker 2003 Music Problem
    (1)
    I have been working with RPG Maker 2003 and I have run into a problem. When I open the BMG tab I
    try to listen to music. However, when I click play nothing happens. I have the Rtp file with the
    standard midis in it. But they just wont play. The WAV files included do play. The only way they
    seem to play is if I put all of the files into my windows media player. Once the first song has
    played and as long as the player is running I can listen to songs via the RM2K3 program. However,
    if I stop the player or mute the player I can't hear them on the program. I'....
  18. Two Lan Ports Problem
    cant connect to counter-strike server (1)
    here....i think i know the problem...but i cant find the solution.... I use windows XP SP 2 ...Asus
    motherboard.. I use integrated Ethernet port (NVIDIA nforce controller) to connect to the hostel LAN
    and used the same connection to get internet (using proxy). I played counter-strike without any
    problem... Everything worked fine until i took a direct ADSL internet connection... So i installed
    a separate ethernet card (INTEX rtl8139D) which i use to connect to the internet... So now i have
    two LAN ports ...one for internet and one for LAN... The problem is...i cant con....
  19. Problem Creating Email Accounts In Cpanel
    (13)
    this is the message i recieve... "The e-mail account xxxxxxxx@ wildcatexotics.com with the login
    Sorry, you have exceeded the maximum allowed email accounts. and password xxxxxxxx with a quota of
    unlimited megabytes was successfully created." can an admin please help me with this issue?....
  20. Dandruff Problem
    (27)
    I am a average built, Indian, Male, aged 20 person. I have a very serious problem with the
    dandruff. It comes back within an hour after taking a head bath. It is bothering me a lot. It is
    very itching and really irritating. I have tried applying lemon on my head but in vain. The dandruff
    still comes back. My mom advised me not to apply lemon too much on head so I have stopped applying
    that also on head. I went to a doctor and he asked me to shampoo hair with a medicated shampoo
    called SELSUN. But still the dandruff problem is lasting and with no effect with the medic....
  21. Movie Discussion - Love Actually - A Christmas Movie
    movie discussion (5)
    Okay who else has watched the movie Love Actually??? I for one absolutely adore the
    movie!!!!! Its so humourous and yet so sad the way some people never get a good
    Christmas and yet on the other side of town the Prime Minister(Hugh Grant ) is having a party in
    full swing!!! Its got that Britishness that I just love AND its got Bill Nighy in it
    (AND he sings!!!!!) with some other people that i think are simply great actors
    such as Hugh Grant, Colin Firth and more... Also I think that all of the stories in it are so g....
  22. Rate Giveaway Of The Day And General Posting Rules
    (14)
    Well everyone, this is a brand new sub-forum and I decided i would start a topic that would be an
    overall topic for the whole sub-forum. So, what would you guys say for this site? Why did you vote
    what you did above? My recent activity there has given my this impression: It's a good site,
    but so far the programs i have seen there are not all that great. The idea is a superb one though. I
    think if they start to get some better programs on there i might use it more. If you have never
    gone there go there now and see what programs there are. Download that programs and....
  23. Dvd Drive Problem
    It Wont Read Anything! (7)
    Recently my DVD drive was playing everything, today i put a dvd disk in, it says nothing comes up
    with no auto play or nothing loads at all. so i go to my computer and load from there, it dont load.
    It says please insert disk... Im like WTF so i put a cd disk in and the same exact thing happened. i
    tried about 7 different disks including cd and dvd disks and burned ones too. Nothing at all, So i
    go to google and check around for tuts on fixing this, it gives me this registry thing. Like delete
    lowerfilter and upperfilter in this folder. I do it, Still nothing happens, so....
  24. C Problem: "two Or More Data Types In Declaration"
    also need help with malloc (4)
    What does it mean when I get the error QUOTE two or more data types in declaration of (function
    name) It's almost the exact same as a function I have in another program that compiles and
    works fine. Also, can someone explain malloc or give me a tutorial? Like where and how you use it,
    and if there are any restrictions to where you can use it. Shortened topic title to fix page
    distortion on the home page. Edit: Made new title make sense >_> ....
  25. Imap Problem
    i want to check if the message is not seen (1)
    i'd like to know which message i had not been seen, so i searched the manual and fid 2 flags
    says Unseen == 'U' || Recent == 'N' mean. but i don,t understand what does Unseen ==
    'U' || Recent == 'N' mean(what he mean by flags )? i want to check if the
    message is not seen, so how to do that? i tried CODE $inbox =
    @imap_open("{mail.mysite.com:110/pop3}",
    "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['S
    ESSION_MAIL_HOST']."", $_SESSION&....
  26. Problem Installing Sims 2 Nightlife
    update failure (23)
    I have the Sims 2. I tried to install Sims 2 Nightlife expansionpack. He reches 100 % with
    installing the game...then he automatically run the updat for the sims 2. But when he's going
    trough the files he stops st the file: CSBin/package.exe He says there is a error, and then when I
    click ok, install terminates and goes back from 100% to 0%. Can anybody tell me what's going
    wrong here? Has anyone else had this problem? I just can't figure it out. And on the internet I
    found a few people who had the same problem but just havent had an solution for it yet. Ca....
  27. Rpg Maker 2003 Questions
    Questions in general (21)
    While looking for help on the 2003 edition, I could NOT find any sites that covered one-time events
    or displaying your character name. I'll put this into context if it helps. The hero starts in
    a house, with a pile of jewels on the table. I made an event where he can 'talk' to the
    jewels, and gains 5 currency. I WANT this event to happen only once, but he can keep talking to the
    jewels again and again. So, is there a way to make the jewels dissapear after use? After he steps
    out of his house, he heads south and meets a little girl on the coast. She asks h....
  28. Did You Face Problem Opening Pdf With Firefox?
    (14)
    Hello, I have a question to ask since the 1st day of my download of firefox ... Whenever i open a
    pdf file online using firefox, the firefox is get not responding and my comp got hanged ... i have
    to manually end the firefox program via windows task manager .. I tried to wait the pdf to load, but
    it seems that it takes forever .. so im guessing it's the trail version's bug .. but after a
    few updates, I still have the problems with my firefox ... Is this my computer's problem or
    firefox problem ? If it's a firefox bug, it's impossible that no1 report ....
  29. Grand Theft Auto: San Andreas
    hints and discussion (35)
    Does anybody know how to get to the betting shop because i cant find it anywhere. i have been told
    that it is on the first island, but where? all of my friends have got loads of money but i have only
    got a couple of hundred and i really want to buy a new house and upgrade my lowrider car Please help
    me quickly. Modified topic title and description to fit forum rules. ....
  30. C Code, Can U Solve This?
    Another interesting problem (22)
    Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
    that main does not print 20 */ } int main() { int i = 20; fun();
    printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
    ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
    functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
    Have fun.......

    1. Looking for c, general, discussion, problem, c, discused

Searching Video's for c, general, discussion, problem, c, discused
Similar
Problem With
My Email :
[urgent] -
Can't
send or
receive
email.
Flash
Problem -
sometimes
the buttons
will load
the wrong
link.
I'm In
Love!
Now What Do
I Do? - This
is the first
time
I've
ever had a
problem with
a girl.
Problem With
Time/date On
My Computer
Gamma
Servers'
Problem -
This topic
is for all
who have
their
account on
Gamma Server
& ha
Ip Problem
Connection
Problem!
- ???
I Have A
Problem With
A Question -
R.S.
question
does not
make logical
sense
Frontpage
Problem -
Strange
message when
press Submit
Can Anyone
Help Me With
My Graphic
Card - 8600
Gt -
temperature
problem :D
Hey Guys -
General
Intro...
Nvidia
Display
Driver
Problem
Heart
Problem -
love
Sub Domain
Problem :
Urgent -
Cannot
access my
sub domains
Selling Bone
Marrow, Dire
Problem.
Diabetes And
Insulin Pump
Therapy -
Discussion
on diabetes
control
Rpg Maker
2003 Music
Problem
Two Lan
Ports
Problem -
cant connect
to
counter-stri
ke server
Problem
Creating
Email
Accounts In
Cpanel
Dandruff
Problem
Movie
Discussion -
Love
Actually - A
Christmas
Movie -
movie
discussion
Rate
Giveaway Of
The Day And
General
Posting
Rules
Dvd Drive
Problem - It
Wont Read
Anything!
;
C Problem:
"two Or
More Data
Types In
Declaration&
quot; - also
need help
with malloc
Imap Problem
- i want to
check if the
message is
not seen
Problem
Installing
Sims 2
Nightlife -
update
failure
Rpg Maker
2003
Questions -
Questions in
general
Did You Face
Problem
Opening Pdf
With
Firefox?
Grand Theft
Auto: San
Andreas -
hints and
discussion
C Code, Can
U Solve
This? -
Another
interesting
problem
advertisement



C++ General Discussion - any problem in c++ shall be discused here



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE