49,761 Topics

Member Avatar for
Member Avatar for flyingguitar

Hey Guys, I'm having some trouble compiling my code. it says that there's an error in one of apple's header files. /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/usr/include/arm/_types.h:13: error: expected constructor, destructor, or type conversion before ‘typedef’ nvm, solved

Member Avatar for flyingguitar
0
109
Member Avatar for Rickay

I am trying to get the following code to take in either a number or an integer, determine whether what the user inputted is an integer or a letter, and then print a random digit if it is an integer, or a random letter if it is a letter. [CODE]#include …

Member Avatar for jonsca
0
238
Member Avatar for eng.M

[COLOR="Red"]Help me .. I can not understand this question.. What does the following function do?[/COLOR] void insert(int a[], int& n, int maxsize, int index, int key) { if (index < 0 || index > maxsize-1) { ; } for (int i=n; i>index; i--) { a[i] = a[i-1]; } a[index] = …

Member Avatar for eng.M
-1
93
Member Avatar for Brian Perrigan

Can someone help me develop the pseudo code for this so I can try and code it out? I'm getting confused about how to develop this simple program: Problem: Develop a Null Cipher Coder using Nested Loops and Command Line Arguments: Encoded .cry files can be found here: I downloaded …

0
58
Member Avatar for shaynerossum

Thank you for reading my thread. I am experiencing an issue using struct tm and I can't figure out what I am doing wrong. I have looked at several examples and read up on the structure, but to me it all looks right. I would appreciate some fresh eyes on …

Member Avatar for shaynerossum
0
424
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
115
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
232
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
557
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
659
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
149
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
200
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

The End.