Forum: C++ Mar 6th, 2008 |
| Replies: 4 Views: 584 sorry im new to the pointer thing. this is what I have
it is not working.
string subordanate()
{
string *words[];
words[] = {
"when",
... |
Forum: C++ Mar 6th, 2008 |
| Replies: 4 Views: 584 I have an array that I need to make into an array of pointers and return the array.
string words[i] = {
"when",
"if",
... |
Forum: C++ Mar 5th, 2008 |
| Replies: 1 Views: 2,345 I have some sentence fragments and some words. I need to print out sentence1 + word + sentence2 capitalize the first charater in sentence1. Then, sentence3 + word + sentence4 capitalize sentence
... |
Forum: C++ Mar 5th, 2008 |
| Replies: 3 Views: 1,995 now i get "undefined reference to `Shuffle(std::string (*) [2])'
collect2: ld returned 1 exit status
"
but it seems to compile. I am using code blocks |
Forum: C++ Mar 5th, 2008 |
| Replies: 1 Views: 2,018 I need to get a string array and add a random number to it then sort it. What is the easiest way of doing this. do I need to convert the last element which will be the random number to an int then... |
Forum: C++ Mar 5th, 2008 |
| Replies: 3 Views: 1,995 I am tring to compile this simple string array. I am getting some struct error. "Cannot pass object of non-POD type in line 63. which is "printf("%14d%10d\n",array[i][1], array[i][0]);"
please... |
Forum: C++ Mar 4th, 2008 |
| Replies: 3 Views: 494 right but I am not using int i am using an array. So what would the systax be
char array1[i][j] = rand () % i;
??? |
Forum: C++ Mar 4th, 2008 |
| Replies: 3 Views: 494 I have a couple of sentences in an array. I need to randomly display 1 of them. How can I do this? |
Forum: C++ Mar 4th, 2008 |
| Replies: 4 Views: 535 |
Forum: C++ Mar 4th, 2008 |
| Replies: 4 Views: 535 ok so now how do I print the entire sentence.
int i;
for (i = 0; i < FIindex; i++)
{
fragments[i][0] = toupper(fragments[i][0]);
std::cout << fragments << endl;
} |
Forum: C++ Mar 4th, 2008 |
| Replies: 4 Views: 535 I have some sentences in a 2 dimensional char array. I need to change to first letter of each sentence to caps. I was thinking of removing the first char and placing it into 1 array and the rest of... |
Forum: C++ Mar 4th, 2008 |
| Replies: 1 Views: 814 I have some sentences that I want to print out the first character of each sentence. when I print it out I get the first character many times. here is the code. I just want the first character of... |
Forum: C++ Feb 23rd, 2008 |
| Replies: 1 Views: 821 I am fairly new to c++. What is the diffrence between ATL, CLR, or MFC and for what are they used for. |
Forum: C++ Feb 22nd, 2008 |
| Replies: 3 Views: 817 ok how do I go about doing this. I am fairly new to programing. is there a command to do this?? |
Forum: C++ Feb 22nd, 2008 |
| Replies: 3 Views: 817 I wrote a class and I want to give it to someone to use, but I dont want them to have access to the source code. My class is split into 2 files a .h and a .cpp how can I block them from seeing the... |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 854 I was reading your previos post. I did not add the lines
#ifndef filename_h
#define filename_h
#endif
to any of the files how does that work. I think that is the problem.
can u please... |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 854 Queen.h and Queen.cpp are included in the project. the .h in the header section the .cpp in the source section. |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 854 this is the error I am getting:
Error 1 fatal error C1083: Cannot open include file: 'Queen.h': No such file or directory c:\Documents and Settings\jmartinez\My Documents\Visual Studio... |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 854 I wrote a class in vs2008. I am creating a new project and I need to incoporate that class into it. How do I do that. I added the .h to the header section and the .cpp to the source file. In the... |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 // e-mail.h
#include "aosmtp.tlh"
class MyEmail
{
public:
//void SendEmail();
void MyEmail::Createfile(); |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 but do I need to do it that way even though I have the namespace included?? |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 without the test file it compiles fine |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 #include <comdef.h>
#include <iostream>
#include <fstream>
#include "aosmtp.tlh"
#include <string>
#include < sys/stat.h>
#include < io.h>
using namespace System;
using namespace std; |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 I created the class and I added another file called test. I want to use this to test it. I created it inside the same project.
I have email.h in "header files" and email.cpp in "source files" ... |
Forum: C++ Feb 15th, 2008 |
| Replies: 11 Views: 1,155 I am getting the following error: I am using vs2008 and e-mail.h is included in the project
Error 1 error LNK2028: unresolved token (0A00004A) "public: void __thiscall MyEmail::Createfile(void)"... |
Forum: C++ Feb 12th, 2008 |
| Replies: 2 Views: 474 yes e-mail.h is in the project.
I am using vs2008 |
Forum: C++ Feb 12th, 2008 |
| Replies: 2 Views: 474 I am getting this error when trying to complile the main program. the .cpp and the .h files compile fine, but not the main.
Error 1 error LNK2028: unresolved token (0A00004A) "public: void... |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 1,522 no the file does not exist. That's the problem. how do I create it. |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 1,522 I am running vs2008 I am creating a new c++ program. when I try to compile I get
"Error 1 general error c10100b1: Failed to load file "..\Debug\testing_email.exe". The system cannot find the path... |
Forum: C++ Feb 7th, 2008 |
| Replies: 4 Views: 652 |
Forum: C++ Feb 7th, 2008 |
| Replies: 4 Views: 652 Is there an e-mail class that I can use to be able to send e-mails. I dont need to send any attachments just text. |
Forum: C++ Jan 17th, 2008 |
| Replies: 3 Views: 620 where do I get the manuals from. Does VS come with them? |
Forum: C++ Jan 17th, 2008 |
| Replies: 3 Views: 620 Is there a tutorial on learning to work with api's. I am trying to automate a telnet connection to a router. I figured out how to telnet, but how to i type the commands inside the telnet session. |
Forum: C++ Jan 7th, 2008 |
| Replies: 3 Views: 2,320 I cant get the program to compile
I am getting 'system': identifier not found
I have the following includes
#include "stdafx.h"
#include "Email.h"
#include <iostream>
#include <fstream>... |
Forum: C++ Jan 7th, 2008 |
| Replies: 2 Views: 6,183 I figured it out. when you do a class library std is replaced by system. |
Forum: C++ Jan 7th, 2008 |
| Replies: 2 Views: 6,183 I am having some isues adding std as a namespace. I am using vs2008. don't know if that has something to do with it.
#pragma once
//using namespace System;
using namespace std;
... |
Forum: C++ Jan 7th, 2008 |
| Replies: 6 Views: 1,814 i have used std before. I am using vs2008 did they change the name to something else or do I need any includes that are missing. |
Forum: C++ Jan 7th, 2008 |
| Replies: 6 Views: 1,814 This is what I get:
error C2871: 'std' : a namespace with this name does not exist |
Forum: C++ Jan 7th, 2008 |
| Replies: 6 Views: 1,814 cool that worked now when I do:
system("telnet 192.168.1.1");
I get the same thing. |
Forum: C++ Jan 7th, 2008 |
| Replies: 6 Views: 1,814 I am new to c++ classes. I am trying to write a simple e-mail class. below is my .h file. In the cpp all I have is the main which is empty right now since it wont even compile. I am getting cout... |