132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for general2012

# 2-D string implementation # ## i am new to c.anyone please help me why this code is not working## #include<stdio.h> #include<stdlib.h> #include<conio.h> typedef struct{ char name[2][10]; }college ; int main() { college student; student.name={{"james"}, {"carter"}}; printf("%s %s ", student.name); getch(); } **

Software Development c
Member Avatar for general2012
0
142
Member Avatar for slasel

How can I control the position of text in a label? Thank you

Software Development python tkinter
Member Avatar for Lardmeister
0
110
Member Avatar for Beginerman

I need a little help with the below code. I am basically reading text from a .txt file and need to be able to convert the text into an array(fam6) that i can then search for a value that is typed into a text box. If said text box search …

Software Development c# visual-studio
Member Avatar for Beginerman
0
333
Member Avatar for aVar++

I have got a simple naughts and crosses game working, can someone tell me a simple def blah(): .. command to check if the player has already moved to a place on the board already taken.. E.G Player's first go = top left Player's second go = top left.. (message …

Software Development python
Member Avatar for aVar++
0
122
Member Avatar for aVar++

Hey guys, i have been working on this for a while and global doesnt seem to be doing anything; help? Row1 = [" "," "," "] Row2 = [" "," "," "] Row3 = [" "," "," "] Grid = [Row1,Row2,Row3] x = False def NAC(): def check(): #only using …

Software Development python
Member Avatar for aVar++
0
290
Member Avatar for opticaltim

I'm creating a XML-viewer which should be able to read **every** XML file and put it in a treeview. My goal is to create a XMLViewer control, an user should be able to change certain routines in his own implementations. I provide default implementations that offer a basic functionality so …

Software Development c c# c++ xml
Member Avatar for tinstaafl
0
1K
Member Avatar for sritech97

# Converting data XML sequential rows of data to tables in another XML # Hi I have following xml which I want to convert them into different tables when it find a row with header and all following rows as table data until it finds another row with header. the …

Software Development xml
Member Avatar for FakeTales
0
279
Member Avatar for varma51

<html> <title>Student Registration(1.html) </title> <body> <form name="fin" action="2.php" Method="post"> <table> <Caption> Student Registration </Caption> <tr> <td> Student Name: <input type='text' name='Sname' /> </td></tr> <tr> <td> Student id: <input type='number' name='Sid' /> </td></tr> <tr> <td> Student Class: <input type='text' name='Sclass' /> </td></tr> <tr> <td> <input type='submit' value='Next" /> </td></tr> </table> </form> …

Software Development html-css xml
Member Avatar for FakeTales
0
183
Member Avatar for maaw

I would like to create a countdown column in a gridview, based on a date in another BondFiled column in the same gridview.

Software Development asp.net vb.net
Member Avatar for TnTinMN
0
1K
Member Avatar for sandi009

Hello,all I want to start a new website which play you tube video with lyrics. My question is that how can i prevent it from Copyright ? Please please advice me soon. I have already started working on it. Thanks, Sandip Mistry

Software Development video
Member Avatar for azadariz
0
93
Member Avatar for Galbatorix

Hello guys, I am a dude who used to work with vb.net until i joined college where Java rules the day. I have a project in which i have a database in sqllite and i want the db to be in the same folder as the executable file(jar in this …

Software Development java sqlite
Member Avatar for Galbatorix
0
97
Member Avatar for thendrluca

hi all! :) well i wrote a sample code to test threads and i don't get what i want the problem is that the thread i created is starting directly after i create it? but he must start when my j is equal to 25 and then i joining the …

Software Development c++
Member Avatar for thendrluca
0
184
Member Avatar for awaisahmad13

This is the code do look at it. I just want change it in switch statement. will stuck in it. it is unix code. commands[0] = (char *)"ls"; params[0] = (char*)0; commands[1] = (char *)"who"; params[1] = (char*)0; commands[2] = (char *)"date"; params[2] = (char*)"+%d/%m/%y"; commands[3] = (char *)"ps"; params[3] …

Software Development c unix
Member Avatar for rotenegg
0
218
Member Avatar for ayat abukhadra

Hello, Is there's a way to install a new version of the webbrowser control in the visual studio 2008 to be used instead of the old one ? Thanks for helping :)

Software Development vb.net visual-studio
Member Avatar for ayat abukhadra
0
1K
Member Avatar for jakub.peciak

Hi, I have following code. Dim myData1 As MySqlDataReader Dim sqlquary1 = "INSERT INTO table1 (text1) Values (Value1); INSERT INTO table2 (text2) Values (Value2); INSERT INTO table3 (text3) Values (Value3)" Dim command1 As New MySqlCommand command1.Connection = mySqlConnection command1.CommandText = sqlquary1 myData1 = command1.ExecuteReader mySqlConnection.Close() I need to send few …

Software Development mysql vb.net visual-basic
Member Avatar for Reverend Jim
0
1K
Member Avatar for omarking05

Al slam A'lykom .. its kinda freaky to me .. cuz its my first year in c++ ( in fact its few months not even a year ) and i have a project , and its to create an ATM program that asks the user if he is new or …

Software Development c++
Member Avatar for omarking05
0
162
Member Avatar for akasekaihime

strsql = "Update tbl_server(temp_no, tem_department, tem_position, tem_sname, tem_fname, tem_mname, tem_add, tem_telno, tem_bday, tem_b_place, tem_age, tem_cs, tem_fa_name, tem_ma_name, tem_spouse, tem_chil, tem_ptbc, tem_padd, tem_ptelno, tem_sss, tem_tin, tem_pag_ibig, tem_phil, tem_focc, tem_mocc, tem_sp_occ, tem_expected, tem_elem, tem_sec, tem_voc, tem_course, tem_post, tem_d_elem, tem_d_sec, tem_d_voc, tem_d_post, tem_coll, tem_d_coll) VALUES ('" & TextBox32.Text & "','" & ComboBox8.Text & …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
165
Member Avatar for kruschev

void Project1(){ unsigned short int x; bool flag = false; cout << "Enter an interger, I will reversed i.e. 301 --> 103" << endl; cin >> x; if ((x > 0) && (x <= 65535) ){ flag == true; cout << reverse_num(x); cout << endl; } else { cout << …

Software Development c++
Member Avatar for nullptr
0
279
Member Avatar for daino

Has anyone ever used PLPLOT. I'm trying to compile one of the examples (which build successfully during the plplot build process) but I want to build the example individually. It's proving very challenging. A million linker errors and no clue on their website as to what is going wrong. I've …

Software Development c++ open-source
0
161
Member Avatar for chocomilk

Im currently working as a programmer in a company, creating a Logging system. The problem is when im running my system, even if I delete all the codes. When i start debugging my system. The debugger does not follow my codes. Please help me.

Software Development perl vb.net
Member Avatar for chocomilk
0
245
Member Avatar for melvic.gauci

have 2 lists one for JuniorStudents and one for SeniorStudents. In the JuniorStudents I have a method for promoting a juniorstudent to a seniorStudent. I am first deleting the juniorstudent and then putting it into the seniorstudent list. However when I try to view the student when calling the method …

Software Development
Member Avatar for Momerath
0
174
Member Avatar for gmissile1

well,i am a new programmer in vb6 so i dont know much about vb6.So i have 3 questions. 1) Finding sum of all the numbers from 1 to 100 by loop method. 2) Finding factorial of a number. 3) organizing table of any word. eg. 9*1=9 9*2=18 and so on …

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for riahc3

