49,757 Topics

Member Avatar for
Member Avatar for Duki

Hey guys, I'm going to be starting a research project pertaining to [URL="http://www.jauswg.org/index.shtml"]JAUS[/URL]. Basically, this is a standardized protocol to be used in autonomous robotics... someone will essentially connect to a robots IP and be able to transmit various commands over 802.11. I not exactly sure where to start, so …

Member Avatar for Duki
0
89
Member Avatar for serkan sendur

[CODE]/* sscanf example */ #include <stdio.h> #include <iostream> using namespace std; int main () { float f; int i; char * the_string = "foo -3.6 fum dum 17"; int r = sscanf(the_string, "foo %f fum dum %d", &f, &i); cout << f << " " << i << " " …

Member Avatar for serkan sendur
0
196
Member Avatar for GDICommander

Hello everyone. I am using ACE and I'm using the following method: ACE_OS::read(char* buffer, int nbbytes, int perms); I was informed that Windows is reading data from disk sectors and it puts the contents of the read sectors into the cache (who is in memory). I don't want that behavior …

0
43
Member Avatar for brixton

Hello, I've got the following code: [code] wxString path = filepath; wxString newpath = filepath; fstream f(path.Append("/tests/tests.bin"), ios::in | ios::binary); fstream fnew(newpath.Append("/tests/temp.bin"), ios::out | ios::binary); Test* transferTest = new Test(); int thisSize = sizeof(Test); bool success = false; bool toBeDeleted = false; int testNo = 1; if (f) { f.seekg(0, …

Member Avatar for brixton
0
107
Member Avatar for WaelTheNoble

When I executed the following code the output appears to be very strange to me. Can any one explain this unexpected result to me. The code: [code] #include <iostream> using namespace std; class Y { private: int x; public: Y() { x = 7; } int getX() { return x; …

Member Avatar for WaelTheNoble
0
139
Member Avatar for abuthalip

Error : warning: cannot pass objects of non-POD type `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >' through `...'; [Code] int main() { ListeString Parts; ListeString::iterator iter; Parts.push_back("One"); Parts.push_back("Two"); Parts.push_back("Three"); iter = (*mtcParts)->begin(); while ( iter1 != (*mtcParts)->end()) { printf("%s\n",*iter1); iter1++; } getchar(); return 0; } [/code] By using cout, i am able …

Member Avatar for StuXYZ
0
1K
Member Avatar for yilmazhuseyin

hi I want to write some text on windows wallpaper. does anybody know how to do that. (on wallpaper ,but under window frames.). (dynamic text: like time. so please do not suggest to write it with paint. :) )

Member Avatar for yilmazhuseyin
0
106
Member Avatar for ItecKid

Hello, I am having some trouble reading data from a .txt file. I know that the file contains strings separated by white space. The problem is, I don't know how many strings there are, so I would like to go through the file one string at a time, and then …

Member Avatar for ItecKid
0
147
Member Avatar for CPPRULZ

When a pointer is deleted, is the memory it is pointing to only returned to the heap or is it also nulled too? Thx

Member Avatar for Salem
0
67
Member Avatar for rosenberg_a

These are my three files. The header file.... [CODE] #ifndef MONTH_H #define MONTH_H #include <string> #include <iostream> using namespace std; class Month; ostream &operator<<(ostream &, const Month &); istream &operator>>(istream &, Month &); class Month { private: string month; int monthNumber; public: Month(); Month(string); Month(string, int); void setName(string); void setMonthNumber(int); …

Member Avatar for rosenberg_a
0
113
Member Avatar for deerowbear

Hi there, I am trying to write a C++ app using Dev-C++ 4.9.9.2. The app is supposed to read in a txt file and then use templates to read in the files and swap data that gets populated in a ptr array. The errors are: [Linker error] undefined reference to …

Member Avatar for deerowbear
0
71
Member Avatar for cppnewb

Hi. I am making a program, and I have a main section and a class that the main section tefers to in a .h file. The Ifstream part wont work, and i dont know why. Please help. MAIN: [CODE] #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <fstream> using …

Member Avatar for cppnewb
0
193
Member Avatar for Himerz

Can any one help or give some good advice on where I need to go from a point in my code. I am building an asterisks tree and I managed to get that part done, but there are three thing I need to input to complete the assignment. 1. And …

Member Avatar for Himerz
0
297
Member Avatar for RayvenHawk

I'm having trouble getting my sprite to go from the right side of my screen to the left and then swap images so it appears to be walking back to the right side and then repeat that process. Ive manage to only get the cats to walk to either direction …

Member Avatar for StuXYZ
0
111
Member Avatar for lameassthemity

I'm writing a class planner with a structured array declared in the header [code=c++] #include <string> using std::string; struct Classes { string ClassName; string ClassNumber; string DaysMet; int StartTime; int EndTime; string Teacher; int Students; }; [/code] this is the print function of the program [code=c++] int Print() { system("cls"); …

