Beginners - June 2010 (Page 21)

Is a pointer remembered after closure?
 
Is a pointer remembered after you close the program? so that, when I open it next time, it stills knows the value? Xander
[5 replies] Last: Ok thanks Galik! (by xander333)
by hkproj
const char* not accepted by function argument
 
Hi, I am trying to use TinyXml to read and write xml. I declared a string: const char *TASK_FILE = "Tasks.xml" and want to reference it in the TiXmlDocument...
[4 replies] Last: thank you. it solved my problems. (by hkproj)
printing 6 decimal digits
 
I have a float f. How do I ask the program to print 6 decimal digits?
[1 reply] : http://www.cplusplus.com/reference/iostream/manipulators/setprecision/ (by bluezor)
Problem displaying numbers and odd numbers in a while loop
 
Hi, I have been doing this exercise from a book - stated below a.Prompt the user to input two integers: firstNum and secondNum (Hint: Ensure that firstNum is...
[no replies]
Dev C++ Permission denied to compile?
 
Whenever I try to compile in Dev C++, I get two errors at the bottom with no line. One says "Permission denied" , and another says "Id returned 1 exit status...
[1 reply] : hi, you must save it another file because i face it also it many time... (by sehrish)
by wtf
Initializations of user-defined types
 
I´m trying to declare an array of 100 sudokus, but how can I do so without calling my default constructor? sudoku game(3,0); is the propper way of de...
[1 reply] : Use a vector and its default value constructor. http://www.cplusplu... (by PanGalactic)
[C/C++] Hamiltonian Circuits implementation problem
 
I am a very beginner to C/C++ and programming at all. One of the first tasks I had been given recently was to implement a pseudo-code and make a fully functiona...
[1 reply] : Maybe you should try something more suitable for beginners jumping rig... (by C to the UNIT)
IDE vs Compilier
 
Ok this not a programming question but an issue of IDE vs compilier issue. First of all (I know what it means) when someone calls a compilier an IDE i feel thre...
[8 replies] Last: Oh. So it's just an bad joke. Still, it could be construed as offensiv... (by chrisname)
Problem Passing a character array to a function
 
I am trying to get my basics rite. I tried to pass a reference to a char pointer to a function and modify the contents of the array but i get an access violatio...
[6 replies] Last: Nothing. But did you mean to say this? const char* str1 = "co... (by Galik)
Syntax for printing commas in numerics
 
I've got a program I need a mortgage table printed as an output and I'm struggling with the syntax for printing commas in the digits(ex. 20,000 instead of 20000...
[4 replies] Last: The code works just fine with VS2010. (by PanGalactic)
Merge Sort
 
Hello dear Community I'm learning C++, so I thought to implement MergeSort. I've written this code, but the problem is that some array elements are double a...
[no replies]
Trouble in Variable Passage
 
Hello fellow c++ programmers! This is my fisrt post here and sorry but i need to suck up some information form you. :D We're learning C++ at college and i ha...
[1 reply] : anyone? i'm still trying that, exaustive hours without any solutio... (by Centurion210)
by timing
rand() strange behavior when in another function
 
I am using modulus 6 plus 1 on rand() to generate numbers from 1 to 6 through a function call. But the function returns 004111E5. I don't know why the rand() do...
[4 replies] Last: The angle brackets <string> tell the compiler pre-processor to look in... (by Galik)
What is wrong with my program?
 
Hi there, I am very new to C++, so this is probably a really stupid beginners mistake, but yet I cant figure it out on my own. The following program should prin...
[5 replies] Last: It would not be unprofessional, however you in general should not use ... (by jsmith)
I don't get it!!
 
Everything seems perfectly normal to me, but it doesn't work... I'm making a prog that stores the numbers you enter and then - when you enter a negative value ...
[5 replies] Last: It fixed it ! Thanks a lot Athar (by xander333)
point
 
Hi . what is my error in program #include <iostream> using namespace std; int main() { char name ; char* ptr1,*ptr2; system("title Lab...
[1 reply] : This is a duplicate of: http://www.cplusplus.com/forum/beginner/24716/ (by Galik)
system is not declared in this scope
 
So I'm making a program starter, but when I try to run a file it says (at compiling): system was not declared in this scope. #include <iostream> using na...
[1 reply] : Alright i got it to work with cstdlib but i only reads the file until ... (by xander333)
Problems with loop
 
I'm trying to get this to output: Month Principal($) Interest($) Tax($) Payment($) New Principal($) 1 20,000.00 100.00 58.33 700.00...
[2 replies] Last: I guess that what you mean is that the number under "New Principal($)"... (by magnificence7)
I can't find the bug...
 
So I started experimenting with arrays and I tried to make a program that sums everything until you enter a negative value. #include <iostream> using nam...
[7 replies] Last: I got it! Thanks for your help all! (by xander333)
Pupulating 3d array from three column data file
 
Hi all, I have a text file with three columns like so: 4.556663 238.047684 0 77.605812 268.392334 0 152.255829 256.117035 0 161.680557 252.263550 0 16...
[5 replies] Last: Sorry... I should have explained that. The "::" is called the scop... (by jrohde)
June 2010 Pages: 1... 1920212223... 26
  Archived months: [may2010] [jul2010]

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