Beginners - October 2011 (Page 59)

declarations in oop in c++?
 
when doing oop in c++ will i still have to declare the usuall stuff at the top? like iostream and stdafx? and will i need to add the line: using namespace std;?...
[4 replies] Last: Note that you have been using classes the whole time more and likely, ... (by Maese909)
Checking whether an array's dimensions are beyond its size
 
Say I have an Array, A ; I want to call some function that will tell the value of that Array location. Size_X is determined during runtime. Is there ...
[2 replies] Last: Yeah, that can do the trick! Thanks a lot (by Nisheeth)
function that returns a string...
 
i would like to have a function (actually my first one) that returns me a string. i have some really basic questions: 1.) i know my resulting string will be 8...
[10 replies] Last: im really desperate to understand that, can someone help? how or what... (by Nelphin)
by BRMV
strings in linkedlists
 
Hi, I have created a linkedlist with data as string datatype . The build is sucess but while execution of the program a window with the following message "...
[3 replies] Last: quirkyusername , Actually i declared a single node with the n... (by BRMV)
by Ch1156
Get string from file question
 
Ok so i have a string in a file which looks like this: print "hello"; how do i get my program to only get whats in between the ""? i want it to read th...
[1 reply] : Analyze that: #include<cstdio> #include<string> #include<iostream... (by CosminNTG)
2 Dimensional Vectors
 
Hi, I am having some compilation issues when using a two dimensional vector. Here is my code: #include "data.h" #include <vector> #include <iostream> u...
[2 replies] Last: Why would cell::setCoord take two ints by reference? Take two ints: ... (by alexyoung1992)
by danush
help!
 
Write a code that declares an array of size 10 and then assigns odd integers starting with 1 to each element. Then print the array using pointer arithmetic. H...
[9 replies] Last: im reading it right out of my book. and so i meant *i, just like my ... (by CosminNTG)
by mely15
error in my code!!
 
hey all :))) im getting error on my code :( int main() { string inp; int dec=0; //store char base; cout << "input number: "; ...
[8 replies] Last: j == 0; At this point, j is uninitialized. If j just happen... (by shacktar)
While Loop-Programming Running Constantly
 
I have the following program to computer volume and surface area of a sphere, cylinder, and cone. If I choose to the get the volume of any of the three shapes ...
[no replies]
by WayneC
An array of names in parallel array.
 
I want to accept keyboard input to a parallel array, one price, one item. I'm not understanding how to create an array of 50 names. I understand reading a str...
[no replies]
LNK2001 Error
 
Hello All, I wrote this program for a class, and I keep getting the LNK2001 error. //This program will take input from a user file, read the input, //and...
[2 replies] Last: Yeah, I figured that out as soon as I posted, lol, thanks! (by daveofva)
char* items[3] to individual string items
 
Hey all, I do not deal with this type of data often and my searches are not showing me what i need. I have a char* items that contains random items...
[2 replies] Last: thank you. it did work with one change. the struct was throwing me. ... (by bwquestion)
October 2011 Pages: 1... 575859
  Archived months: [sep2011] [nov2011]

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