Beginners - June 2008 (Page 5)

by salman
What is a buffer?
 
I constantly read buffer for example flush it clears buffer or something. What is a BUFFER in C++ pr...
[3 replies] Last: I have a question about the zeroing. You use fill_n(pointer, size, '\... (by Mitsakos)
Restarting the program
 
So I finally finished my battleship game which is the best I can do in a console app and it is my fi...
[1 reply] : You are better-off just clearing everything. (by Duthomhas)
Starts, works fine, then quits.
 
#include<iostream> using namespace std; namespace alpha { long int vari; } namespace beta ...
[5 replies] Last: So? It doesn't work with VC++ or C++Builder. Just because your ... (by Duthomhas)
by Silvah
endl or \n is one better then the other?
 
I want to force myself into using the more "excepted" line advance. Is there any advantage of one...
[2 replies] Last: Thanks Duoas, That is good information to know. (by Silvah)
Libriaries in Bloodshed Dev C++
 
Hello. I have found a library for a good pseudo random number generator, Merssene Twister, however ...
[5 replies] Last: erm, I really need help here. Or, if someone could give me a function... (by strongfan)
how to read data from textfile and push in array
 
Hi there.... 1stly sorry for the novice and beginner question but I really need help since I've b...
[2 replies] Last: Okay 1stly thansk for the reply and feedbacks...Okay..actually what I ... (by pixeldude)
compiler
 
i use the borland c++. doesn't already has a compiler? i should use a second one?? if yes please su...
[6 replies] Last: thanks...but stiill cant compile with minGW...ive downloaded it from a... (by ioanmih)
qsort() calling explanation
 
Hello, I was reading about the pointers to functions and as an example my book has the qsort() algo...
[1 reply] : The (int*)a and (int*)a are casting the passed in parameters to in... (by bnbertha)
Segmentation fault when passing matrix to a function
 
Hi I am trying to teach my self C++ after using MATLB for so long. I am trying to code up a few bit...
[4 replies] Last: OK, I changed to using the GSL libraries. Much better! things work now... (by marrabld)
Several questions :D
 
i have some questions : 1.) how to insert a pause time between 2 or more consecutive couts 2.) how...
[2 replies] Last: the first problem i solved it thanks... but how can i put a value lo... (by ioanmih)
by melaa
borland c++
 
heloo,I am working on calculator program with borland builder,but I have got a problem for displayin...
[no replies]
Header files
 
Hi, This is Arun here, i am new to C++ programming. So i just wanted to know the link for the d...
[7 replies] Last: Here is another one: http://docs.linux.cz/programming/other/ALP/advan... (by guestgulkan)
Bloodshed Dev-Cpp indention.
 
int main() { int a = 5; char* b = "hgfh"; if a == 5 { a = 6; } ...
[7 replies] Last: QWERTYman - Instead of slang that no one else understands why not use ... (by AZlan LB)
by QiX
'void *' : unknown size
 
Hello, i'm writing a function which sort a 'void*' array using index numbers in 'indArr', and retur...
[6 replies] Last: Yeah, I'm writing this in C, thank you! (by QiX)
Structures, classes, and namespaces
 
From what I've read, structs, classes, and namespaces are really similar. I can't even tell the diff...
[4 replies] Last: For small projects, it isn't really. For medium and large projects,... (by Duthomhas)
Weird Error I Don't Understand (Solved)
 
i don't understand this error C:\Dev-Cpp\Makefile.win [Build Error] [1stprojfile.o] Error 1 ...
[11 replies] Last: well my birthday is in like 2 weeks exactly =P and thank you Mike i... (by hippie 0)
C4717
 
I am trying to overload the operators for the class 'Set'. Set is a character set class. I was giv...
[3 replies] Last: That looks better. You can use the < and > operators. Just not on ob2 ... (by Zaita)
Converting char[] to string
 
What would be the best way to convert char to string? Thanks in advance.
[1 reply] : char mychar = "bob"; string mystring = string(mychar); :)... (by Zaita)
by bzgirl
How do I initialize 2 arrays (one is 2-dimensional) from 1 input file
 
I am trying to find out how to initialize 2 arrays (1 one-dimensional and 1 two-dimensional) from 1 ...
[7 replies] Last: Your code looks fine. 1 think I would personally change is your for lo... (by Zaita)
how do you put 2 cout in the same program?
 
hi i just made my hello world program and i decided to play around with it. but i could not put 2 co...
[1 reply] : Try repeating the system("pause") after the second cout function. Oh,... (by QWERTYman)
June 2008 Pages: 1... 34567... 13
  Archived months: [may2008] [jul2008]

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