Beginners - January 2011 (Page 39)

Writing to a non-.txt file
 
Hello there, I'm on vacation in the Maldives and in the meantime i'm writing an addressbook in C++. I use .txt files atm to save the data, bu I don't think t...
[4 replies] Last: Someone tell me take a look at Crypto++ http://en.wikipedia.org/wiki/C... (by sohguanh)
istream::read question
 
in the code shown here Using namespace std various declarations... including pause and fin char* buffer; int last; fin.open(Parent_file.c_str()); l...
[3 replies] Last: ha! i didn't even think of that, i've just come to the habit of doing ... (by closed account 4Gb4jE8b)
Having trouble compiling multi source-code programs
 
In the C++ textbook I'm working through at the moment I'm up to an example where a class is being split into two files. One file, the classes "interface" (membe...
[4 replies] Last: I've read your code pretending myself to be compiler and throw an erro... (by lionishy)
by sloper
convert string to char
 
How do I covert string abc to char? #include <iostream> #include <string> using namespace std; char letter; int main () { string abc ("This is a...
[4 replies] Last: well answered computer geek! (by closed account 4Gb4jE8b)
by admod
Doubt in the value return by Reference...
 
Hi pals, I am newbie in C++ Development. I saw a code in a book named "Beginning C++ Game Programming". I have a doubt regarding the Following Working Code...
[1 reply] : When you get the reference back and assign it to rStr, you basically m... (by Zhuge)
by Achmed
finding a word in a string
 
Hi all, iam new at c++ and I need some help. if I have void main(){ char x ={"this is a test"},y ; cout<<"enter the word you want to check"; cin>>y; s...
[4 replies] Last: Since this was solved I see no problem in pasting my solution to the t... (by wolfgang)
A Bit of "Hand-Holding" With CLASSES
 
ok, first i would like to express my appreciation to the forums and the rest of the website (mainly the tutorials). theres a wealth of information here that is ...
[8 replies] Last: well, no sense hiding it from me, its good to know its possible. but f... (by AceFace)
Assistance needed
 
Hey guys, im writing my first C++ program, and its working great(after some issues getting used to new ANSI rules, my books a bit outdated, have newer resources...
[7 replies] Last: using namespace std; after the includes is a useful line to add to ... (by HooklessFastener)
by Gene
Keeping a Variable
 
Hi, I was wondering if there was anyway to set a member variable to an int in such a way that if the program sets it to something, the next time you open up the...
[2 replies] Last: Thanks (by Gene)
setting a string equal to the data inside a document
 
my code: for(x = 0;x<number;x++,y++) { //Writing the file names ostringstream child_file; string in_text,final_text; int startp,endp,p_endp,last_ch...
[5 replies] Last: std::string aux; 4096 characters is equal to 4 kb of data, which i... (by ne555)
Copy from command line automatic
 
I have written a small program, where i need to output from the command line to be copied to the clipboard automatic. Can that be done? I'm working on a windows...
[5 replies] Last: You will have to pipe the results of the ping command either way. It... (by Duthomhas)
A program that generate 10 numbers
 
Write a program that generates the numbers from 1 to 10 then prints the sum of the even numbers and the sum of odd numbers using “ do while loop”
[15 replies] Last: [quote=thecodewall]@kyon some compiler or ide you are using for me I u... (by Kyon)
debug assertion failed: expression stream!=NULL
 
My code is the following: ==================================================== int main (void){ int resistance; char h; FILE *outfile; outfile = fopen...
[3 replies] Last: this is all your code? so, dont tell me u didnt put #include <stdio... (by chathura666)
cannot convert parameter 1 from 'B *' to 'A *&'
 
sory i know i wou might be bored.. i receive this error in following code 'f' : cannot convert parameter 1 from 'B *' to 'A *&' class A{ public: ...
[7 replies] Last: in this case is the b not a temporary object?? No, b is not tempo... (by Disch)
how get size of this array
 
how get the number of element of this array char *m = {"eee","sasas"}
[1 reply] : Count them. I see two. Part of handling arrays is keeping track of ... (by Duthomhas)
loop calculation
 
So...i have to make a program that impruves the goldbich theory. This theory says that every number can be the addition of two smaller numbers. 45:23+22. 12:...
[11 replies] Last: yes ne555, thats all what i meant, and also what i say is that you ca... (by chathura666)
by acorn
friend function
 
I know that friend functions can give you access to the classes private data. what im confused about is why you would want to use a friend function in the first...
[6 replies] Last: yep it does ! thanks a lot man... (by billyb29)
Hello World.....code interpretation
 
Please, can someone explain each line of this codes better for me...thanks // my first program in C++ #include <iostream> using namespace std; int mai...
[2 replies] Last: @ acorn: Double check his sentence structure, I don't think English is... (by Computergeek01)
Hello World.....code interpretation
 
Please, can someone explain each line of this codes better for me...thanks // my first program in C++ #include <iostream> using namespace std; int mai...
[1 reply] : // my first program in C++ #include <iostream> using namespace st... (by closed account 4Gb4jE8b)
how display an image in cpp
 
hi how display an image in cpp or c without using opensource libraries(opengl,...) i want use only cpp and c codes
[4 replies] Last: don't. It's too much work for too little reward, again it may well not... (by closed account 4Gb4jE8b)
January 2011 Pages: 1... 373839404142
  Archived months: [dec2010] [feb2011]

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