Beginners - August 2009 (Page 3)

programming skill
hi guys, Can anybody give me ideas on how i can improve my c,c++ programming skills.
Aug 28, 2009 at 9:22pm
[3 replies] Last: You can get better by just reading the forums... I'm a pretty big ... (by brokenbot)
by Alan
@@@ is this valid syntax @@@
In order to create temporary levels of scope my C++ book told me that it is valid to do this: { short x = 5; } { short x = 2; } though, I...
Aug 28, 2009 at 8:32pm
[6 replies] Last: @brokenbot. Why are you talking about functions. The OP was asking a... (by Return 0)
HDF5-LITE
For those who are familiar with IO programming, could you please tell me what is wrong with my code (I am in fact unable to write the dataset in the *.h5 file)....
Aug 28, 2009 at 8:11pm
[no replies]
c,c++
hi guys, Can anybody give me ideas on how i can improve my c,c++ programming skills.
Aug 28, 2009 at 8:09pm
[4 replies] Last: Read lots of code. Write lots of code. (by helios)
by kazein
Convert int to str bug.
I'm trying to write an incrementing number into a tab deliminated text file. I googled some methods and compiled until there were no errors. It works nearly per...
Aug 28, 2009 at 6:23pm
[2 replies] Last: You're right, that is much easier. I'm not familiar with "<<" yet. ... (by kazein)
by Ken J
Can't get 'Hello World' to compile
Hi, I am a COMPLETE newby at programming but am trying hard to get as far as I can on my own. I have installed Cygwin, with the gcc compiler package, and it all...
Aug 28, 2009 at 5:39pm
[5 replies] Last: If you want to continue using GCC you need to add -lstdc++ when you co... (by chrisname)
Colouring the Console ?
Hello. I've searched for an answer but couldn't find one. How can I force my program in console to display the folowing in colors of my choice: 1) output...
Aug 28, 2009 at 4:38pm
[5 replies] Last: You can use the curses library or, if on Windows, SetConsoleTextAttrib... (by Bazzy)
String Printing as float number :D
Hello.. please refer to this for more info .. http://www.cplusplus.com/forum/beginner/12300/ I'm in front of a problem that I'm supposed to print the resu...
Aug 28, 2009 at 4:33pm
[3 replies] Last: Just to add: cout << someting; and stringstream ss; ss << so... (by Bazzy)
error: cannot convert 'double' to 'double*'
The error is: error: cannot convert 'double' to 'double*' for argument '2' to 'void selection_sort(int, double*)' Any help would be appreciated. The pro...
Aug 28, 2009 at 4:14pm
[4 replies] Last: I figured that out but thanks. New problems now! :) (by IamScaredOfTrees)
by MrBr
Initialize struct as a pointer
Hello everybody, I have a little trouble initializing a struct which is declared as a pointer while this #include <iostream> struct teststruct { ...
Aug 28, 2009 at 4:06pm
[15 replies] Last: Yes. It's syntactic sugar. Just like v ==*(v+i) (by helios)
errors get thrown when i close the cmd
i realize that i have coded more than i should for such a simple thing...but it was to just make sure i understood everything. what it does is add 2 vectors tog...
Aug 28, 2009 at 2:22pm
[8 replies] Last: well i went ahead and re-applied what i had learnt here to create some... (by prodiga)
by Nelo87
Executable File in Visual Studio
I just started my Data Structures class and our professor asked that everybody should start using Visual Studio instead of Dev C++. I'm trying to compile some ...
Aug 28, 2009 at 1:27pm
[2 replies] Last: You can right-click the solution or project name in Project Explorer a... (by webJose)
walk me through this please?
hey guys, i need a little bit of help in classes (section 1). // example on constructors and destructors #include <iostream> using namespace std; class C...
Aug 28, 2009 at 8:42am
[8 replies] Last: I think you wanted to do this: CRectangle *a,*b; a = new RCecta... (by Gregor)
Simple Code - Stumped on an Error
Hey all. I'm new to C++ and this code I'm working on is my first "project" if you will. It's not complex at all, but I can't figure out where I'm going wrong. E...
Aug 28, 2009 at 2:18am
[4 replies] Last: your code should be like this. note : you should not redeclare the var... (by blitzmon)
storing a 2d array with one string & sorting it
sorting a possible 2day array - im trying to sort an array that recieves the user's input for each element. If the input has a "," (comma) in it then i think i...
Aug 28, 2009 at 1:27am
[2 replies] Last: Don't use cin for string objects. Use getline(cin, str) (by mcleano)
by Alan
Inline array declaration URGENT@@@
I want to know what the syntax is for inline array definitions (like arrays created when calling a function): void foo(int*){}; /* ... */ foo(new int {...
Aug 28, 2009 at 1:10am
[2 replies] Last: that was what I first thought but it gives an error /* * In fu... (by Alan)
by trasgu
Opening File Failure
Hi: I'm using wxDevC++ and Vista. I'm having a problem with file opening. I have a file called testFile.txt in the same directory as the following simp...
Aug 28, 2009 at 12:10am
[5 replies] Last: Update: Writing the file's full path allows the program to open the fi... (by trasgu)
by wtf
Why doesn't remove() function work with files that I have had open in fstreams?
I always end up getting: Error deleting file: Permission denied What does this mean? I've tried closing the fstream, clearing the flags of the fstream. Wh...
Aug 27, 2009 at 11:39pm
[1 reply] : Never mind again! I had had a second fstream to test if it had been o... (by wtf)
Stream I/O query
I'm trying to read an array of character strings (theList) to a text file and then read it back into another array of character strings (inList). I need inList ...
Aug 27, 2009 at 9:47pm
[6 replies] Last: Sorry, typo - my code has theFile.getline(inList , 20); (by paoloricardo)
Fahrenheit to Centigrade Formula Returning Zero
Hi all, I've got a problem with a formula that I am trying to use to convert from F to C. Seems that 5 / 9 always returns a zero. Any suggestions?? Here is the ...
Aug 27, 2009 at 9:14pm
[2 replies] Last: Awesome! Thanks!! (by goldham)
August 2009 Pages: 12345... 17
  Archived months: [jul2009] [sep2009]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.