49,761 Topics
| |
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 | |
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 … | |
[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] = … | |
| 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 … |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
Hi.. somebody help me to implement c++ in Wifi development.. you will thankful.. | |
[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) … | |
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 | |
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. | |
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 … | |
Please help me on this one using c++ Input: 21 Output: 10101 this is our exam in automata.. | |
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 … | |
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 … | |
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. | |
| 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 … |
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 … | |
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, … | |
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 … | |
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 … | |
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). … | |
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 + … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … |
The End.