
please wait
by geekocoder
input of scanf
|
Why Does the following code take 4 inputs???i am using codeblocks on ubuntu... #include <stdio.h> int main() { int p,n; float f,si; scanf("... |
Jun 5, 2013 at 3:08pm
[1 reply] : jeez, just use google. http://www.cplusplus.com/reference/cstdio/scan... (by mutexe)
|
by dhilchie
passing pointers and arrays
|
im having troubles with passing arrays and pointers. Im still not exactly sure on how i would pass a point that is an array to a function. not sure if i fdong t... |
Jun 5, 2013 at 2:51pm
[2 replies] Last: The name of an array is also a pointer to the first element of the arr... (by MikeyBoy)
|
by beginner123
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. I want the server to store the ip addresses of the clients... |
Jun 5, 2013 at 2:51pm
[2 replies] Last: I would write the file to a /tmp file, that way if the server reboots,... (by SamuelAdams)
|
by Ramzi89
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 see what I'm doing wrong? class Item { private: ... |
Jun 5, 2013 at 2:49pm
[6 replies] Last: // header file item.h class item { protected: std::string... (by JLBorges)
|
by rihardmarius
Pointers to functions
|
Hi, I'm at this part of the tutorial, in the section Pointers. http://www.cplusplus.com/doc/tutorial/pointers/ "C++ allows operations with pointers to function... |
Jun 5, 2013 at 2:39pm
[16 replies] Last: how would it be to pass a function as an argument to another function... (by Cubbi)
|
by optimisez
OOP
|
Sunshine Furniture Sdn Bhd has approached you to develop an application to track all the items in the company. (a) Define a class named Item to store the detail... |
Jun 5, 2013 at 1:44pm
[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 State State::operator + (State) that simply returns a Stat... |
Jun 5, 2013 at 1:18pm
[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 not exactly sure where to start. I know I don't know enough t... |
Jun 5, 2013 at 1:14pm
[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). What is the best method to use once I open the file for readin... |
Jun 5, 2013 at 12:45pm
[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 be easy because my actual coding work is back with numerous... |
Jun 5, 2013 at 12:19pm
[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]; for(int i=0; i<= n; i++) { for(int j=0; j<= min(i,k... |
Jun 5, 2013 at 10:30am
[4 replies] Last: ok mrm40, you're welcome! (by condor)
|
by sermanas
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 error like: "switch quantity is not an integer". So question, ... |
Jun 5, 2013 at 10:14am
[4 replies] Last: If you do as vlad said you will be using C# and no longer C++. (by Peter87)
|
by spriggan
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 clear how the push/pop functions have to be organized, and their... |
Jun 5, 2013 at 9:41am
[1 reply] : by looking at the traversal, i can say its a circular queue, google ci... (by SirSmilesaLot)
|
by AphexBravia
Basic Do While Loop
|
Hey, I'm trying to write some basic Do while loops. Have done a couple this morning and all worked fine, but for some reason I cant get this one working properl... |
Jun 5, 2013 at 9:07am
[5 replies] Last: ^ Cheers mate, ill try that from now on. (by AphexBravia)
|
by SourceCoded
Some trouble with vectors and classes
|
O hai hoomans of ceeplusspluss I have some code and I dont know whats wrong with it #include "Startup.h" #include <iostream> #include <sstream> #inc... |
Jun 5, 2013 at 7:52am
[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 then output it all jumbled up. I already know how to jumble... |
Jun 5, 2013 at 4:50am
[3 replies] Last: http://ideone.com/UIcIF8 (by naraku9333)
|
by ChoppySticks
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 to 20 items to manage and you'll be able to see see potential... |
Jun 5, 2013 at 4:28am
[1 reply] : Yup! Go to documentation and go down to input/output tutorials. It wi... (by Hambone)
|
by sakonpure6
FStream Help Please!
|
So I created a code to show your high score using ifstream and ofstream to save them to .txt and to read from them. So when you run the program the first time e... |
Jun 5, 2013 at 1:58am
[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 ‘int (matrix::)()’ does not match ‘float**’ Here... |
Jun 5, 2013 at 1:26am
[6 replies] Last: Thank you! I managed to fix it now. Below output. 8 4 [0,0]0 [0,1]1 ... (by a sk)
|
by Ramzi89
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 in ASCII so 9 is not lower? ch3 = 'C'; cout << "'... |
Jun 5, 2013 at 12:23am
[3 replies] Last: cool cool makes perfect sense. Thankyou. (by Ramzi89)
|