Beginners - June 2013 (Page 42)

input of scanf
 
Why Does the following code take 4 inputs???i am using codeblocks on ubuntu... #include <stdio.h...
[1 reply] : jeez, just use google. http://www.cplusplus.com/reference/cstdio/scan... (by mutexe)
passing pointers and arrays
 
im having troubles with passing arrays and pointers. Im still not exactly sure on how i would pass a...
[2 replies] Last: The name of an array is also a pointer to the first element of the arr... (by MikeyBoy)
how to save item in memory
 
i created a server using a tcp connection. I also have a client program that connects to this server...
[2 replies] Last: I would write the file to a /tmp file, that way if the server reboots,... (by SamuelAdams)
Const static arrays and classes
 
Hi I'm trying to create a const static array of string for a pure virtual base class. Can anyone...
[6 replies] Last: // header file item.h class item { protected: std::string... (by JLBorges)
Pointers to functions
 
Hi, I'm at this part of the tutorial, in the section Pointers. http://www.cplusplus.com/doc/tutorial...
[16 replies] Last: how would it be to pass a function as an argument to another function... (by Cubbi)
OOP
 
Sunshine Furniture Sdn Bhd has approached you to develop an application to track all the items in th...
[6 replies] Last: And where can I find documentation about bool operator==(Item& aItem)... (by optimisez)
by Scipio
flexible class operators
 
Hey People, I have a very simple class State containing a bunch of variables. Now I want to define ...
[3 replies] Last: Nope. You're not going to be able to do that. You could use an ar... (by AbstractionAnon)
by Hvqc
Help with a database?
 
I am still very new to c++, but I would like to practice making something like a database, but I'm n...
[1 reply] : You could take a look at SQLite3. There's an example here: http://www... (by kbw)
Copying bytes from txt file
 
Hello. I want to copy the last 4 bytes from a specific line from a text file (ie, always line 5). Wh...
[2 replies] Last: size_t n = 5; std::string line; while ( n && std::getline( YourFil... (by vlad from moscow)
by Vigii
Is there any predefined functions in C++ for differentiation
 
Hi, I'm looking to perform a different order of Differentiation for a function given. It could...
[2 replies] Last: Please see: http://www.cplusplus.com/forum/beginner/65749/ (by condor)
by mrm40
using array members
 
Hi. i have the code below: int dynamicbinomial(int n, int k) { int* b = new int[n,k]; fo...
[4 replies] Last: ok mrm40, you're welcome! (by condor)
String in switch statement
 
So I have a problem, i wanna use string in switch statement, but when i do that, c++ show me some er...
[4 replies] Last: If you do as vlad said you will be using C# and no longer C++. (by Peter87)
problem in understanding stacks and queues
 
Hi all. i'm preparing the c++ test and i got some problems with stacks and queues. i have not clea...
[1 reply] : by looking at the traversal, i can say its a circular queue, google ci... (by SirSmilesaLot)
Basic Do While Loop
 
Hey, I'm trying to write some basic Do while loops. Have done a couple this morning and all worked f...
[5 replies] Last: ^ Cheers mate, ill try that from now on. (by AphexBravia)
Some trouble with vectors and classes
 
O hai hoomans of ceeplusspluss I have some code and I dont know whats wrong with it #includ...
[1 reply] : the error pretty much says it all: on line 30: you pass a string whil... (by coder777)
by Ch1156
Read words from file, choose one then output
 
Ok so i want the program to be able to read a list of words from a file and then randomly choose one...
[3 replies] Last: http://ideone.com/UIcIF8 (by naraku9333)
Saving data entered by the user?
 
I'm trying to make a console app that manages your money in a game's auction house. You can add up t...
[1 reply] : Yup! Go to documentation and go down to input/output tutorials. It wi... (by Hambone)
FStream Help Please!
 
So I created a code to show your high score using ifstream and ofstream to save them to .txt and to ...
[1 reply] : Never Mind I GOT IT WOOOOOOOOOT! OMG it feels so nice when the program... (by sakonpure6)
by a sk
Method return type?
 
What's wrong with my code below? Throws this exception: matrix.cpp:49:24: error: argument of type...
[6 replies] Last: Thank you! I managed to fix it now. Below output. 8 4 [0,0]0 [0,1]1 ... (by a sk)
confusion with comparison of char
 
Why is this output as true. Arn't 0 and 9 converted to their ascii equivalents and numbers are lower...
[3 replies] Last: cool cool makes perfect sense. Thankyou. (by Ramzi89)
June 2013 Pages: 1... 4041424344... 49
  Archived months: [may2013] [jul2013]

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