199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for m_wylie85

Hi all i am using a save dialog box to save a text file to a loction becuse i cant hard code in the driectory. My problem is that i can save the first line of text that i write to the file but i want then to be able …

Member Avatar for iconoclazt
0
177
Member Avatar for Mona..

Hi.. I want to write a C++ program which reads a text from the user and change any uppercase letter to an lowercase letter and assign them to an stack?? please help..

Member Avatar for Narue
0
204
Member Avatar for jamesl22

Im getting this problem with an ld script: [CODE]../Link.ld:8: syntax error[/CODE] Here is the script: [CODE]/* Link.ld */ OUTPUT_FORMAT("binary") ENTRY(start) SECTIONS { .text 0x100000 : { code = .; _code = ,; __code = .; *(.text) . = ALIGN(4096) } .data : { data = .; _data = .; __data …

Member Avatar for quuba
0
161
Member Avatar for pilipino93

Hey, I'm trying to make a program where you have the file, which is a config.xml. I'm basically going to have the user type in numbers into a textbox, and when they hit a button, it will search for the first few characters in the file, delete the whole line, …

Member Avatar for iconoclazt
0
148
Member Avatar for effizy

Any suggestions on open source project i can contribute to or begin on my own? Nothing complicated - am just a beginner and would like to improve my knowledge.

Member Avatar for daviddoria
0
260
Member Avatar for Drakarus

Hey all. At the moment i'm struggling to read a file which contains 4 integers on each line separated by commas. I want to read each line then put them in a list like Text File will look like 1, 3, 7, 9 2, 5, 6, 8 I want it …

Member Avatar for iconoclazt
0
148
Member Avatar for vedro-compota

Hello )) Guys tell me please - in which folder should I put the file ( a few folders in one project), so that the program will be able to "read" it. if the path = "something.txt". Thanks in advance ))

Member Avatar for iconoclazt
0
104
Member Avatar for vedro-compota

good evening)) (At us now evening)) Please answer the question - there's a code fragment - [CODE] public string MAP(string FilePath) { FileStream fs; // объявляем байтовый поток try { fs = new FileStream(FilePath, FileMode.Open); } catch (FileNotFoundException exp) { [B][U]return[/U][/B] exp.Message; } catch { [U][B]return[/B][/U] "not possible to open …

Member Avatar for iconoclazt
0
119
Member Avatar for Peter1

I'm new to c#. [B]How do I add five numbers to each other and indentify the highest and lowest value together with the average value of this five numbers?[/B] Please give me something to begin with (or a whole example of code to study). Have a nice day. Thank you.

Member Avatar for iconoclazt
0
197
Member Avatar for rienada

Morning Gents/Ladies, I'm having an issue with the relation between tables. Any suggestion would be appreciated. Basically I have an Inventory which holds equipment and that I sign out to individuals. I would like to be able to keep track of all my inventory from sitting in my shop or …

Member Avatar for drjohn
0
141
Member Avatar for snefmoo

i am trying to create a simple guestbook to include in a web site. i cant get the form to add the data to the database nevermind post the entries. there are 3 files guestbook, addguestbook and view guestbook. im using server2go and dont know whether there is something in …

Member Avatar for drjohn
0
846
Member Avatar for DaveTran

I have a method that is called each frame that will object a GUI window based on the selected object's properties. [CODE] private void Update_Window_Properties() { if (objectSelected == null) { return; } Entity e = objectSelected.Entity; Vector3 position = e.InternalCenterPosition; textBox_PositionX.Text = position.X.ToString(); textBox_PositionY.Text = position.Y.ToString(); textBox_PositionZ.Text = position.Z.ToString(); …

Member Avatar for DaveTran
0
110
Member Avatar for jjma

Hi. I'm trying to make a function that takes nested tuples and returns a list of each nested tuple. I managed to make a function that returns the values of the tuples (which are strings), but cannot figure out how to retrieve the 'subtuples' in a list. Here's what I …

Member Avatar for jjma
0
813
Member Avatar for LanierWexford

I have Python 2.7 installed, and I need to use matplotlib, but it is only available for Python 2.6. Is there any way to have 2.6 and 2.7 installed at the same time or is this asking for trouble? The reason I need matplotlib is I am trying to run …

Member Avatar for richieking
0
172
Member Avatar for RenanLazarotto

Hey guys! I'm going to start a new project, that will make a simple backup of some hard-to-find files. It'll compress it to a single file (output format will be selectable), but I want it to use a user-defined output dir. Can someone explain me a bit of how to …

Member Avatar for RenanLazarotto
0
84
Member Avatar for Peter1

