199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alban08

can someone tell me how to add functions to library of devc++? and how to add a new library?

Member Avatar for alban08
0
135
Member Avatar for BORAX

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 …

Member Avatar for manal
0
100
Member Avatar for helloan

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). …

Member Avatar for jephthah
0
169
Member Avatar for hezfast2

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 …

Member Avatar for VernonDozier
0
222
Member Avatar for want_somehelp

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

Member Avatar for vijayan121
0
466
Member Avatar for r30028

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 …

Member Avatar for vijayan121
0
202
Member Avatar for Maabou

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 …

Member Avatar for midimatt
0
174
Member Avatar for johnkurtz

Hi all. Could anybody tell me how can I load to the memory a weighted graph from a file? Thanks.

Member Avatar for Duoas
0
67
Member Avatar for pash11

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 …

Member Avatar for jozcar@yahoo.co
0
102
Member Avatar for mahmed27

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 …

Member Avatar for kermitaner
0
1K
Member Avatar for musturd

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, …

Member Avatar for musturd
0
279
Member Avatar for daniel88

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 …

Member Avatar for daniel88
0
104
Member Avatar for tondeuse34

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 …

Member Avatar for tondeuse34
0
96
Member Avatar for abdulraqeeb33

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.*; …

Member Avatar for peter_budo
0
148
Member Avatar for RBA

Please any one can help me create a jar file? Please give a detailed answer

Member Avatar for peter_budo
0
414
Member Avatar for jk_bscomp

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...

Member Avatar for peter_budo
0
474
Member Avatar for theausum
Member Avatar for peter_budo
0
75
Member Avatar for wizard wusa
Member Avatar for Lotus_2011

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]

Member Avatar for William Hemsworth
0
139
Member Avatar for kyleknapp

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 …

Member Avatar for peter_budo
0
151
Member Avatar for lisheen

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 …

Member Avatar for sendoshin
0
300
Member Avatar for Moporho

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 …

Member Avatar for Moporho
0
113
Member Avatar for toko

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 …

Member Avatar for waynespangler
0
105
Member Avatar for En1ro

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; …

Member Avatar for mitrmkar
0
107
Member Avatar for lianaconda

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 …

0
57
Member Avatar for n3XusSLO

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 …

Member Avatar for n3XusSLO
0
104
Member Avatar for happimani

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

Member Avatar for vegaseat
0
126
Member Avatar for bhagyaR

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, …

Member Avatar for vegaseat
0
88
Member Avatar for micam
Member Avatar for BigFormat

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 = …

Member Avatar for BigFormat
0
1K
Member Avatar for Stack Overflow

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 --> …

0
143
Member Avatar for lahom

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 …

Member Avatar for lahom
0
150
Member Avatar for Lotus_2011
Member Avatar for Lotus_2011
0
332
Member Avatar for daviddoria

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 …

Member Avatar for mitrmkar
0
192
Member Avatar for web_master

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 …

Member Avatar for web_master
0
106
Member Avatar for perfectstranger

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 …

Member Avatar for perfectstranger
0
84
Member Avatar for fredmac

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

Member Avatar for Salem
0
147
Member Avatar for still_learning

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 …

Member Avatar for ~s.o.s~
0
101
Member Avatar for ceyesuma

[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

Member Avatar for ceyesuma
0
103
Member Avatar for kahaj

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 …

Member Avatar for toko
0
1K
Member Avatar for midimatt

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 …

Member Avatar for Prabakar
0
118
Member Avatar for acardiac

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 …

Member Avatar for acardiac
0
263
Member Avatar for ambarish510

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> …

Member Avatar for ~s.o.s~
0
467
Member Avatar for En1ro

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 …

Member Avatar for En1ro
0
2K
Member Avatar for El Duke

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] …

Member Avatar for El Duke
0
541
Member Avatar for aabundle

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 …

Member Avatar for aabundle
0
216
Member Avatar for wonder_laptop

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

Member Avatar for wonder_laptop
0
132
Member Avatar for andy_aphale

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 …

Member Avatar for selvaganapathy
0
82
Member Avatar for elementz

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 …

Member Avatar for elementz
0
166
Member Avatar for Prabakar

I know nothing about ASP and I am intrested in learning it. Please help me find a good means to start.

Member Avatar for RandyRich
0
69

The End.