- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 64
- Posts with Upvotes
- 56
- Upvoting Members
- 25
- Downvotes Received
- 23
- Posts with Downvotes
- 17
- Downvoting Members
- 11
- Interests
- C++, Java, J2ME, JAVA Swing, JavaScript, PHP, AMXX, DHTML, Video Editing, Poetry, Digital Imaging, Art,…
I got this assignment and I'm stuck. I have to write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367. Can someone help? :confused: |
|
[B]PLEASE NEED HELP WITH THIS HOMEWORK.... THANKS[/B] THE FOLLOWING CODE PERFORMS A [B]SNAKE GAM[/B]E USING GRAPHICS.H LIBRARY IN [B]TURBO C++ COMPILER[/B]... PLEASE ADD TWO MORE FEATURES... USING AN "+" CHARACTER TO INCREASE VELOCITY OR REDUCE DELAY AND ALSO AN OPTION TO RECORD HIGHER SCORES. PICTURE: [ATTACH]15179[/ATTACH] THE FOLLOWING CODES NEED … |
|
[B]hi friends[/B] this small compact code is for printing any number of prime numbers in C Language, you just have to change the last line's 500 to any number you want, here some points necessary to understand the code are as follows- 1.> variable torf stands for true or false,in … |
|
hi can anyone help me i am trying to get a random character generator which generates 10 characters in ASCII range and then cast them into characters heres my code but its not working. it says error C2440: '<function-style-cast>' : cannot convert from 'std::string' to 'char' heres my code [code=c++] … |
|
My school and the education board uses Turbo C++ as the compiler. I have Windows 7 64 bit. Can anyone tell me how can I install Turbo C++ on my computer. |
|
Hi! I've encountered another problem, The code below is just the part of the code where the error occurs int FindStr(FILE *f, char *str) { int s_pos; //string position in the text int c_pos; //char position in the text char *string; char ccnt; //char count s_pos = -1; c_pos = … |
|
Can someone show me algorithm so i can sort array like this? [Picture](http://i.imgur.com/HhQ4I.jpg) |
|
Hi, Im trying to parse a file which contains some random text. How can i match a case which seperates "garbage" (anything but digit/letter) char?? for e,g: 25.5.5 will produce . (the 2nd dot, because 25.5 is a number (rational)) another e.g: ----3.82 will produce --- (because -3.82 is a … |
|
is there a way in python to only take from a file a string in between certain characters? for example, if i have this in a file: city state[long, lat]population how can i take from the line just what is in between the brackets (that is, come up with [long, … |
|
Hi everyone. I have a UI Design that I got coded by my software developer and when I change the color of an image and then run under "debug" The image stretches even though I never changed any dimentions or anything. All I did was change the color.Any ideas what … |
|
Your task is to write a program that checks html files, (web pages) to determine whether the embedded XHTML tags are balanced. Balanced tags are necessary for the file to be a valid XHTML file as explained above. The first phase takes care of reading the file and finding all … |
|
Hello Guys! Can anybody help me with this code? So what I need? here is it: I want to fill out global variable "student_marks" with a grade for each student and keep it once is loaded. So it means without calling the function "def add_mark()" I will be able to … |
|
I'm new to programming and C++. I've managed to succesfully insert multiple nodes from front. Problem is that when printing it starts with the latest node and goes "backwards". I would like it to start with the first node and print forward. Therefore I would like to insert new nodes … |
|
Source code implemented by [B]Niyas C S2C PPMHSS Kottukkara Kondotty Malappuram Kerala St India[/B] |
|
Hello everyone! I have been working on a sudoku generator. My main aim is to create a completed 9x9 grid that follows the rules of sudoku. The grid should display unique numbers every time it is run i.e the numbers have to be randomised. My logic in tackling the problem … |
|
HI All How can we generate a sine wave without using the sin() function. Thanks pretu |
|
Could someone help me. I don't know why i get a stack corruption . Here is my program: [CODE]#include<iostream> #include <fstream> #include<conio.h> #include <string> #include "aes.h" using namespace std; int main(int argc, char **argv) { unsigned char key32[32]; unsigned char iv[16]; unsigned char* inbuf=new unsigned char[128]; unsigned char** intext=new unsigned … |
|
Hi, My program is trying to read from file Lithuanian words, the language has some additional characters than ANSII character set. The program uses wstring, wifstring classes for reading, but I gotta feeling it is something wrong with input,do I need any special directive to compiler or the language has … |
|
Hi, Im trying to write some code which adds the combined height and weight of two dogs, returns the result and then displays it..The problem is, the result returned is wrong (i think the operation is just adding two memory addresses)..The =operator code is returning rubbish as well, i think … |
|
I am getting the following two errors, i am lost on how to fix them: Exc_3.cpp(54) : error C2082: redefinition of formal parameter 'name' Exc_3.cpp(54) : error C2440: 'initializing' : cannot convert from 'char[]' to 'char' Here was my original prompt, I think i did part B wrong.....wasn't sure how … |
|
Hi All, i want to know what is the use of const volatile variable, where exactly it is required to use. |
|
Can I somehow use the following code to remove all the elements of a binary tree? [CODE] void BinarySearchTree::remove(int d) { //Locate the element bool found = false; if(isEmpty()) { cout<<" This Tree is empty! "<<endl; return; } tree_node* curr; tree_node* parent; curr = root; while(curr != NULL) { if(curr->data … |
|
plz mention me the errors i dont understand what i do.. [CODE]#include<fstream> #include<iostream> #include<string> #include<ctype.h> #define _TABSIZE 4 using namespace std; int tabsize = _TABSIZE; class token { public: token() : _what(code) {} public: enum type {code, comment, pp, keyword}; string _str; type _what; friend istream& operator>>(istream&, token&); friend ostream& … |
|
how to make a simple browser using c++ and by using <stdio.h>&<conio.h> |
|
Good evening guys.... i'm newbie in here and in c++... while i in the middle of pratice in making program... i try to make a stack that can check whether the string that user input is palindrome or not. i'm using visual studio 2010 and get autos error this is … |
|
[code] int main() { const char* p = "Hello"; cout << sizeof(p) << endl; } [/code] Why this is 4 ? |
|
I want to implement a file lock using j2ME for mobile files...Can you please help me how to get started with? Can i get files in the emulator? I am using sun wireless toolkit 3.0 to implement it. I am designing it for symbian. |
|
I'm really frustrated right now because I've been looking all over the web on how to set up OpenGL to work with Microsoft Visual C++, but it seems like each website I find wants me to do something different. I feel like I'm missing something here...like I'm overcomplicating it. I … |
|
Hello all, Does VC++ Express 10.0 even support the ability to get text from a text box? I've seen related threads having conflicting solutions, none of which actually work. Ex: must have SDK version x.y. This functionality seems to be so basic and necessary that solutions would be all over … |
|
Hi there, Can anyone tell me why variables can have printed values of -858993460. I've got a pointer pointing to a memory address which has nothing in it so when i come to cout this it prints -858993460, if i give it a value then its prints that value. I … |