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

by maank
std is inherted from which class
 
Hi All, I have following code. There is a following line of code @line 57: std::string name; Please let me know std is inherited from which class: #...
[6 replies] Last: ne555@ you are right .. i shoud't , i dont know what i was think when ... (by bluecoder)
inheritance
 
plz help me in understanding how m i suppose to maintain the list and wat will be the structure of following code??? Write a C++ program that represents an H...
[14 replies] Last: arjita07@ program seems to be fine to me .. thanks .. but i need to c... (by bluecoder)
c++ looping dosent work
 
hai guys! im new member here. ive visited this site for past 1 yrs to search for tutorials and tips on c and c++ programming. its a really good forum. today...
[2 replies] Last: thanks buddy! thats really helps.. my bad im sorry didnt search proper... (by shdin271)
image reading in C++
 
Hello all, I have to read a tiff image without using any library in c++. Please suggest me in what manner I should move forward. I have read the all the f...
[2 replies] Last: you have to start with the understanding the header formate and read t... (by bluecoder)
get data from other function
 
i done the part that user can enter 10 score or less. the problem thing is i want to calculate the perfect score.the perfect score is 100.
[2 replies] Last: i'm sorry, but i can't understand what you write? while (num<100||num>... (by chocolatsprintz)
plz help....
 
hi, i have done an user id n password program in c and i am storing the details in file..but when i try to login its not logging in......i am using turboc....pl...
[2 replies] Last: i want to login with the same id which i have stored......its not logg... (by apoorvapantoola)
How do I new and delete a 2D array in a function?
 
Hello all! How do I new and delete a 2D array in a function? My program: #include <stdlib.h> #include <iostream.h> int **New2D(int m, int n); void Fr...
[3 replies] Last: Thank for your replies,Framework and fun2code!!! (by make026)
by Tatipu
How do I save into structure?
 
I have to use structure for my program but I don't know how to make sure my input is saved in it. So how do I check for that? Thank you
[3 replies] Last: other wise you can overload = operator . (by bluecoder)
Please give me examples of FUNCTIONS
 
Hey guys, i don't know anything yet about functions and "passing arguments/parameters" ....but it would be discussed on our next c++ class.. Can you please g...
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ (by Null)
boost filesystems iterate directory
 
I have this sample code from the boost filesystem tutorial which prints out all the files within a specific directory. I'm just not familiar with the syntax, a...
[no replies]
Malloc with placement new
 
Okay, I'm a little confused. I'm just playing around with malloc and placement new, and I'm struggling a little bit with how a class is allocated. foo* mem_po...
[5 replies] Last: Thank you very much webJose, that is exactly what I was getting wrong.... (by neziggy)
STL Sort efficiency & set comparator usage
 
Q1: First of all, i would like to ask if i have a program which needs to sort a set of data by diffrent ways frequently in a program, which stl should i used. i...
[4 replies] Last: I think that the stl std::list::sort() works by reassigning the links ... (by closed account D80DSL3A)
Resizing homemade Stack
 
I have this project in my Data Structures course to create a dynamic stack (otherwise I would use STL in all other cases). I'm implementing the resize feature b...
[4 replies] Last: Well it's making a copy of stack2 and then assigning it to stack one. ... (by rem45acp)
How to Dynamically Create Objects?
 
How do I dynamically create objects iteratively during runtime without knowing the amount beforehand? This illustrates the idea of what I'm trying to do, not...
[5 replies] Last: Should I be using the vector class instead? Is it superior to just us... (by Disch)
by Tatipu
invalid conversion from char to char*?
 
So I'm almost done with my program and I'm trying to sort my output from smallest to biggest.. void AccountList::SelectionSort() { int i, k, indexOfNextSmalle...
[no replies]
Infinite Loop while Reading from a File into Stack
 
Created a stack. While reading input from File I hit an infinite loop.
[1 reply] : //StackDr.cpp /* Description: Test driver file */ #include <iostr... (by frantzdyromain91)
Calling a fn thru String???
 
Actually, i just want to call a function like this mov(a,b); But, the situation I am facing is I have "mov"...
[7 replies] Last: thanx helios...... thanx a lot!!!!! (by vikas123)
Functions and Variables
 
So I am writing a Payroll Program. What I am confused about is, I am using a function to do a math of an employees payment that he has incurred. I included my c...
[1 reply] : In line 87, you initialize payment: double payment = ratecalc(rate, ... (by frzatchary)
by RET80
C programming 2D arrays of chars and reading them in
 
So I have this portion of code I'm working on (non academic) and I'm having trouble reading in the 2D array of characters. It segfaults at the portion of code ...
[1 reply] : I just realized that if I dereference the 2D array, it works! Now why ... (by RET80)
Need help writing to a file.
 
So i'm working on a program to run along side a game called minecraft, with the stories people have made for the game the app will tell the story. The Basic...
[2 replies] Last: Have you contemplated the use of std::string ? By the looks of it, yo... (by closed account zb0S216C)
November 2011 Pages: 1... 1617181920... 47
  Archived months: [oct2011] [dec2011]

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