132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for r0vanz01

I am trying to find the minimum number when the user enters any 5 numbers I am not sure why this code is not working, every time I run this function I always get 0. Can someone please tell me what is wrong! int i; int num1 = 5; int …

Software Development c++
Member Avatar for r0vanz01
0
189
Member Avatar for pkfx

Im trying to increase a dynamic array by 1 element and assign a integer variable to it but recieve a heap overload error. Any advice would be appreciated. void CardSet::AddCard(int cardNum) { int* tmp; nCards++; tmp = new int[nCards]; for(int i = 0; i < (nCards - 1); i++) { …

Software Development c++ motherboards-cpu-ram
Member Avatar for Ancient Dragon
0
186
Member Avatar for dreday92

///Can someone tell me why I am having an issue calling my functions?!?!?! #include <iostream> #include <iomanip> #include <string> using namespace std; struct Players { string name; int numPlayer; //Number of the Player int numPoints; //Point's scored by Player }; const int SIZE = 50; const int MAXPLAYERS =3; typedef …

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for sean.downes.96

Hello. Ive got a listview with columns etc and ive managed to sort the coding out so when i open a form, fill in the details in the relevant box then press save it transfers some of that data into the relevant columns, which is great. However i would like …

Software Development listview vb.net
Member Avatar for sean.downes.96
0
107
Member Avatar for Carpetfizz

Hello, I learned a lot of basic C++ programming through Code Blocks and I think it is a fantastic IDE. I decided to switch to VS2010 Professional for various reasons, and because I am able to get it free from Dreamspark. I had created another post a while back similar …

Software Development c++ ide
Member Avatar for Suzie999
0
167
Member Avatar for corby

when i execute this code and lets say i enter "hello", then "world", and then "dude", when i traverse through the list, it only prints out: dude dude dude and not this: dude world hello Any help would be much appreciated! #include <stdio.h> #include <stdlib.h> struct Node { void *data; …

Software Development c
Member Avatar for WaltP
0
120
Member Avatar for cafegeo

Hello everyone. I am starting a class that utilizes Java for software design. I have no previous java experience, although I have taken c++ prior to this and appreciate all the help I have received in the past. I also would like to thank everyone in advance for all your …

Software Development java
Member Avatar for NormR1
0
215
Member Avatar for ceck30s

I have a text file that contains something like this: # Comment # Comment # Comment # Comment # Comment Comment # Comment #Raw SIFs at Crack Propagation Step: 0 # Vertex, X, Y, Z, K_I, K_II, K_III, 0 , 2.100000e+00 , 2.000000e+00 , -1.000000e-04 , 0.000000e+00 , 0.000000e+00 , …

Software Development data-structure gui python
Member Avatar for hughesadam_87
0
338
Member Avatar for Bile

-->>Hi everyone,I'm having this problem with updating records in my application my code is: SQL = "UPDATE Ministers SET User_Name='" & txtUser_Name.Text & "',Password='" & txtRetype_Password.Text & "',Prefix='" & cmbPrefix.Text & "',Passport='" & NewPicture_Name & "';" Call dbConnect Conn.Execute SQL Conn.Close Set Conn = Nothing -->>The SQL and Conn variables …

Software Development visual-basic
Member Avatar for Bile
0
1K
Member Avatar for sharathg.satya

any one help me in completing my program on FLAMES game i am not getting how to complete it please help me

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for javalover

Hi friends, I want to create an auto-evaluator for java.. If I submit java program, it has to run and show the output or exceptions(if so).. I tried in some simple ways, it doesnt works out. please give some suggestions how to start and progress... Thanks in advance...

Software Development java
Member Avatar for NormR1
0
773
Member Avatar for Dark007

I wrote a server class and a client class. again i wrote 4 different JFrame class which were connected with each other and some Puzzle game codes were written on this classes. I want to add those classes with the server. and want to play those games from the client. …

Software Development client-server gui java puzzle
Member Avatar for Dark007
0
190
Member Avatar for cumadhu

Hi All, I have specific requirement in C#. I have to return two values from a single variable/method. How to do it? If you can help me, you are most welcome. Thanks and with regards, Madhusudhan.H.K.

Software Development
Member Avatar for Michael27
0
549
Member Avatar for Goldfinch

I have this code: static String format(String number, int decimalLength) { char[] decimal; System.out.println(number); String[] formatA = number.split("."); System.out.println(formatA.length); StringBuilder cents = new StringBuilder(""); int dollars = 0; dollars = Integer.parseInt(formatA[0]); decimal = formatA[1].toCharArray(); for (int i = 0; i < decimal.length; i++) { if (i < decimalLength) { cents.append(decimal[i]); …

Software Development java
Member Avatar for stultuske
0
183
Member Avatar for riccardo-m

Hi, I've been trying to send a long integer from an Arduino to my C++ program via the serial port. There seems to be many examples of this when i search, but I've not had much luck except for one example. This example seems to work, but not when I …

Software Development c++
Member Avatar for riccardo-m
0
3K
Member Avatar for chandrasekhar p

`Inline Code Example Here` **how to run the c program on note pad shall any one give me answer**

Software Development c c# c++
Member Avatar for deceptikon
0
191
Member Avatar for I_m_rude

The publicity team for Technozion is in full swing. Like every year, this time too, the team is planning to visit N different colleges in India. This publicity campaign shall involve the members of the team giving presentations about Technozion. For the publicity trip, the team has decided to come …

Software Development c java-swing
Member Avatar for I_m_rude
0
280
Member Avatar for rtyui

Hi. I am trying to assign the value returned by asctime(struct tm \*) to a string. But when the program is run, I got segmentation fault. GDB shows: Program received signal SIGSEGV, Segmentation fault. 0x0000003e6d6aa192 in __offtime () from /lib64/libc.so.6 What could be the reason? Can't we assign the value …

Software Development c++
Member Avatar for deceptikon
0
384
Member Avatar for pattilupwned

Hello, I am having trouble passing a file into parallel arrays. Based on the code below, I get a bunch of jumbled numbers on my cout screen that don't even show up in the input file. I have attached a PNG of the console output. I am at a loss …

Software Development c++
Member Avatar for Suzie999
0
439
Member Avatar for maple23

I am trying to learn multi-dimensional arrays in C/C++, but am not having much luck. I think I understand the way this type of array works, but I am having problems. [code]#include <stdio.h> #include <stdlib.h> #define MAX_NAME_COUNT 10 #define MAX_NAME_LEN 100 int main(){ char *names[MAX_NAME_COUNT][MAX_NAME_LEN]; int x; printf("enter the names …

Software Development c++
Member Avatar for richard_arnold
0
769
Member Avatar for consc197

I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've …

Software Development listview microsoft-access visual-basic
0
87
Member Avatar for Mubusher

Salaam to everyone! dear i am having a problem i am having a form and datagridview now the problem is that when form load and iam write something like saniplast so data of datagriview select similar saniplast when i pressed enter so the datagridview_keypress coding cannot execute here is coding …

Software Development vb.net
Member Avatar for niravn
0
651
Member Avatar for Summer995

I have come across an error code, after building during debug, it shows: System.NullReferenceException was unhandled HResult=-2147467261 Message=Object reference not set to an instance of an object. This problem is located at the end of the program, on the else if statement. Any suggestions as to how I could easily …

Software Development printer
Member Avatar for Summer995
0
492
Member Avatar for milkypolar

Hi all, just wonder is there any way to have a constructor parameters that having another classes with parameter? for example like class Player { public: Player(char = 'X', char = 'O'); }; class Board { public: Board(int, Player); };

Software Development
Member Avatar for milkypolar
0
113
Member Avatar for agachhayat

//This programm is for testing function overloading #include <string> #include <fstream> #include <iostream> using namespace std; class Text { string str; public: Text (); Text (string); string contents (); }; Text::Text (string st) { ifstream in (st); getline (in, str); } string Text::contents () { string ret; ret=str; return ret; …

Software Development c++
Member Avatar for np complete
0
84
Member Avatar for Ahmed Sarwat

Dear All, I have a question about array which let me confused and I think it needs deep understanding of arrays. I would like to know why it is possible to use array of char as pointer without a fixed size and also without dynamically allocating memory for it and …

Software Development c
Member Avatar for WaltP
0
173
Member Avatar for Mahkoe

I've used malloc countless times, but as far as I know, reading and writing to memory that isn't expressly yours (which is in fact done by the malloc function) causes a segfault. If I wanted to make my own dynamic allocation functions my computer would probably just laugh at me …

Software Development api c
Member Avatar for WaltP
0
240
Member Avatar for jumboora

Hi, I have two text files. Textfile1 has data line by line (50000 lines) and in each line, there are 500 numeric values. Textfile2 has only one column (only numeric data) which matches the first column of Textfile1. Textfile2 may have 5000 lines (Each line has one numeric value). Now …

Software Development
Member Avatar for jumboora
0
161
Member Avatar for brihyn

First off, I'm really new to development...sys-admin is really my thing. With that said, though, I'm hoping this is just a simmple mistake I'm trying to write a nice little vb.net app with VS2010 to work as a photobooth. The problem I've run into is, when the user hits the …

Software Development vb.net
Member Avatar for Reverend Jim
0
126
Member Avatar for melissa.kapolka

void getScores(float **scores, int num) Can someone help me understand what this means? Especially the **scores.... I know what a float is and that it is to get scores inputed in by the user. Thanks

Software Development c++
Member Avatar for melissa.kapolka
0
97
Member Avatar for andigirlsc

I am having trouble getting MS Visual C++ to recognize my input for the 2nd getline I have listed. It already recognizes getline(cin, firstName) and allows for input, but won't recognize the second instance of getline. When the program gets to that line of output, it bunches the next two …

Software Development c c# c++
Member Avatar for deceptikon
0
389
Member Avatar for gujinni

Hi there. I have a problem in randomly falling an object. I want my program to randomly fall an image and I only have 1 image fall. The code I've used for falling an object is here. `Inline Code Example Here` Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As …

Software Development image vb.net
Member Avatar for gujinni
0
368
Member Avatar for omojolinho

Please, i am in trouble and i need someone's help urgently. am an IT student at a software company and my boss has threatened me not to come to office again until am able to build a simple chess game. Please, any help will be appreciated

Software Development
Member Avatar for <M/>
0
108
Member Avatar for ChilledGrease

I started coding C++ this past week, and yesterday I challenged myself to write something original that my book doesn't have hints on. It is a program that prompts the user to think of a number between 1 and 100, and proceeds to guess the user's number. The user tells …

Software Development c++
Member Avatar for Suzie999
0
291
Member Avatar for calomari

I just completed one JAVA course. I used NetBeans. I ran into a friend recently who told me about Eclipse. In my next class I had to write a program with a GUI application. Which IDE do you prefer? Why?

Software Development gui ide java java-netbeans
Member Avatar for stultuske
0
94
Member Avatar for python1956

I am trying to sort by key, but it's not working because I don't think that the thing that I'm trying to sort on counts as a list (in fact I think it is an ndarray?): y = np.genfromtxt("1400list.txt", dtype=[('filename','S20'),('freq','S20')]) gives me y as something in the form: [('a070918_215953.SFTC', '1369.000') …

Software Development python
Member Avatar for Lardmeister
0
4K
Member Avatar for sundog1

Hi Guys, I'm currently working on a small item that I hope you will be able to help with. I have used an example Code to get connected to 'Sage Line 50' data and it seems to work correct. Currently it populates the Combo Box with the Database Scheme and …

Software Development
Member Avatar for lolafuertes
0
281
Member Avatar for murtazamzk

Hello guys this is an amazing programming that converts entered digit into word.nut i need your help i am only able to do it upto 99. #include<stdio.h> #include<conio.h> void main() { int n,m,j; clrscr(); printf("Enter any number between 1 to 99 : "); scanf("%d",&n); printf("You entered "); if(n>0&&n<=10) goto one; …

Software Development c c# c++
Member Avatar for soumava28
0
2K
Member Avatar for nitishok

I have written a program for the 8-Queens problem.It prints all possible solutions. queens() finds all the possible solutions. ok() tells whether the given column and row is safe or not. The very strange problem is: 'Count' won't increment. I have no idea why. #include<iostream.h> #include<stdlib.h> #include<conio.h> int arr[8][8]={0}; int …

Software Development c++
Member Avatar for deceptikon
0
168
Member Avatar for Ritesh_4

Hello, I've got a code (modified but not written by me) which uses a timer to find the idle time, and I added the code to make the computer go to sleep mode if the timer matches the time value set. However, when I resume the computer, it goes back …

Software Development
Member Avatar for lolafuertes
0
112
Member Avatar for gameover9

Here is what I have so far. It is working, however now they have requested to have separate buttons for start, stop and reset. I am totally new to C# and was hoping someone could help me separate the one button I have into 3 buttons instead: using System; using …

Software Development
Member Avatar for lolafuertes
0
343
Member Avatar for nikhil.pro

how can i link my file to this question? its cpp format

Software Development c++
Member Avatar for Ancient Dragon
0
106
Member Avatar for Swati_1

please help me understanding the following program? int i= -1, j= 1, m; m= i++ && j++ || i++; printf("%d %d", i,m);

Software Development c
Member Avatar for deceptikon
0
61
Member Avatar for riccardo-m

Hi, I'm making a program using Visual Studio 2010. I'm strugging with how to correctly use classes and their instances. For example; What is the difference between using the following ways to call function from one class within another... Example 1: Dialog.h #include OtherClass.h MyOtherClass myClass; Dialog.cpp myClass.MyFunction(); Example 2: …

Software Development c++ visual-studio
Member Avatar for riccardo-m
0
258
Member Avatar for Tinnin

Hi all. I'm working my way through "Accelerated C++" have a question regarding chapter 5. The program calculates students final grades by taking a median of the homework grades. I am trying to alter this program so that it uses *list* instead of *vector*. The issue I'm having is with …

Software Development algorithm c++
Member Avatar for Tinnin
0
173
Member Avatar for dhruv_arora

My school and the education board uses Turbo C++ as the compiler. I have Windows 7 64 bit. Can anyone tell me how can I install Turbo C++ on my computer.

Software Development c++
Member Avatar for harsh01ajmera
0
453
Member Avatar for androidz

Hi daniwebians I have created a table in sql server called "report" and it has 3 columns "reportname","reportfile" and "reportflag". the report flag has only two values 1 and 0,if the value is 1 this means the textbox on the form will be enable. I have managed to dispaly the …

Software Development sql vb.net
Member Avatar for androidz
0
782
Member Avatar for 03Mach1

So I am trying to write a program that will tell you the lowest grade and the highest grade out of the 3 wthat you put in and also tell you the current average you have in the class. I got the lowest and highest part taken care of but …

Software Development c++ mathematics
Member Avatar for np complete
0
265
Member Avatar for rocky2008

Can anyone explain the difference between * ptr++ and ++ *ptr ? To my understanding, * ptr++ increments the pointer and not the value pointed by it and ++ *ptr increments the value being pointed by it. Does the former mean incrementing the address of the pointer ? Please explain. …

Software Development c
Member Avatar for deceptikon
0
201
Member Avatar for brylle

I have a datagridview, In a textboxcolumn should have a unique data.. i want in the cardnumber not to be the same.. Need trappings

Software Development vb.net
Member Avatar for artemix22
0
614

The End.