49,757 Topics

Member Avatar for
Member Avatar for ZlapX

I posted an earlier question and got no answers, which really is BS. so ima try again... I am trying to make a console program that can create a text document, and send it over ftp. thats it, I would like it if someone could point me in the right …

Member Avatar for ZlapX
0
143
Member Avatar for Kanoisa

Hi all, Im working on the design of a function at the moment and im not sure if the if statement i want to do is safe. Ill start with the data structures i have as this is where the problem could come from. (simplified with relevent bits only) [code] …

Member Avatar for Kanoisa
0
113
Member Avatar for Rickay

For a program I am working on, I need a way to use an if function for a variable, if the variable is within a certain range of numbers. i.e. [CODE]if(x == 1-5) // meaning if x is from 1 to 5 //do something... if(x == 6-10) // i.e. if …

Member Avatar for jonsca
0
133
Member Avatar for group256

Hello Everyone, I have been thinking about an assignment for couple of days and tried some methods but none works really perfect; I certainly don't need code, I just need some problem solving assistance. The question is, I'm supposed to read a text from a file, and then put them …

Member Avatar for vijayan121
0
160
Member Avatar for akilank

Hi.. somebody help me to implement c++ in Wifi development.. you will thankful..

Member Avatar for Kanoisa
0
237
Member Avatar for kiLLeR-eyEd_14

[code=c]#include<iostream.h> #include<stdlib.h> #include<time.h> #include<stdio.h> #include<conio.h> #include<windows.h> class TelCom { public: void menu(); void billing(); void viewlogs(); void prepaidOperations(int form); double compute(char user[9],int cid,char plan,double csms,int cmms,double ccall); }; class BoxLines { public: void box(int x1,int y1,int x2,int y2); void line(int x1, int y1, int x2); }; void sleep(unsigned int mseconds) …

Member Avatar for kiLLeR-eyEd_14
-2
96
Member Avatar for benshrupendra

I get runtime error when I run the application Thread ^readThread = gcnew Thread(gcnew System::Threading::ThreadStart(this, &PipeServer::Read)); readThread->IsBackground = true; [b]readThread->Start(client);[/b] The Error is: [COLOR="Red"][b]The thread was created with a ThreadStart delegate that does not accept a parameter[/b][/COLOR] Please help me to solve it, Thanks in advance. Regards, Rupendra

0
34
Member Avatar for ashishchoure

Hi, My Application's icon is not getting displayed after disabling "System Menu" option from Dialog Property. I don't want to use the system menu and close button. See the attachment for detail.

0
66
Member Avatar for p.jeet

