- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 19
- Posts with Upvotes
- 19
- Upvoting Members
- 16
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
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 … |
|
Re:
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 … |
|
Re:
Hi all, i am new to python how to store image into database blob using python please help me for this its urgent |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
[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; } } … |
|
Re:
is their any body tell me the Difference between int* a; and int *a; ? |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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() { … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
:) 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 … |
|
Re:
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){ } ... … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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!" … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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. |
|
Re:
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 … |
|
Re:
[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 … |