In java what is the best way to create a truely random number sequence? One that is 100% never to be repeated again Thank you

Software Development java
Member Avatar for jalpesh_007
0
415
Member Avatar for Kronolynx

in this part of the code which i'm using to search if an account number given by the user is in the vector. what is the cause of the problem ? thanks in advance. if (ae.getSource() == b7) { boolean found = false; for (int i = 0; i < …

Software Development java
Member Avatar for stultuske
0
403
Member Avatar for jhambe

Hi help me to create program for my midterm exam!! System multiplication table Using C++

Software Development c++
Member Avatar for rubberman
0
76
Member Avatar for diya45

can any one tell me log out or sinout code in c# using windows from application

Software Development
Member Avatar for sumantnit
0
114
Member Avatar for thePAkid

I'm trying to outFile to houseData.txt. I did that fine but now all the data is all on the same line 10 times. What did do wrong in my code? House Price Number ------ ----- 329155000235000 459160000235000 505185000235000 500215000235000 345210000235000 456305000235000 344405000235000 501355000235000 401190000235000 300170000235000 I need it to look …

Software Development c++ file-system
Member Avatar for azeem abbas
0
160
Member Avatar for chocomilk

How can i copy a directory path in a string? For example, the Location of the file is "C:\Folder1\Folder2\mydatabase.mdb". i have an existing code, Dim dbpath as String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = …

Software Development vb.net
Member Avatar for chocomilk
0
184
Member Avatar for NardCake

Hello! I'm creating a simple markup type thing with a XML reader to edit the properties of this window and at some point add components to it. I had it working, but had a few issues since it wasn't originally a WinForms project, didn't have looping working right, so I …

Software Development
0
70
Member Avatar for roachae

I have a VB.net Windows form that contains a checklistbox. I need to check or uncheck each item based on boolean values I have stored in an xml file. I also need to update that xml file when each item's checkbox is changed. My VB is competent, but nowhere near …

Software Development vb.net
Member Avatar for tinstaafl
0
123
Member Avatar for dmo1

Hello. I am writing a program that computes net pay by the user entering in hours and payrate. There can only be one decimal, two numbers after the decimal, and no letters. When payrate is entered wrong, it displays the correct error message. For hours, it doesn't even though it …

Software Development c
Member Avatar for dmo1
0
147
Member Avatar for javaprog200

Hello, As per wikipedia, a complete binary search tree is defined as: A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible Can someone give me an application of complete binary trees …

Software Development java
Member Avatar for javaprog200
0
387
Member Avatar for slymdjay.gunshot

Hi geeks!! im working on a project (in visual studio 2008) where i need to create a reminder which will prompt every month for showing the actual state of fees a number of customers have left to pay. the project uses access as database and will have a fixed amount …

