Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
96% Quality Score
Upvotes Received
19
Posts with Upvotes
19
Upvoting Members
16
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
7 Commented Posts
0 Endorsements
Ranked #490
~38.0K People Reached
Favorite Tags
c++ x 97
c x 6
php x 5
seo x 2
Member Avatar for xxunknown321

I have a program that i need to convert from java to c++... i just need help doing it... heres the java: [code] /* Name: Joseph Coleman Class:CSCI 1302 Assignment: Employee + ProductionWorker Academic Honesty: The integrity of students and their written and oral work is a critical component of …

Member Avatar for jimmichaels29
0
1K
Member Avatar for BobRoss

Hello, I'm writing a simple shift cipher which reads from plain.txt, encrypts, and writes to cipher.txt. It works, but only for small plain text lines of a couple of words or so. If the plain text lines are long, then the program does not respond (freezes). Any help would be …

Member Avatar for happygeek
0
1K
Member Avatar for rajeshwari_ib

Hi all, i am new to python how to store image into database blob using python please help me for this its urgent

Member Avatar for Gribouillis
0
2K
Member Avatar for josey_matt

Hi, could anybody please tell me what i am doing wrong in this program. The goal is to read the student name and grade from a text file and print it on the screen. This is what i have so far. by the way this is for a school project …

Member Avatar for siddiquedu
0
8K
Member Avatar for bman214

Hello! I am making a text-based game (I am new to C++) called The Final Journey (I made the name up, didn't copy) and I have had some trouble with the code. I am using Dev-C++ (I plan to get VC++), just so you know. Here is what I have …

Member Avatar for bman214
0
202
Member Avatar for petmol

Hi friends, I have an assignment to put three little programs into one, making each one a function of the main program, which is a kind of menu. The three work perfectly as separate entities, but when I put them together, the thing won't compile. Can anyone tell me what's …

Member Avatar for pranaymahajan
0
133
Member Avatar for l1ttledb

hey all, first post of a beginner coder ;), I keep geting the following error : conflicting types of 'graphic_choice'.. its not a warning so it wont compile. I haven't finished case 7 so that may have some syntax issues. hope this isn't to big of a code block? i …

Member Avatar for sree_ec
0
264
Member Avatar for Sudo Bash

I have two questions relating to classes. I have run into a problem in using classes in multi-file programs. Here are three example files which illustrate the problem I am having and the errors I am getting. [B]file1.cpp[/B] [CODE=c++] //file1.cpp #include<iostream> #include"file3.h" using std::cout; using std::cin; namespace baz { extern …

Member Avatar for programmersbook
0
3K
Member Avatar for rhum123

[CODE] #include<iostream> #include<stdio.h> #include<conio.h> using namespace std; int main () { float nep,b,sum,temp,i,j,median; cout<<"Enter the number of Elements"; cin>>nep; double element [10]; int index; for (index=0;index<nep;index++) { element[index]=0.0; } for (index=0;index<nep;index++) { cin>>element[1]; sum=element[1]+element[2]; element[1]=element[2]; element[2]=sum; } b=sum/nep; cout<<"Mean:"<<b<<endl; for(i=0;i<nep;i++) for(j=i+1;j<nep;j++) { if (element[3]>element[4]) { temp=element[4]; element[3]=element[4]; element[4]=temp; } } …

Member Avatar for programmersbook
0
172
Member Avatar for sharensla
Member Avatar for Fbody
0
2K
Member Avatar for Tech B

Is there a way to grab values from a basic stamp with python? I just bought a Accelerometer and want to read the values with python.

Member Avatar for Tech B
0
319
Member Avatar for tunde011

I want my website to remember people's email when they post on my website. [CODE] <form method="post" action="formposting.php"> <input type="text" name= "title" size="22"> <input type="text" name= "email" size="22"> <?php if(!$_COOKIE['cookname']) { echo "<input type=\"checkbox\" name=\"remember\" id=\"remember\" /> Remember me on this computer"; } else{ echo $email; echo "Forget Me{delete cookie//help …

Member Avatar for vaultdweller123
0
111
Member Avatar for Pramirez3

Please help, and point me in the write direction... okay so I'm basically doing a simple address book. i can create contacts and display them and search for them but... when i return to the main menu and attempt to search again... i cannot open the file... or if i …

Member Avatar for cpeister
0
215
Member Avatar for sidra 100

hi i have created a code to merge two char arrays for assignment plz can u guide me is it ok.how much marks can i get 4 it out of 20. [CODE]#include <iostream> using namespace std; //declaring the functions void merge(char[],int, char[], int,char[],int); void sort(char[] ,int); void display(char[],int); main() { …

Member Avatar for sidra 100
0
97
Member Avatar for codecutie

I keep getting an error when using option 2. Could someone please point me in the right direction. [CODE]#include <iostream> using namespace std; int num; int Size; int choice; int *currentArray = 0; int *tempArray = 0; int index, oldSize, newSize; struct nodeType { int info; nodeType *Link; }; nodeType …

Member Avatar for programmersbook
0
134
Member Avatar for afireinside7710

hey guys, first post. I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while …

Member Avatar for programmersbook
0
197
Member Avatar for cyborg22

:) Hello experts, Im taking a C++ class and i was asked to Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running Time (in minutes) I've come down to making it compile, but, when it couts the …

Member Avatar for programmersbook
0
374
Member Avatar for bobsta

Hi, I am writing a simple graphics engine using homegeneous coordinates (fourVector) and the corresponding 4matrices (fourMatrix). fourVector.cpp: [CODE]fourVector::fourVector(float x, float y, float z, float w): x(x),y(y),z(z),w(w){ };[/CODE] fourMatrix.h [CODE] class fourMatrix{ public: fourVector i,j,k,l; ... }[/CODE] fourMatrix.cpp: [CODE]fourMatrix::fourMatrix():i(fourVector(1,0,0,0)),j(fourVector(0,1,0,0)),k(fourVector(0,0,1,0)),l(fourVector(0,0,0,1)){} fourMatrix::fourMatrix(fourVector &i, fourVector &j, fourVector &k, fourVector &l): i(i),j(j),k(k),l(l){ } ... …

Member Avatar for MrSpigot
0
96
Member Avatar for kako13

Hi, I'm reading a line from a text_file.txt The line looks like: 1#Jonh#Smith#PO Box#4.9#5.0# The code being used: [CODE] fstream file; file.open("Tbl_cliente.txt", ios::in); // open a file for input file.unsetf(ios::skipws); getline(file, Cli_nombre, '#'); getline(file, Cli_apellido, '#'); getline(file, Cli_dirr, '#'); file >> Cli_total_compras; file >> Cli_balance;[/CODE] But when I look for …

Member Avatar for necrolin
0
138
Member Avatar for mcap61

Hey guys, I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. The POINT of the PROGRAM is if you enter a name it will tell you what the name ranks among the list if it …

Member Avatar for programmersbook
0
284
Member Avatar for Spiderpig085

i have code which has a menu.. this code is for a tic tac toe game and i cant prevent the program from crashing . So......... when the user enters a variable e.g 'q' the program crashes. the happens whilst playing the game and whilst selecting a menu option. is …

Member Avatar for Spiderpig085
0
135
Member Avatar for merse

Lets have a class (called Class with capital C) have a class member data. But when we declare the class data in the body of the Class, we have to initialize it with something (default constructor or other constructor) however in c++ the initialization used to task to the Class …

Member Avatar for Narue
0
133
Member Avatar for lewashby

In the following program, I have three different comments each after a line of code. Please read those comments to answer my questions. [CODE] # Property Critter # Demonstrates get and set methods and properties class Critter(object): """A virtual pet""" def __init__(self, name): print "A new critter has been born!" …

Member Avatar for lrh9
0
261
Member Avatar for grib

Seems that I'm going to get hung up on every CandyBar exercise in this book I'm working through. Such is life. I'm doing something stupid, and I can't see it. Something appends garbage into my structure's first field when I try to give it the defaults. [code]#include <iostream> const int …

Member Avatar for grib
0
145
Member Avatar for Premlal

Hi all, I am somewhat new to templates, but slowly realizing it is very powerful. Facing a problem. I have a template class. [CODE]template <typename T> class myTemplateClass { //Some code here };[/CODE] In another class I need to create a fixed number of Objects of the above template class …

Member Avatar for Premlal
0
2K
Member Avatar for Happypants

Heya folks. I'm trying to write a BMI calculator, but I'm missing something. Splint tells me I have a parse error before the scanf, but I'm not seeing it. Also, I'm struggling to get the BMI to print (I'm pretty sure the two are related). It worked (before I put …

Member Avatar for Happypants
0
171
Member Avatar for kirennian

Hi there. I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error. error:C2075: 'Target of operator new()' : array initialization needs curly braces. [code=c] struct DISPLAY_DEVICE_CAPABILITIES{ vector<int[3]> resolutions; …

Member Avatar for kirennian
0
210
Member Avatar for bhavz

hi all, can u write me a sample code to receive the data when sender sends the data throu fun senddata(u8* pbuffer, u16 bufferlen);.. its should store in a recieve buffer and should return the length of the data received.

Member Avatar for programmersbook
0
78
Member Avatar for karthik.c

hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data …

Member Avatar for programmersbook
0
3K
Member Avatar for yakovm

[CODE] class Key{ public: float m_XX; float m_SLP; Key(float XX,float SLP):m_XX(XX),m_SLP(SLP){} Key(const Key& key):m_XX(key.m_XX),m_SLP(key.m_SLP){} }; struct keyComp { bool operator() (const Key& lhs, const Key& rhs) const { if(lhs.m_XX < rhs.m_XX) return true; else return lhs.m_SLP < rhs.m_SLP; } }; class K{ public: int m_IND; int m_DIR; float m_XC; float …

Member Avatar for programmersbook
0
129