Hello all, I am using R for my analysis and require C++ code to access in R. I used Rcpp package in R to accesss C++ code. But when I use the function given as an example: [CODE]const char* hello( std::string who ){ std::string result( "hello " ) ; result …

0
44
Member Avatar for janskey15

Please help me on this one using c++ Input: 21 Output: 10101 this is our exam in automata..

Member Avatar for tkud
0
71
Member Avatar for kandarpa

Hi All.. I have developed a tool in C++ and I want to check the performance of the tool using [COLOR="Red"]callgrind[/COLOR]. For the first time I have executed my tool with different input sets and I have taken the number of instruction cycles as the referance for further usage. Following …

Member Avatar for kandarpa
0
91
Member Avatar for maj13205

I am using Xcode on a mac osx with c++ and std project, I get the following error when I try to compile Build OpenCLCpp of project OpenCLCpp with configuration Debug Ld build/Debug/OpenCLCpp normal x86_64 cd /Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp setenv MACOSX_DEPLOYMENT_TARGET 10.6 /Developer/usr/bin/g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/Debug -F/Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/Debug -filelist /Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/OpenCLCpp.build/Debug/OpenCLCpp.build/Objects-normal/x86_64/OpenCLCpp.LinkFileList -mmacosx-version-min=10.6 …

Member Avatar for maj13205
0
113
Member Avatar for interist

Hello all, how can I pass some input from Java ti C++ using sockets. The input is only two int numbers. Any help with the sockets, please. I'm new but I need them.

Member Avatar for VernonDozier
0
199
Member Avatar for Brian Perrigan

Hey guys I've tried searching the internet for an answer on this and have come up short. I was hoping someone that does this could help me out setting it up. I want to write C++ using Mac OS. I tried going the Xcode route but found Xcode to be …

Member Avatar for iamthwee
0
178
Member Avatar for khaled mohamed1

i want to delete an element of array structure to use it again to more understand look to the part of this code [CODE] struct patient { int ID; char name[100]; float age; char sex[7]; char adress[100]; char hometelephone[12]; char mobiletelephone[11]; char workingtelephone[12]; char date[12]; char time[13]; } patients[100]; void …

Member Avatar for Aranarth
0
115
Member Avatar for thilangane

Hi, I am working on a project and when I run my code, I get a segfault. I checked it with valgrind, and it says that I am trying to access a memory location that I maybe not malloc'd, stack'd or recently free'd. The only 'mysterious' thing I'm doing is, …

Member Avatar for thilangane
0
230
Member Avatar for Hektzu

My c++ code [CODE=c] string map = "111111111111111111111111111" for (int i = 0; i < 20; i++) { int number = atoi(map[i]); } [/CODE] Gave me error: cannot convert parameter 1 from 'char' to 'const char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style …

Member Avatar for Hektzu
0
214
Member Avatar for Dingbats

Hello Everyone, my first post - so please don't shoot me if it goes wrong! I'd been looking for this for some time now and have seen a number of related queries but no solutions. I cannot take credit for the whole code here, but I did adapt it to …

0
537
Member Avatar for CanYouHandstand

Hi All I'm using SetWindowsHookEx to hook the keyboard. The connection is made and I am able to trap key presses. I'm also trying to call GetKeyboardState to obtain the state of the other keys at the time of the key press (to identify if shift, ctrl etc is pressed). …

Member Avatar for CanYouHandstand
0
653
Member Avatar for mrnutty

From project euler : [code] By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. [COLOR="Red"]3[/COLOR] [COLOR="red"]7[/COLOR] 4 2 [COLOR="red"]4[/COLOR] 6 8 5 [COLOR="red"]9[/COLOR] 3 That is, 3 + 7 + 4 + …

Member Avatar for iamthwee
0
136
Member Avatar for mrnutty

Look [URL="http://www.spoj.pl/problems/ADDREV/"]here[/URL] for a complete description of the problem. Your code should follow the coding standards, good names, spacing, easy on the eyes...etc. Make sure you handle all test case and boundaries. Good Luck, and happy coding. Although this is a C++ forum, it would be nice to see some …

Member Avatar for iamthwee
0
339
Member Avatar for Nekrowizard

I started reading up on C++ yesterday, and I am a person who learns best by doing rather than just reading theory, so I wanted to create a small game where you are presented with dialogue, and thereafter have 3 options which each will lead you to another piece of …

Member Avatar for Nekrowizard
0
102
Member Avatar for +_+man

hello everyone plss tell me whats wrong with my code[code]#include <iostream> #include <cstdlib> using namespace std; int main(void) { int choice; do { cout<<"Welcome To Hayzam's TimeTable\n"; cout<<" press 0 to quit\n"; cout<<"1- Sunday\n"; cout<<"2- Monday\n"; cout<<"3- Tuesday\n"; cout<<"4- Wendesday\n"; cout<<"5- Thursday\n"; cout<<"6- Friday\n"; cout<<"7- Saturday\n"; cin>>choice; } while (true); …

Member Avatar for tesuji
0
147
Member Avatar for mhm_ra

i write a program which write a value of a pointer into file using "out" now i need to read this data from the file but when i read it and print it on the screen a minus value appear. can you help me by tell9ing me how to read …

Member Avatar for peter_budo
0
198
Member Avatar for ZlapX

Hello forum, this is my first post and I am sorry it must start out with a nooby question, but to become good you have to start as noob so... Ok, this is what i need help with: Basically im coding my first c++ console program for a job, my …

Member Avatar for ZlapX
-1
142
Member Avatar for raniajay

Hi, I am just a starter in C++,i am having some doubts in solveing some C++ programing problems... I will be thankful if u help me solving it.. Queries r: write prog 2 find the square root of a number using repeated iteration technique. WAP to accept n +ve integer …

Member Avatar for arashyjrt
0
132
Member Avatar for Andreas5

Hello, i got in trouble once again, this time in excersise 14-4 in Accelerated C++. When i compile i get an error message that you probably know. [QUOTE]fatal error LNK1169: one or more multiply defined symbols found[/QUOTE] Can anyone see what i am missing here? Edit: This is all in …

Member Avatar for Andreas5
0
110
Member Avatar for yatender123

I have made a library management software in c++ i need some color codes and graphics to make it attractive can anyone help me

Member Avatar for Ancient Dragon
-1
32
Member Avatar for enkidu75

The point is to read a file and then display the information from a 2D array. Then find the highest value in each column and divide all the numbers in each column by the high value for that column. Then display the quotients (which I put back into the original …

Member Avatar for StuXYZ
0
152
Member Avatar for benshrupendra

Hello All Friends, I found an error on above mention code (Found error on red/Bold code). [CODE] namespace wyUpdate { using namespace System; using namespace System::Collections::Generic; using namespace System::IO; using namespace System::Runtime::InteropServices; using namespace System::Threading; using namespace Microsoft::Win32::SafeHandles; public ref class PipeServer { public: [StructLayoutAttribute(LayoutKind::Sequential)] value class SECURITY_DESCRIPTOR { public: …

Member Avatar for jonsca
0
142

The End.