I have two classes as shown below (NumberDisplay and ClockDisplay) and program.cs. class NumberDisplay [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _ssv111 { class NumberDisplay { // fields private int _hours; private int _minutes; // constructor public NumberDisplay() { _hours = 0; _minutes = 0; } // methods …

Member Avatar for james6754
0
128
Member Avatar for Snehamathur

It's my First Program using circuar singly linklist [CODE] typedef struct clist { int data; struct clist *next; }CLIST; CLIST *cp = NULL; [/CODE] Add new node function [CODE] void add(int num) { CLIST *r; r = malloc (sizeof (CLIST)); if (!r) { printf("\n\n Not Enough Memory"); return; } r->data …

Member Avatar for Narue
0
114
Member Avatar for gahhon

I wanna ask, How can we reverse a number by using Recursive ? For example if a number is 123, the result will be 321. is that any idea to help me? because i can't think about it... i poor on this chapter.

Member Avatar for myk45
0
197
Member Avatar for gedas

hey guys, im creating web service where i have one method in the web server that should be returning me string array. the problem is when i use "design view" to add the operation(method) to the server it does not allow me to chose string array as a return type. …

Member Avatar for gedas
0
245
Member Avatar for Peram

I already know how to use fstream. I know to save the value variables to a file, and I also know how to make the program display the information in the file, but my problem is that it saves the content of the variable, not the variable itself. Here's what …

Member Avatar for Peram
0
237
Member Avatar for j2dao2dae

Hi, I am after some advice, any would be very much appreciated. I want to create a members area, members login and their information is displayed. I have created the login and register pages and now I am at the stage of having a MYSQL database with information in relevant …

Member Avatar for mrcniceguy
0
105
Member Avatar for chiragwebmyne

Dear Friend, I have one Window From it will open on clicking on ToolStrip button, UserControl1.cs contain ToolStrip (ToolStrip used as IE ToolBar). Form contain One TextBox and One close Button, I need to open a Form on every new IE window open and keep that Form on IE Only …

Member Avatar for rameez420
0
145
Member Avatar for Bijaya123

How can i copy from a treeview control to a text box or list box. Please help me soon.

Member Avatar for Diamonddrake
0
104
Member Avatar for m_wylie85

Hi i am make a small media player to play some mp3 file i have try many different way in which to make this program i finally resolved myself to using a dialog box because i could not get it done any other way with out having to worry about …

Member Avatar for Diamonddrake
0
310
Member Avatar for Macky Dave

Please help me how to count the specific records on my database using VB.Net I dont know the code to count the number of male in my database using VB.Net What i want to happen is when I click the cmd totalmale, The Total number of male in my database …

Member Avatar for Macky Dave
0
118
Member Avatar for Daita

Could we find the largest among three numbers using 'for' and if? I have the following program, please check it #include<stdio.h> main() { int a,b,c,sum=o,i'; printf("enter the numbers"); scanf("%d%d%d",&a,&b,&c); sum=a+b+c; for(i=sum;i<=sum,i--) { if(i==a||i==b||i==c) printf("%d the greatest"); exit(); }}........please clarify the logic if it is correct to the intention..

Member Avatar for Daita
0
148
Member Avatar for rockerjhr

trying to do a program that sums all the even numbers in the sequence but i think im doing it wrong heres my code [CODE]#include <stdio.h> int fib ( int n ); int main ( int argc, char *argv[ ] ) { int i , sum = 0 ; for(i …

Member Avatar for rockerjhr
0
115
Member Avatar for FutureWebDev

The program takes 10 numbers of type float, which are entered by the user, and outputs the average ( also of type float ) of those 10 numbers. If I am going to test a range of values for those ten number, am I correct to test the highest values …

Member Avatar for FutureWebDev
0
187
Member Avatar for Ghost

Hi, I'm running my server on localhost. I'm trying to make a forum database program in php, but I can't get mysql to work! whenever I try to add a table, it says there isn't any database. How do I add a database to localhost? Thanks in advanced for your …

Member Avatar for tdoyle
0
480
Member Avatar for Awah Mohamed

hey people , i am a c++ biginner , i am self tought , this mean i have no teacher to help me . now i arrived to graphics . but i have got a small problem , i am programming with my laptop. my laptop is a mini laptop …

Member Avatar for Basteon
0
346
Member Avatar for dorothy.v
Member Avatar for jlego

i have never imported anything from a .csv file before i have an app that downloads a .csv file from a website and saves it locally (could probably even skip this step and just read it from the website) it then needs to read the .csv file and insert the …

Member Avatar for jlego
0
404
Member Avatar for Marissak

Hi everyone. I am trying to write a recursive maze program. I have the program without the recursion but I am having a hard time putting the recursion in there. This is the regular code: [CODE]#include <iostream> #include <string> #include <stack> using namespace std; template<class T> class Stack : public …

Member Avatar for Marissak
0
201
Member Avatar for benny2010

Hello does anybody know how to scale a sprite or image to fit the whole render window? at the moment i have my checkers board but its in one corner of the window and i want it to fit the window entirely would be a great help :)

Member Avatar for myk45
0
189
Member Avatar for eyndyel

I'm currently trying to make a mini dictionary. To do it i need to learn how to sort strings in alphabetical order. Can anyone tell me or give me a hint as to how am i going to sort the words in alphabetical order.

Member Avatar for jon.kiparsky
0
177
Member Avatar for atoklas

The following lines of code output "FFFFFFFF" #include <stdio.h> int main(void) { int i; i=-1; printf("\n%X\n",i); return 0; } This is the 32-bit representation of -1 in Hex. I'm trying to get it to output fewer bits: e.g. 24-bit: FFFFFF In fact, the output I want needs to be 6 …

Member Avatar for Trentacle
0
289
Member Avatar for terabyte

I'm very interested in learning C before C++ but I can't find good books The K&R book looked very organized and short but it seems it is very outdated. So my two questions are.. Should I read the K&R book even thought it uses an old standard, if I do …

Member Avatar for Trentacle
0
181
Member Avatar for azegurb

Hi all I have one problem. I have created one little admin panel. and when i submitted a post and i refresh it again it automatically posts the post again. it posts as many as i click refresh. who can help me to eliminate this problem. here is my problem. …

Member Avatar for azegurb
0
121
Member Avatar for attism

This is the code from my main.template.php: [CODE=php] <div class="', ($var % 2 == 0 ? 'index_left':'index_right') ,'"> <div class="content_box"> <h2>', $category['title'] ,'</h2>'; foreach ($main['files'][$category['id']] as $file) { echo ' <div class="file file_index"> <div class="icon"> <a href="', $file['url'] ,'"><img src="', $file['image'] ,'" width="', $settings['image_width'] ,'" height="', $settings['image_height'] ,'" alt="', $file['title'] …

Member Avatar for attism
0
104
Member Avatar for chamika.deshan

Hello I am in a difficulty in finding the size of array. In following program I am passing the arraysize and the array as a parameters. Instead of doing that can I find the array size in the method? [CODE]template <class T, typename ReturnType = float> class TEnterImp { public: …

Member Avatar for chamika.deshan
0
108
Member Avatar for rj2910

object for test class can be created as test t=50; // y so..how can integer be equal to object?? // don't we need to call any constructor here or is it some trick of visual studio??...and if it is then how is it possible?? class test { public : int …

Member Avatar for mrnutty
0
102
Member Avatar for LianaN

Hi! I created JToolBar, but it is always attached to JPanel. If I run my api, then I can drag and drop JToolBar in order to separate it from JPanel. I want to programmatically make JToolBar to look as a separate window (e.g. as a toolbar in Photoshop). Does anybody …

Member Avatar for LianaN
0
137
Member Avatar for miganper

Hi, i have working with an aplication ... this: [url]www.plantasic.es[/url] and like you can see, by clicking in a line at the right, each one displays a different image. When the image is loaded, there's a javascript code for re-measurement, for adjusting to the available screen area. The easy implementation …

Member Avatar for miganper
0
268
Member Avatar for FAITH2011

[B][COLOR="Red"][B]Hi folk, I fairly new to Python 2.7 and Python 3 and like to find out how I would get a print to appear in the middle of the output screen without putting in a load of spaces into a print statement. Please keep it simple for me. Thanks for …

Member Avatar for FAITH2011
0
167
Member Avatar for FAITH2011

[B][COLOR="Red"]Hi all, Clould someone please tell how to use the sorted function or equivalent to this function in Python 3 so that I can sort a dictionary. I cannot find any help on this. Thanks for your time [/COLOR][/B]

Member Avatar for FAITH2011
0
96
Member Avatar for edmundoswald
Member Avatar for ZEZO2010

Hi all I'm working in the program which create two objects both object contains type , color , price, weight And I done with but the problem is how I can round the number in price and weight becuse i change the weight from pound to kg how i can …

Member Avatar for ZEZO2010
0
97
Member Avatar for hao90

Can anyone teach me how to assign a empty array to zero? Which means that some of the c[x][y] have not assigned to a value. [CODE]int x = 4; int y = 4; a[x] = {30,40,50,60}; b[y] = {100,20,60,40}; c[x][y]; int i = 0; int j = 0; while(i<x && …

Member Avatar for hao90
0
103
Member Avatar for VKS123

Hello, :?: I need help with adding int arrays i got the everything working except for when i need to carry more than once and if the carry isn't in the ones digit honestly i can't think of anything :$ any ideas, suggestion, code would be welcomed [CODE] public class …

0
105
Member Avatar for modjoe

Ok, so i have an assignment due in 9 hours, its about computing the shortest paths from a vertix input by the user to all other vertices. The adjacency matrix is supplied from a text file, so I have done the following code: (Some of it was given for me …

Member Avatar for daviddoria
0
510

The End.