Beginners - May 2009 (Page 2)

by vivmen
operator overloading
 
hi all i have read that we can't overload some operators like sizeof() , scope :: , .* etc . but i don't get explenation ...
[1 reply] : sizeof returns the size of a data type in bytes so you can't overload ... (by Bazzy)
outputting in binary
 
I' putting together a program that compresses the frequencies of a Huffman code into binary but am unsure on how exactly to do this. I have an array of Nodes as...
[3 replies] Last: > it's probably best to read the data section a single byte at a time ... (by Duthomhas)
by newguy
Multiple Data members in header file?
 
I am taking my first programming course online at FSU, so I don't have any real help outside of my book. I don't understand how to successfully add a second st...
[1 reply] : This site has good tutorial that I think explains the basics really we... (by firedraco)
by GameOn
time limit exceeding
 
during 1 of code need to break a string in tokens and i simply use this code vector<string> name(string s){ char *cstr, *p; vector<string>v; cs...
[4 replies] Last: dude you are just too good xoxox heartly thanks for your efforts :) (by GameOn)
class
 
how to create class for processing large numbers of natural???? ---I found a code on the internet but do not go has errors !!! help me !!!
[1 reply] : http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic (by Hammurabi)
by cmbirk
Creating Executables (.exe)
 
How can I create a .exe file using C++ source code? I want to be able to write a program and simply have a double-clickable icon on the desktop to run it. Any...
[8 replies] Last: You can use the OS to find the executable. From the command prompt in ... (by Duthomhas)
Testing two macros for equality
 
How would I test two macros for equality? For example: #include <another_file.h> #define REQUIRED_VERSION "0.7.41" // version required for a_newly_implem...
[2 replies] Last: OK, I'll try that. (by user name)
getline issue for opening files
 
I am trying to write a very simple program that writes text to a file, and i have searched everywhere and i can find an answer to my problem, so i am confused. ...
[4 replies] Last: This is annoying. Every time I see a question I can actually answer, i... (by chrisname)
problem with writing an array to a file
 
hello I want to write a 2d array to a text file just for testing. when my loop is not larger than 4 loops it works but when it is larger,this error occurs:"te...
[7 replies] Last: Thanks alot (by aliamini25)
Accessing a database with C/++
 
As I've come to understand, a database is nothing more than a regular text file storing values in a specific pattern. The only thing you need to grab info from ...
[3 replies] Last: Sorry I never got back to you guys on this. Thanks for the information... (by closed account S6k9GNh0)
by cantog
Difficulties with understanding linked list
 
Hi, I'm trying to understand a linked list example, but get confused by the syntax. Can someone please explain the given code in detail? Focus on the lines...
[1 reply] : The ptr_to_struct->member syntax is a shorthand for (*ptr_to_struct... (by Duthomhas)
Changing classes
 
Hey all, int main() { Casual::Casual(001, "Jerry Seinfeld", 250, 40); StaffMember* SM1 = new Casual(001, "Jerry Seinfeld", 250, 40); StaffMem...
[1 reply] : Tell me...where did you declare *cp? You can't create an object like t... (by QWERTYman)
tryThis
 
I got an assignment for class that I cannot figure out. Try it out. Let me know In an ancient land, the beautiful princess Eve had many suitors. She decided ...
[4 replies] Last: I got an assignment for class that I cannot figure out. Maybe tha... (by closed account z05DSL3A)
by fei23
paradigm C++ problem
 
Hi hi,I have problem with my project, whenever I try to connect from the laptop to Tern 386 IE-M Controller(386EX). It keeps on showing "couldn't link to rem...
[no replies]
char to int conversion
 
I know you can use atoi() to convert a char to int but what happens if you are using a char array so that you can involve the '-' sign to make a negative int......
[10 replies] Last: http://www.cplusplus.com/reference/iostream/stringstream/ http://www.... (by closed account z05DSL3A)
.TXT file output
 
Hey How do you output 5 random lines of text from a .txt file on C++ ? Thanks
[2 replies] Last: umm well im just gonna wing this cause ive never done it before, se... (by jloundy)
get and getline functions
 
Hi there ! I have one question about these functions: - istream& get ( char* s, streamsize n, char delim ); - istream& getline (char* s, streamsize n, char...
[1 reply] : use getline from <string> so you won't have problem with sizes: st... (by Bazzy)
adding numbers(integers) from a .txt file
 
Hey guys How do you add numbers(integers) from a .txt file and then output it on C++. Note: each number is on a separate line yet are under the same headi...
[2 replies] Last: im not repeating anymore answers about fstream, i have probably copy &... (by jloundy)
2D array problem
 
Hello! I'm pretty new to this and I'm having some trouble creating a gradebook. after asking for student id's along with test numbers and test scores, the prog...
[3 replies] Last: dont know what you have going on in the that mess, i too dont understa... (by jloundy)
[Solved] Problem with list
 
Hello, I have very strange problem. My code looks as follows: //#include "zawodnik.h" #include "gracz.h" //#include "zdarzenia.h" #include "sedzia.h" i...
[6 replies] Last: Thank You very much. That was so lame.... Stupid "copy & paste" common... (by nieziemski)
May 2009 Pages: 1234... 21
  Archived months: [apr2009] [jun2009]

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