132,726 Archived Topics
Remove Filter ![]() | |
Afternoon All, I have ran into a problem that i cant get my head around, I have the following code(see below) this all works fine if there is a imgID ='5' but if there isn't a record in the sql table with the imgID 5 then i get the following … Software Development open-source sql vb.net | |
Hi there, im trying to create a quiz program in c++. I need to have an array within a struct as i need to store a question title, ten possible answers and the points that each answer is associated with any help about how to go around declaring this would … Software Development c++ | |
Hi ppl I need to edit a listviewItem to change name so i use "beginedit()", but then i need to send the new name. The problem is, there is not way to see when edit is finished to send the new name. So, any idea of how could i do … Software Development listview | |
Hi all. Question about directories i have to send this file to my teacher via email then he will install the app. My problem is if i give him this code ( which work fine on my computer) i have no way of know what drive he will install this … Software Development | |
Hi. I have this very weird problem. The function getOps in the code below always returns 0, although it should be returning the ops value which gets calculated correctly. [CODE] int ops; int getOps(int n, int m) { if(m == n) return ops; else if(m - 2 <= n) return … Software Development c++ | |
Hi all i have writen a bit of code here to read a line of text from a text file and display it depending on what the user searches for which is taken from a text box. but it will only read one line it will not display all the … Software Development regex | |
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 … Software Development file-stream | |
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.. Software Development c++ | |
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 … Software Development | |
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, … Software Development xml | |
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. Software Development c++ open-source | |
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 … Software Development | |
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 )) Software Development | |
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 … Software Development | |
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. Software Development c# | |
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(); … Software Development gui | |
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 … Software Development python | |
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 … Software Development python | |
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 … Software Development vb.net | |
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 … Software Development | |
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 … Software Development c | |
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. | |
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. … Software Development client-server java web-design web-server | |
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 … | |
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 … Software Development c# | |
How can i copy from a treeview control to a text box or list box. Please help me soon. Software Development | |
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 … Software Development | |
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 … Software Development vb.net | |
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.. Software Development c | |
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 … Software Development c | |
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 … Software Development c++ | |
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 … | |
how to limit nos. using button for inputting? VB.NET Software Development vb.net | |
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 … Software Development vb.net | |
![]() | 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 … Software Development c++ ![]() |
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 :) | |
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. Software Development java | |
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 … Software Development c | |
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 … | |
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: … Software Development c++ | |
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 … Software Development c++ visual-studio | |
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 … | |
[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 … Software Development python | |
[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] Software Development python | |
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 … Software Development java | |
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 && … Software Development c++ | |
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 … Software Development java mathematics | |
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 … Software Development algorithm c++ data-structure open-source | |
ok so theres 2 things i need help with. in my code i have a random dynamic array with sides a minimum of 9 and max of 20. in this array i need to spawn characters randomly (here's where i need help) how can i randomly spawn characters in a … Software Development c++ | |
Please help! I'm trying to install Visual Basic Express edition 2010 on my windows Vista computer. The .net framework 4.0 is installed (or so the control panel says), but the visual basic installation fails every time it gets to "Microsoft Visual Basic 2010 Express," which is the first item to … Software Development assembly vb.net visual-basic windows-vista |
The End.