199,114 Archived Topics
Remove Filter ![]() | |
can someone tell me how to add functions to library of devc++? and how to add a new library? | |
well to start i am a compleate noob to programing and this time iam going to go a bit deeper to something hard for me!!!! maybe so easy to you guys so lets see if can explain my self and get a head star here...please!!! i realy need this to … | |
Hi, I really need some help with this project. I'm currently a beginning C student working on a wheel of fortune program. For this program a random phrase must be chosen from a text file; the same phrase cannot also be used again during the game (there are three rounds). … | |
Hello again, I'm trying to finish a function I am working on that reads data from a file set up like: itemID itemName pOrdered manufPrice sellingPrice itemID itemName pOrdered manufPrice sellingPrice ....and so on and puts the data into vectors this is what I've gotten so far and I'm not … | |
Can somebody tell me what is the difference between static class and static local variable in C++ ? u will be greatful if u explain it giving example thanking you | |
I'm having some trouble getting the shortened integer value of a fairly long double value. The double value in question is "1234567890123457024". When taking the int of it, such as: [CODE]int(value);[/CODE] This value is giving me a result of -2147483648, which is completely illogical due first to the fact that … | |
I need help desperately. To declare an array to hold 5 fives and pass the entire array to it and convert all the measurements in centimeters. The following is what I came up with: [code=c] #include <stdio.h> #define SIZE 5 double calculateInches1 (double); double calculateInches2 (double); double calculateInches3 (double); double … | |
Hi all. Could anybody tell me how can I load to the memory a weighted graph from a file? Thanks. | |
hi friends... i m new in c#.net.. i m going to develop some basic application like sending email from my application... i got some code from internet... but i m facing problem regarding setting of SMTP server.. can anybudy tell how to find out SMTP server name of our local … | |
Hello all, I have tried vigoriously and cannot find out what this means, this homework is due tommorow and i need major help, basicalyl what we have to do is write an ascii table which pops up on the screen, i have this code thus far but i get the … | |
My script works perfectly now!!! :) This is my first script too!! The problem is that this code sucks. I hate to bash my own code, but it is really inefficient and I am sure that there is a better way to perform the brute force. Here is the code, … | |
Hi guys, I posted earlier today and had my problem resolved in record time, which was great as I had been struggling with the final elements of an assignment. Having received a preview automarking I found that I had one small error. Essentially, the read() function which follows takes an … | |
Hey guys....I've been doing Python for probably more than 4 months and i have gotten to the point saying to myself "What should i make?" and "How would i do that?" i just don't know where to go know and what to do. I am capable in many things in … | |
hello, i want to cycle through a db table infinite times, ie; if there exists no value(reached end of table) in the result set, i wanna point the cursor to the start again...and it goes on infinite times wat do i add and where package project; import java.io.*; import java.net.*; … | |
Please any one can help me create a jar file? Please give a detailed answer | |
Hello everyone!!! Does anyone here knows how to create jar file? If Yes, can you pls show me a sample code on how to do it or even website good for learning? YOUR HELP IS HIGHLY APPRECIATED? TAHNK YOU IN ADVANCED... | |
Its easier to make games for websites in javascript or in flash?? | |
This is my code to convert from binnary to octal ......what is the logic error in my code? [CODE]void main() { double base=2; char bin[10000]; int res,sum=0; cout<<"Enter the binnary number:"; cin>>bin; int len; len=strlen(bin); int coun=0; for(int i=0;i<len;i=i+3) { for(int j=0;j<3;j++) { res=bin[i]-'0'; sum=sum+res*(int) pow(base,j); } cout<<sum; } }[/CODE] | |
I'm brand new to SQL queries, hoping someone can help me set up this query. I'm using [URL="http://www.phplist.com"]phpList [/URL]to manage my mailing list. All user defined attributes appear to be stored in a table called phplist_user_user_attribute. The structure of this table is:[INDENT][U]Field[/U], [U]Type[/U] attributeid, int(11) userid, int(11) value, varchar(255) [/INDENT]attributeid … | |
Hi All, I would like to start by saying that what I want to do is probably against the rules but I thought I would try and find out if it could be done. I am creating a VB program where you fill out a form [B]"FORM1"[/B] and then select … | |
I am trying to switch this if...else statement to a Switch and I can not get the program to calculate. Please help? original if, else [code=cplusplus] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; int main () { int x, total=21; cout << "Input Number for … | |
I have two questions: 1. I have an if statment that if true does several things. This is where im having trouble: [CODE= vb]If something = true then something = 45 And something = 65 And something = 83[/CODE] My best guess was "And" to combine those three term but … | |
The problem is that i need to save in simple way the array of structure: [ICODE]struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] This is the struct & array. Code: [ICODE]gydytojas pgyd; pgyd.vardas[25]=Edit21->Text; pgyd.pavarde[35]=Edit22->Text; pgyd.adresas[50]=Edit24->Text; pgyd.asmkod=StrToInt(Edit23->Text); pgyd.amzius=StrToInt(Edit27->Text); pgyd.gydid=StrToInt(Edit26->Text); pgyd.telefonas=StrToInt(Edit25->Text); pgyd.specialyb=ComboBox5->ItemIndex; … | |
![]() | Hi. The assignment is to implement a function using recursion. I can't use any loops whatsoever. The function takes in an array of doubles and the array size, and is supposed to return the position of the smallest element in the array. I've already written some code out for the … |
hello, i started learning c++ on my own from internet tutorials, so i know "the basics" (pointers, classes,...) but i think that i missed some "small" but important stuff. i've been looking for some books on amazon but i can't decide which one to get. i want something that is … | |
Dear All, Iam Using python 2.3,i have pythonpath in environment variables,is it possible to rename Pythonpath because i have to use two path alternatively first is pythonpath and second is PythonPath1 any idea????????? regards Narain | |
Hey, Can anyone please point me to a place where I can find all the modules so far developed for python. I am mainly looking for modules that can be used to update excel files. ping machines and send automatic mails though local mail client. Appreciate your help here! Thanks, … | |
Hi, How can I send right nouse click with python? thanks. | |
Hi all, I've done this prog to get the last token in a string es: /dir1/dir2/file.txt must return --> file.txt I get several errors on assignments, what's wrong with it? many thanks [CODE] int main() { char *path; char *filename; path = (char*) malloc(sizeof(char) * 64); strcpy(path, "/dir1/dir2/file.txt"); filename = … | |
Hello, I am trying to determine the best possible solution to accomplish a simple, yet complex task. ([i]Regarding: Socket Programming[/i]) I've been working on a new project for quite some time and have written a custom framework from the ground up. It's more or less a ([b]Client --> Server --> … | |
hi [B]Could someone please tell me how can i open a txt file with a press of a button (MFC)? [/B] not with the infile >>> i mean [B]open "text file"[/B] and another question if i may.... [B]Is there any way i can transform a cpp file to a txt … | |
Can anyone help me to convert from binnary to octal or hexadecimal in c++?? | |
I have some code like this: [code] vector<double> Saved; for(int i = 0; i<10; i++) { if(some condition on i) Saved.push_back(i); } [/code] Then I want to see what order the things were saved... so naturally I do cout << Saved.at(0) << endl << Saved.at(1) << endl; But to my … | |
Professional javascripters plz help or illl be screwed at work.....plz guys..... I have made this sliding div....but i am having a big problem.....i dont want the div to appear in the first place....but in the code below its is already open when the page refreshed....I want it to open when … | |
Good day everyone. I have an assignment and I can't get rid of this. In this programming assignment I am asked to write a computer program that simulates Nondeterministic Finite Automaton. Program will take NFA from a text file. The format in text file should be like this ; Number … | |
Im wondering is it possible to change c code to assembly code if its not thanks but if it is can some one give me sum pointers | |
I was just wondering if there is anyway to do an AREA SHAPE COORDS with an onClick without using an image. For instance, I want to basically be able to click on the page somewhere (not on an image) and be able to do an onClick. Is this possible at … | |
[code] String partial = ("SELECT c FROM content AS c WHERE c.artist LIKE \"%" + like + "%\""); [/code] Is there any one that can explain the proceedure to get this query introduced into the persistence unit so it can be run? (netbeans6.1,MySQL,JDescktopApp) Thanks | |
I'm creating a file that will only be on my local machine, for personal use. To make sure my kids don't enter data (or delete it) I want to do a simple password protection feature. I basically just want, when a button is pressed, a box to pop up with … | |
Hi everyone, i'm back with another problem that i cant seem to work out. i'm trying to read in a .obj file which is basicaly a list of vertices and facets in this format v 0.00 0.00 0.00 f 0 0 0 i dont know before hand how many vertices … | |
Can anybody please help me out in solving these problems in C++ Please reply to this thread ASAP! Thnx and regards acardiac Q.1. Write a program that accepts a nonnegative integer n and base b and display the digits of base-b representation (in reverse order) for each integer using a … | |
wen i write the following codes in a jsp file it is not working prperly the code is [code=JSP]<body> <p> <jsp:plugin type="applet" code="fphover.class" codebase="./" width="120" height="24"> <jsp:params> <jsp:param name="textcolor" value="#FFFFFF"> <jsp:param name="text" value="page name"> <jsp:param name="color" value="#808000"> <jsp:param name="hovercolor" value="#FFFFFF"> <jsp:param name="effect" value="glow"> <jsp:param name="url" valuetype="ref" value="p1.jsp"> </jsp:params> </jsp:plugin> </p> … | |
In Unit1.h private: [ICODE] struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] Now in Unit1.cpp im trying to do simple thing: [ICODE]void __fastcall TForm1::Button18Click(TObject *Sender) { gydytojas.vardas=Edit21->Text; gydytojas.pavarde=Edit22->Text; gydytojas.adresas=Edit24->Text; }[/ICODE] Getting these errors: [C++ Error] Unit1.cpp(172): E2108 Improper use of … | |
Hello there, I was trying to implement a program for a friend of mine in C, this program has to read the HTML user input (directly or from a file), check that input if the HTML tags are put in their correct order. For example, If I entered [CODE]<HTML><[COLOR="Green"]/[/COLOR]BODY>Whatever text<BODY></HTML>[/CODE] … | |
Hello, I have a simple GUI but when i put another Jframe in an action listener it squishes the main page in with the new Jframe, i know this is probably basic but my text book yeilds no result, here is my code. Maybe i am going about the process … | |
hello guys, well i dont get it. what does it mean to say we have a 32-bit processor ?!! and why saying 32-bit processor implies that the virtual memory of the process is 2^32? please help | |
hello guys and programmers, my name is anil and i want to know how to crack a vb software?????? actualy i have created a software and then created a setup of that software through packing tool provided by the VB6.0 but now i want to add a button in my … | |
Knowing basic PHP and basicVisual Basic I have decided to move onto C++. I only know the basics of PHP and Visual Basic, I never decided to get to know both languages better. I could do little with PHP as it requires a web server to test it and Visual … | |
I know nothing about ASP and I am intrested in learning it. Please help me find a good means to start. |
The End.