I've been having a lot of problems with fstream lately..
for my class theres this source code that won't compile... i was hoping someone could help me shed some light...
#include<iostream>...
Type: Posts; User: MegaManZZ
I've been having a lot of problems with fstream lately..
for my class theres this source code that won't compile... i was hoping someone could help me shed some light...
#include<iostream>...
AAAAAAHhhhhhhhhh
silly me.. learnt something new.
typedef void (*fp)(int i, int j);
void typedef_func(int i, int j)
{
cout << "i = " << i << " : j + " << j << endl;
}
int main()
{
fp obj;
well put Fillyourbrain.. thnks
can someone tell me the difference, pros and cons of both the following functions.
class Node
{
int data_;
Node* prev_;
Node* next_;
public:
thanks for the reply guys..
did anyone have a way of
showing me how to properly make an int * and on another line dynamically allocate memory to it. and then insert data into it and "cout" it
Hey guys.. I'm hoping for some clarification on this situation i created.
i was playing around with pointers and this situation came up.
(please forgive me if im just being absent minded and it's...
thanks guys, that helps..
It was a dumb mistake!
guess i didn't get a good nights sleep :)
this code is giving me an error. im still trying to figure it out and getting frustrated..
seems like a simple problem. here i is.
#include <iostream>
using namespace std;
template...
god bless these forums..
thank you foxman.
**just realized my topic title makes no sense.. apologize ahead of time.
I'm having a hard time with this code.. plz help me out..
#include<iostream>
using namespace std;
char...
awesome...
I'm pretty sure i get it now. Thanks for the help.
thanks Elysia for you concern, but i'm already aware of all those things you have mentioned. I just was looking for the answer to a particular question.
As for the answers that everyone has...
would really appriciate someone clarifying a couple of questions for me..
first question:
I typed this code in
#include<iostream>
using namespace std;
char input[101];
I'm not sure if thats the solution he's looking for.. ill take it to account tho.. anyone have any other solutions.?
Im doing a homework assignment and am stuck on a question which i feel should be rather easy, but is giving me a really hard time. Please help a guy out.
how can you pass a "void pointer" to a...
could you possibly give me an example?.
how could i achieve the following.
string monthChoice, dateChoice;
int dayChoice, yearChoice;
cout<<"enter month";
cin>>monthChoice;
cout<<"enter day";
...
makes sense ill give it a try
inside my function, i need these statements to work.
the function is.
void enter(struct date *pdate, char desc[ ])
check = 0;
while(check != 1)
this is a class lesson and the example uses gets??? dunno why but it does.. other then that everything worked fine!!
cool. but why isn't the comparison working lol:)
i need to input a month and check to see if the month exists in the array.
here is the code.
char monthNames[2][10] = {"jan", "feb"};
int check = 0;
while(check != 1)
{
...
well i guess it's c. It's a c++ class tho but they gave a c example to work with.. sorry i will post on the c board.
this is a homework assignment.. the only header thats included is
#include <stdio.h>
does that support std::string?
also is there a faster method of getting the same result?
or better method.