Software Development microsoft-access vb.net visual-basic
Member Avatar for phorce
0
583
Member Avatar for paul.meeuwissen.106

Hello everyone. Im making a application in which i need to make a matrix of 8x8x8 buttons. Each layer contains 8x8 buttons (so 8 layers in total). Each button can be clicked and when clicked it change the color to red, the second click changes the color of the button …

Software Development
Member Avatar for JOSheaIV
0
234
Member Avatar for ninidesobra

hi guys, i am about a graduate of database management in SQL, but then i wish to study software developemt in C++, can anyone help me locate a good school around the world?

Software Development c++
Member Avatar for Reaper Man
0
210
Member Avatar for crash bash
Member Avatar for Taywin
0
85
Member Avatar for thePAkid

I'm trying to read numbers from a data file into array but when I compile and run nothing shows up. what did I do wrong. I have to do all the reading from the function readData and I need to get rid of the header line but I just put …

Software Development c++
Member Avatar for vmanes
0
148
Member Avatar for pianokey09

cout << "Enter Student ID (999 to end): "; cin >> searchId; inFile.open(file + ".txt"); inFile.ignore(80, '\n'); while (searchId != 999) { for (int i = 0; i <= count; i++) { inFile >> ID >> lastName >> firstName >> q1 >> q2 >> q3 >> q4 >> final; if …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
156
Member Avatar for Darth Vader

Hello, I have a little problem with a timer that I have set up. I use Thread.Sleep(). What I am trying to do, is to let a code run exactly when a new minute occurs on the millisecond (0 millisecond). I have tried to set it up below and test …

Software Development
Member Avatar for Darth Vader
0
217
Member Avatar for mathgirl

I am trying to create a multiplication table that is left aligned with a line under the header and a line next to the first column on the left. What I have here gives me what I want but without the lines. Can anyone help? 1. #include <iostream> 2..#include <iomanip> …

Software Development c++
Member Avatar for simongezahagn
0
716
Member Avatar for Mikey12345

Hi I have code as follows which works nicely but it loads a bit slow. I would like to have a progress bar while the file loads my code is as follows With OpenFileDialog1 .Filter = "Text files (*.txt)|*.txt|" & "All files|*.*" .FileName = "" If .ShowDialog() = DialogResult.OK Then …

Software Development vb.net
Member Avatar for tinstaafl
0
399
Member Avatar for Ben Ashton

Hello I am making a piece of software that reads a board of difference pieces and then puts them into an array for management. I am at the point where I have got a rectangle around the whole board and am researching what the quickest and most effective way to …

Software Development
Member Avatar for tinstaafl
0
129
Member Avatar for biscayne

I'm trying to find a record in a csv file in a nested stucture: for elem in lstLine[1:]: for item in open(fname): lstData = item.rstrip('\n').split(';') andexfield = lstData[0] if andexfield == elem: do bladibla Now I want ot add error handling: if no record in fname is found where andexfield …

Software Development python
Member Avatar for Gribouillis
0
279
Member Avatar for rachelmorg

Hey, just a quick question, I have a function to double the size of a string array and another function to use StdIn to populate the array my code is public static String[] read() { String[] a = new String[5]; for (int i = 0; i < a.length; i++) a[i] …

Software Development java
Member Avatar for JamesCherrill
0
142
Member Avatar for Grandiago

Hi im using turbo C++ compiler and im currently learning C. Iand have an assignment that i need to make a program that solves mathematical problems. Well first is that. the user would have to input a problem in whichever way the user wants. like this example: (5*2)+2-2/2 it could …

Software Development c
Member Avatar for Grandiago
0
322
Member Avatar for Na'Vi

Hi, I'm trying to complete this method for a binary search tree and recursion has never been my strong point. All it does is return the total number of nodes in the tree. I have an answer that finds it a different way, but I wanted trying to get it …

Software Development java
Member Avatar for Taywin
0
233
Member Avatar for 123386761

Hello! I'm new here, so correct me if this is the wrong location... but I'm trying to make a program for the Minecraft server I'm on, and it requires that if someone wants to make a map that is used on the server, that there's a .xml file that shows …

Software Development c++ ios
Member Avatar for 123386761
0
188
Member Avatar for amit.hak50

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 and this 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7

Software Development java
Member Avatar for JamesCherrill
0
837
Member Avatar for tomz6

If I don't know the size a string will be, and if that size may change later, and if that string may contain '0' characters, what methods are there to do this? (I would prefer a professional/reliable method if possible)

Software Development c++
Member Avatar for deceptikon
0
168
Member Avatar for artur.sinelnikovs

The "r" function works well! #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ FILE *file_r, *file_w; int c; char fileread[40]; char filewrite[40]; printf("Enter filename to be copied: "); gets(fileread, 40, stdin); fileread[strlen(fileread)-1] = '\0'; file_r = fopen(fileread, "r"); while(file_r == NULL) { printf("Invalid file, ealnter again!"); fgets(fileread, 40, stdin); fileread[strlen(fileread)-1] …

Software Development c
Member Avatar for deceptikon
0
190

The End.