Member Avatar for shasha821110
0
89
Member Avatar for avillachandok

hi, Here is my code on the three sorts. I've place in the counter called icompare&imove for insertion sort; bcompare&bmove for bubble sort and scomare and smove for selection sort. I've also used time_t as a timer to calculate the time it takes to sort the three. can someone please …

Member Avatar for StuXYZ
0
115
Member Avatar for Justmehere

What I would like to do is write an application that a user can interact with through IE for submitting mathematical notations. What is the best method of doing this ? Will a plugin work or maybe a browser add-on or an active x control ? I am not familiar …

Member Avatar for Justmehere
0
116
Member Avatar for scarypajamas

In my MFC c++ app, when I try to include afxwin.h into my project, it gives me these errors. Whats the problem with it? Did I misunderstand something? I'm using vc++ 2005 express if it makes a difference. [TEX]1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc/afx.h(250) : warning C4793: …

0
114
Member Avatar for mrnutty

how would you seperate a character in a string. For example : string ="2x^2+8" how would i seperate the string into '2' 'x' '^' '2' '8'. so I could find its derivative.

Member Avatar for Comatose
0
98
Member Avatar for arun_lisieux

PROBLEM : A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. I came up with a solution for the above problem. I …

Member Avatar for arun_lisieux
0
90
Member Avatar for Ratte

I've searched all over the place and I cannot seem to find a well working, reliable solution to this that is not platform specific. Here is what I have: Main menu of a class (while loop with 0 as exit). User selects choices. Choice calls class function to carry out …

Member Avatar for Comatose
0
1K
Member Avatar for u8sand

Hello all. Im back with another question : / You see.. At my house. We connect to our home network, in order to do so i must put in a HUGE Wep Password and bla bla bla. It takes for ever. And whenever lets say i get a new computer …

Member Avatar for u8sand
0
113
Member Avatar for cwarn23

Hi, I have been working on a simple command line program that will simply store my data in the code variable then submit that data to another program. Although I have the thory right, I don't understand why the middle double quote ( " ) seems to escape the quotes …

Member Avatar for cwarn23
0
206
Member Avatar for CPPRULZ

Say I have a class (say number) and declare a private variable (say int num) and have a public member function(say int getnum() ) that retrieves the private variable. When I in the main() without initializing the private variable int num (of course after declaring the class variable say test) …

Member Avatar for VernonDozier
0
108
Member Avatar for Corus

Using a long double, it seems to cut out a decimal when it increases another digit. The first scan won't work properly, as it only shows 3 decimals, but should have 4, which doesn't concern me, but i'd like it to always have three. Price: 5.99 Scanned Price (Over and …

Member Avatar for Corus
0
103
Member Avatar for azwraith69

hello.. thx in advance just want to ask something.. is there any portable functions that is equivalent to system("cls")? a function that clears the screen? since system() is not portable.. thx...

Member Avatar for Ancient Dragon
0
474
Member Avatar for Bhawana Pant

program to count the number of characters in any string excluding the blank space.

Member Avatar for John A
0
120
Member Avatar for cylow22

hi there, like almost everybody else here i've got a problem. I am working on a simplified IRC for unix, consisting of a server and a client. It's a task for university.. my problem is, my client receives strange signs from the server and when i want to parse them …

Member Avatar for cylow22
0
97
Member Avatar for shila13

Could someone help me with the explanation of the codes below? thanks [code=cplusplus] #include<iostream.h> #include<conio.h> #include<process.h> int a[9][9]={0,0,9,0,0,0,0,2,0, 0,6,0,0,0,9,0,0,5, 0,0,0,8,7,0,0,0,0, 0,0,1,0,8,0,0,0,0, 0,4,0,5,0,7,1,3,0, 6,0,0,0,1,0,4,0,0, 0,0,0,0,4,8,2,0,0, 7,0,0,6,0,0,0,5,0, 0,9,0,0,0,0,8,0,0}; int b[9][9],k,l,m,z,flag=0,g,h; int horizontal(int,int,int); int vertical(int,int,int); int box(int,int,int); int assume(int,int); void main() { clrscr(); cout<<"enter values\n"; for(int i=0;i<9;i++) for(int j=0;j<9;j++) cin>>a[i][j]; for(i=0;i<9;i++) for(j=0;j<9;j++) b[i][j]=a[i][j]; …

Member Avatar for iamthwee
0
94
Member Avatar for scias23

i have written this program, it's nearly finished, but i didn't found out right away that my code has bug.. once i enter number of students i wish to add, the value goes to the for loop, i think i coded that just fine, but the problem is, for example, …

Member Avatar for StuXYZ
0
132

The End.