Beginners - March 2011 (Page 38)

by winten
Class objects like array?
 
I would like to ask few questions about classes, for example we have this code: class Book { public: int pages; }; int main() { Book one, two, three; one.p...
[10 replies] Last: I dont know there is some problem in posting the above code. In cons... (by abhiverma812)
Issues with reading and writing in a file
 
Hello Experts, I am trying to make a program to store records of a company in a txt/doc file. The record includes both integers and characters. However, whil...
[13 replies] Last: @Sputnik Yes I do not want that the headings should load every time t... (by abhiverma812)
by SBanet
Errors LNK2019 and LNK1120
 
Thank you for taking time to help me with my code. I have two errors that I cannot figure out how to fix they are: error LNK2019: unresolved external symbol ...
[2 replies] Last: Thanks for the help filipe forgot this void longClass::setNum(lo... (by SBanet)
recommended method of initializing classes
 
Hi - I'm trying to figure out the "right" way of doing this. I have a class cell, which contains instances of another class reg. When I create an object of c...
[3 replies] Last: You can do it in the constructor for the cell class. Of course. I t... (by mzimmers)
by trig
Opening an image
 
Hi, i want to be able to do this: bmpPicture = OpenPic->Execute(); i want to execute open pic, this will then allow the user to choose an image they ...
[2 replies] Last: Low lol and C builder XE (by trig)
trying to decide which loop/s to use
 
Hi, I am pretty new to C++. I am currently taking my first course in it in college. I know how to get input and display output etc. We are now learning loops an...
[2 replies] Last: Well, you gave me a starting point..hanst99. Thank you! So here's my c... (by alikatnwv)
Search for double in char array
 
Hello, Is it possible to search for double values in an char array? I get xml strings via socket and I have to extract 6 double values. I'm looking for a met...
[no replies]
general C++ questions
 
Hey, I have two questions about C++ first, This is a legal code? class B { public: // . . . virtual void f() = 0; }; int main() { B b1, b...
[2 replies] Last: [quote=Balrog33]Second, is it preferable to separate implementation a... (by closed account z05DSL3A)
header file problems
 
program keeps telling me progam has stopped working. I think its the header file but i have no idea. #ifndef tsuPod_h #define tsuPod_h #include <cstring> ...
[2 replies] Last: Well i changed it up a bit here is where I am at now. tsuPod.cpp ... (by crunkjuice210)
by Menses
How to write a Loop Program
 
What a relief it was to have found this place...Maybe you guys can help me... I simply never have had what it takes to be a programmer...and have now found my...
[17 replies] Last: http://www.cplusplus.com/src/ Triangle.cpp explains it pretty ... (by breebree)
For Loops
 
please do not hate me for asking this again, it was just the ones i could find on here were not the same to the problem i was asked. every ones changing varia...
[2 replies] Last: Using some tools, I formatted the code and added some different functi... (by closed account S6k9GNh0)
Encoding and Decoding; Char to Hex -> Hex to Char
 
Hello folks, I've been at this for quite some time and I'm at my wits end. I'm basically trying to convert a string or text file to hex. I think I got that p...
[no replies]
array size
 
int main() { vector<int> ivec; int ix; while(cin>>ix)ivec.push_back(ix); int iarray[ivec.size()]; ...// do something with iarray } My under...
[1 reply] : Oh, it's perfectly safe to do so for the purposes of making an executa... (by Albatross)
n child Tree
 
Hi All, Its easy to create a tree when you know the no of child each node has. How do i make a program that makes a tree with arbitrary no. of children wh...
[12 replies] Last: struct TreeNode { TreeNode *lchild, *rbrother; ValType val; }... (by ne555)
reading a .TXT and store
 
I am new at C++ and am having problems reading a .txt file into an array. My .txt file looks like this. # Alphabet {0,1, a,b,f} # Number of states 14 # In...
[no replies]
How would you trace this?
 
#include <iostream> #include <string> using namespace std; void main() { int flag, i, size; string Array , target; size = 9; /*Trace ...
[1 reply] : I have no idea what you want to know, but AFAIK in C++ main must retur... (by hanst99)
average of numbers from a file.
 
Hi. I need a little help on a program that I am writing for school. So please do not give me the full blown answer. I would appreciate it if you just pointed me...
[12 replies] Last: Actually, the thing about declaring each input as a variable was an ex... (by hanst99)
Error: Expression must have class type
 
I am really puzzled about an error I am getting. I have two singleton object classes as described below: class Bar; class Foo{ private: static Foo* ...
[6 replies] Last: Yup, I was some other part of the code. Sorry about that. I am going ... (by maheshravishankar)
Clean UP
 
Heres my tic tac to game. How can i clean it up: ( Please ignore all std::cout<<std::endl i use them to keep it organized till finished product. ...
[6 replies] Last: Yeah, games are sort of fun. Somehow I always end up getting distracte... (by hanst99)
Mathematical grouping
 
i have a program going that is supposed to take an equation say (8+9) and tell weather it has the proper grouping. Where as (8+9} is not proper nor is {(8+9}). ...
[13 replies] Last: never mind i got it (by sorthon123)
March 2011 Pages: 1... 3637383940... 52
  Archived months: [feb2011] [apr2011]

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