General C++ Programming - November 2011 (Page 11)

Comparing single element to all prior elements
 
I'm trying to develop code that will take in a bunch of digits (all 1-9), and place them all in an array. It will then determine how many numbers were entered b...
[4 replies] Last: Thanks you guys. I didnt have my compiler at the computer i was at so ... (by jcbrunelle13)
Wrong example of using feof()
 
http://www.cplusplus.com/reference/clibrary/cstdio/feof/ This page contains the famous but wrong pattern of using feof() as the condition in a while loop. ...
[1 reply] : I see what you mean. I think we have to test the input received fro... (by SIK)
need help on sorting
 
need help~
[1 reply] : http://lmgtfy.com/?q=sorting+algorithm (by Stewbond)
by DBarzo
About abstract classes inheritance
 
Hi, I have a little problem with a tree of abstract classes. My interfaces definitions are: struct IAudioDevice { virtual void IAudioDeviceMetho...
[1 reply] : Ok, I answer to myself! :-) I simply forgot a "virtual" keyword: s... (by DBarzo)
Problem for linking fortran with c++
 
Hello I am currently using a fortran routine from a library ina C++ program, so I can't change its definition, which is: extern "C" { void FuncFortra...
[1 reply] : Yes, the functions need to be static. On top of that, you may need to... (by webJose)
convert to upper
 
have the following: char input; cin.getline(input); trying to check if lowercase input, trying to make it become uppercase automatically instead... but...
[4 replies] Last: Original Post: [quote=wantyoubadly] have the following: char input;... (by webJose)
by tony b
strings corrupting?
 
Hey its been a while since i'v done anything with c++ but i'v just started to get back into it, just making little apps n stuff, i'v never had this kind of prob...
[2 replies] Last: Actually, to use wide strings the code must explicitly call the Wide v... (by webJose)
HELP TOPIC: Known multi-dimensional array used in function
 
Hello, I'm fairly new to the c++ programming language, and I have come across a slight problem while working on a question for my programming class. I'm going...
[5 replies] Last: Ok, just to let people know, I figured out what I was doing wrong. Wh... (by quillfreminenti)
how do i move obj on the CMD? and what is enum?
 
hello everyone, so, i have this Exe that need to be done in 10 days from now. i have time, but i despeadtly need ur help with an some issus. i need 2 prin...
[no replies]
About advanced C++
 
I want to know more about C++. Presently my knowledge ranges from basic functions to classes to data file handling.Tell me what to do? I also want to learn ab...
[5 replies] Last: Thanks a lot everyone. I want to write more and more code.Tell me some... (by nitingupta)
Addition
 
Why the equation like this: (for x = 5) int result = 2*x+(++x+3)*3 equals 37 ???? not 39 (2*5+(6+3)*3=39)
[5 replies] Last: The expression 2*x+(++x+3)*3 is an error , classified as "undefined... (by Cubbi)
Address of Functions
 
Somewhere (perhaps in C++ : The Complete Reference by Herbert Schildt)I read that the functions also have address in the memory. I tried to print it using many ...
[4 replies] Last: cstdint is a C++11 header file, equivalent to C's stdint.h http://en.c... (by Cubbi)
Classname* variableName = (Classname*) variableName2
 
Hi Guys, I've taken it upon myself to learn C++ and I think I've got a pretty good understanding of pointers after a few days of research, but I'm curious abou...
[1 reply] : It's a c-style cast. It's used to cast the type associated with the id... (by closed account zb0S216C)
by dm6
Hi ! I really need some help!!!
 
Im still a newbie here, and just stuck with a little something.. I need to do a for loop comman, but the input needs to be a variable errm let me explain, ...
[3 replies] Last: perfect! thanks man!! heaps!!! (by dm6)
Problems with inherited constructor variable initialization.
 
Hello! (Before I get into asking my question, please note that I am a very inexperienced programmer. So, please excuse me if I do not communicate the trouble...
[7 replies] Last: Probably no one is reading this anymore, but in case anyone is I shoul... (by supernerd)
how to print bottom to up
 
must do classes how to put it in all?  A constant global variable SIZE with value 8.  A class SportShoe_Inventory with the following: o Private data ...
[2 replies] Last: ya i know classes i tried to put in the class. but im not sure i get i... (by xenon69)
Text base game
 
I've been working on a very simple text base game. Ive set up the Classes of Priest,Warrior, Mage in the class i have either Intellect, Endurance,Armor or Heal...
[5 replies] Last: Ah, that's a good point webJose . All those methods should be virtual... (by Mathhead200)
Programming Buddy
 
I am looking for a programming buddy to help me as I continue to progress in the field. Add me on google+ https://plus.google.com/u/0/116402966755902412072/post...
[1 reply] : Sure, let me know what you want to do: http://mathhead200.com/?dir=con... (by Mathhead200)
First name as end line, last name as head line.
 
must get first name in end line ,last name as head line. my solution like this. which i cannot get how the output sample should be. cout<<""<<endl; cout<<...
[no replies]
new to c++ and functions assistance please?
 
Well i'm writing this for my c++ class in school and I just would like help with this and please don't make me feel stupid. Well here's the code, could someo...
[8 replies] Last: Because i'm not finished yet? My teacher wanted it all written in func... (by puddinglord)
November 2011 Pages: 1... 910111213... 47
  Archived months: [oct2011] [dec2011]

This is an archived page. To post a new message, go to the current page.