64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for john10

Hi, I'm new to C++. I'm having trouble detecting space bar as an input. I'm unfamiliar with using the char data type. I've tried using ASCII decimal numbers but only detects the '.' . And I'm unsure how to go about this without using string or anything advanced. [CODE] char …

Member Avatar for john10
0
2K
Member Avatar for mariosbikos

[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 void sin1(char *map); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi me ton arithmo pou epithymeis(1/2): \n"); scanf("%d",&k);//edo tha …

Member Avatar for mariosbikos
0
269
Member Avatar for python.noob

Hello Friends, I'm using PyQt 4.9... I want to have an IDE with code completion to work with Python and PyQt (since we are storing both the codes in a single file with .py extension).. Once i've tested eclipse and pydev plugin.. It was pretty good to work with.. Shall …

Member Avatar for MikaelHalen
0
1K
Member Avatar for Stefano Mtangoo

How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated

Member Avatar for Stefano Mtangoo
0
199
Member Avatar for Mz3g

Hi guys, When I run this code, I got segmentation fault and i can't figure out where the mistake is? I'd really appreciate any help. thanks [code] #include <fstream> #include <iostream> #include <string> #include <sstream> using namespace std; int main () { ifstream file, dest; file.open ("arp.txt"); if (!file) { …

Member Avatar for Mz3g
0
174
Member Avatar for tonymuilenburg

Hi all, I'm trying to capture an event when tab is pressed in a textbox using visual studio.net, and am having a hard time. I can capture anything else, inluding the keys that are difficult like instert, alt, and the arrow keys. Here is the MSDN page that did not …

Member Avatar for tonymuilenburg
0
306
Member Avatar for k2k

would anyone please take a quick look? this always return false for some reason... the database connection is fine and the query is fine... it actually returned the right password from the database. please see below [code] public boolean passCheck(String login, String pass) { String realPass=""; try { String query …

Member Avatar for stultuske
0
150
Member Avatar for softx

I would like to make a tree menu with category and sub category in Php. When i click on category then display subcategory with link that subcategory page. it is with mysql database. I m tiered to make this but i can't. Please help me. I m providing a Example....... …

Member Avatar for vitana
0
324
Member Avatar for dre-logics

I use visual studio 8.0 Two forms: windows form => form1.vb windows dialog form => ProcesDialog.vb On the procesDiaglog are five label fields: label1 label2 label3 label4 label5 Two picture fields picture1 picture2 I want to show the progress of building a Windows form1 I would always show the progress …

Member Avatar for dre-logics
0
101
Member Avatar for capson

Hello, If say I have 5 variables: v1=3 v2=1 v3=7 v4=6 v5=5 and two lists made from these L1=[v1, v2, v3, v4, v5] , L2= [3, 1, 7, 6, 5] and I sort on L2, so that I have, L2=L2.sort()=[1, 3, 5, 6, 7] Is there a way to sort …

Member Avatar for TrustyTony
0
123
Member Avatar for jemz

hello, can you help me how to put picture in my button..example i have cmdsavebutton..and i want to put beauty on my form i want my button to change to picture just like saving a document there is a square form then when you click that it will be saved...can …

Member Avatar for jemz
0
105
Member Avatar for SanjitVigneshS

I was attempting a problem on [URL="http://projecteuler.net/"]Project Euler[/URL] - Problem 20. Since 100! could not be stored as ulong, I was thinking of using hexadecimal. Though I find a lot of example of converting hexa to decomal and vice - versa, I cannot find any info on using it in …

Member Avatar for SanjitVigneshS
0
94
Member Avatar for Omar123

Hello, I have a WebService that gets a LessonID and returns a list<string> that has all the links of the lesson from access database: [CODE] [WebMethod] public List<string> Lessons(int lessonID) { string lessonsource = ""; string cs = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source= " + GetDBLocation(); OleDbConnection cl = new …

Member Avatar for Omar123
0
1K
Member Avatar for kmh72756

Can someone else who has had more caffeine than I please look at this example and tell me what I am doing wrong? I have a custom business object called Customer and a Form1 with a BindingSource1, NumericUpDown1, TextBox1 and ComboBox1 and the attached code. Setting break points in the …

Member Avatar for kvprajapati
0
124
Member Avatar for Molinski

I am new to most the web programming experience and I have a php page (lets call it form.php for brevity) that posts some form information (including an attachment) to another php file that validates organizes the information (which I will call sendMail.php) and then mails it to the destination. …

Member Avatar for Molinski
0
405
Member Avatar for ebushyu

I am doing an assignment that requires me to have 4 different radio button(earth, moon, jupiter and saturn) and two labels one showing the weight (on different planet) and one for the delivery price ( $5.00 for weights up to 1 kg; $10.00 for higher than 1 kg up to …

Member Avatar for vb5prgrmr
0
95
Member Avatar for gonzi.p12

Hi guys, I am using MyEclipse....I have even import the itext.jar file to my project folder....still I am getting error in my java code.... Error in resolving import com.lowagie.text.html.*; import com.lowagie.text.pdf.*; Can anyone help me.............

Member Avatar for mintie
0
4K
Member Avatar for Dcurvez

This is what I have Done..and this is what is wrong: What I have done is made a windows form project. On Form2, 3, and 4..I have a Control Tab..and this control Tab is holding Images and text boxes. What I want to do is implement SAVE into my menustrip …

Member Avatar for kvprajapati
0
114
Member Avatar for futhonguy

Hi, i am trying to extract number out from a text which i grab from the database. [B]EG: ACK9734N[/B], I would like to extract just the number [B]9724[/B] from the text, how can i do so? i understand about using preg_match() but when i tried to do that, the number …

Member Avatar for futhonguy
0
101
Member Avatar for ms_farenheit1

I am trying to construct a linked list that contains string pointers. Since strings can be quite large, I am trying to save space and access time by storing pointers to them in the linked list. The strings are read from a text file and inserted into a linked list. …

Member Avatar for ms_farenheit1
0
139
Member Avatar for atzaman

Hi In desperate need of some help! I'm having trouble with a mod I'm make on the threadbit template. I'd like to add some additional information from new columns added to the thread table which will show on forumdisplay. To do this I need to use the threadid in the …

Member Avatar for atzaman
0
235
Member Avatar for theABCasian

Hey all ok so the issue seems to be at line 45 it seems to be making a loop from the output betting im just doing something wrong with exceptions, sense im just learning them. thanks in advance [CODE] /* File Name: Demo.cpp Chapter No. 16 - Exercise No. 2 …

Member Avatar for theABCasian
0
70
Member Avatar for joegarside90

Hi everyone First post but I have been browsing as a guest for help with my university python project for a while now. There some really great help on here, Thank you! Right I'm doing a beginners python programming unit as part of my uni course, and as part of …

Member Avatar for vegaseat
0
414
Member Avatar for tcstom

I have some data in the memory which is pointed to by a pointer (ptr2data), how do i pass this data to a function which accepts unsigned long/DWORD data types? [code] unsigned long* ptr2data; DWORD temp; ptr2data = (unsigned long*)&SomeArrayOfData[4]; temp = (DWORD) tempSerNum; AddDevice(7, temp); [/code] The above code …

Member Avatar for tcstom
0
141
Member Avatar for andydeans

Hi, I was looking for some help with how i would go about setting up my commission table. Basically i have currently: Users Table UserID Username Password Email Clients Table: ClientId Client_UserID FirstName LastName Address PostCode Tel Email Insurance Table: InsuranceID Clients_ClientID Provider Commission DatePaid CarInsurance Table: CarInsuranceID Clients_ClientID Provider …

Member Avatar for rch1231
0
132
Member Avatar for TheVendor

Hello, I'm new at php. I have this simple problem I can't figure out. So I have the variable $name and I want the name to appear on a page plus be linkable. But the link has use the variable.. like this: http://www.website.com/$name And also I only want $name to …

Member Avatar for TheVendor
0
108
Member Avatar for Annettest

Hello everyone: I'm having a problem with vector indexing. The following code results in a segmentation fault: [CODE] for (int i = 0; i < (rows * rows); i++) { temperature[(i * rows) + (rows - 1)] = 0; }[/CODE] And: [CODE] for (int i = 0; i < (rows …

Member Avatar for Annettest
0
294
Member Avatar for Elemen7s

Hi all, I am doing a website which will have a large amount of files uploaded to it which only the admin will upload files to it, users can't. I split the template in parts, the banner in its own .php file, the navigation bar in its own and so …

Member Avatar for Elemen7s
0
329
Member Avatar for samready

Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc …

Member Avatar for d5e5
0
185
Member Avatar for msr

Hello, I would like to have a PriorityQueue whose elementes are instances of different subclasses. For example: Event is an abstract superclass. Event1, Event2, Event3 are subclasses. Xpto<> is an interface and PriorityQueueXpto<> is a class that implements Xpto and extends PriorityQueue. [CODE]Xpto<? extends Event> a = new PriorityQueueXpto<????>();[/CODE] Is …

Member Avatar for msr
0
103
Member Avatar for colweb

I have a strange problem when making a backup of my mysql databases. In order to do so I have a 2TB external hard disk mounted when needed under /backup. Before making the backup I stop mysql (with /etc/rc.d/mysqld stop) and use rsync to copy all the data to the …

Member Avatar for colweb
0
326
Member Avatar for RickyG

I am trying to display the title and descritption of a document on a dropdown menu list but I don't know how to do it. So far it works fine but shows only reference document. [CODE]Training Document:&nbsp;&nbsp; <asp:DropDownList ID="TrainingDocIDTextBox" runat="server" DataSourceID="AccessDataSource2" DataTextField="ReferenceDocument" DataValueField="TrainingDocID" SelectedValue='<%# Bind("TrainingDocID") %>' onselectedindexchanged="TrainingDocIDTextBox_SelectedIndexChanged"> </asp:DropDownList> [/CODE]

Member Avatar for Bhaarat
0
104
Member Avatar for hsncvs

Excuse me if it is a silly mistake but i am newbie to java and couldn't figure it out. Basically it searches if txtText (text area) contains the txtSearchParam (text field) and returns the number of txtSearchParam in txtText. Algorithm is working. simply i can't access variables defined in main …

Member Avatar for hsncvs
0
3K
Member Avatar for nonshatter

Hey guys, I am really close with this but can't quite get it right... All I am trying to do is retrieve the users details based on their 'u_id' and display them. [CODE] <?php require ('dbconnect.php'); $user = $_SESSION['username']; //Get the users username $requestuid = mysql_query("SELECT u_id FROM user_usr WHERE …

Member Avatar for nonshatter
0
83
Member Avatar for born star

[U][I]how does highlighted lines work............. [/I][/U] [CODE] public List<clsproductprp> RetAllCol_rec() { List<clsproductprp> obj = new List<clsproductprp>(); SqlDataReader dr=null; SqlCommand discmd = new SqlCommand(); try { if (con.State == ConnectionState.Closed) { con.Open(); } discmd.CommandText = "spDisplayALLProduct"; discmd.CommandType = CommandType.StoredProcedure; discmd.Connection = con; [COLOR="red"][B] dr = discmd.ExecuteReader();[/B][/COLOR] while (dr.Read()) { clsproductprp prp …

Member Avatar for twaink
0
99
Member Avatar for cyon

I have a bot that connects to a server. The server code is a base class and the code that processes the data from the server is in a class which inherits the base class. I have two conditions for this assignment: [LIST=1] [*]The entire code should be runnable from …

Member Avatar for cyon
0
156
Member Avatar for bperiod

[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++)

Member Avatar for Fbody
0
830
Member Avatar for gunnarflax

Hi! I'm currently using Dreamweaver as my code editor for web development but I'm considering using open source applications instead. I've always supported open source development and let's face it, Adobe's programs costs a whole lot. So I read about using Eclipse for web development and did some searching and …

Member Avatar for gunnarflax
0
162
Member Avatar for ilkeamasya

As you see at below I used "-1" as my sentinel value but my program wants the other 6 values i asked for in scanf too. How can i solve this problem? I just want the user to enter -1 and exit my loop. I would greatly appreciate for your …

Member Avatar for ilkeamasya
0
249
Member Avatar for ilkeamasya

Hello, there. I'm trying to write a program which reads student information from keyboard and does some calculations. I've just started it and I dont know much about this "Struct" topic. As far as I know, I've tried to do something and here is the result. [CODE]#include <stdio.h> #define N …

Member Avatar for ilkeamasya
0
250
Member Avatar for vinians

Hi Im new to this comunity and Im in throuble with C heheh. My problem is that: Im using LUA to create scripting capabilities do my software in C. So, I ve created a file called script.c to suport all script code of my project. See: [B]script.c [/B](some lines) [code] …

Member Avatar for vinians
0
102
Member Avatar for bunnyboy

Can someone explain me why this string extended method gives me an ArgumentOutOfRangeException (Index and count must refer to a location within the string. Parameter name: count), [CODE=C#] public static string Remove(this string str, char lower, char upper) { return str.Where(ch => ch <= upper && ch >=lower) .Aggregate(string.Empty, (current, …

Member Avatar for apegram
0
357
Member Avatar for zachattack05

I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like …

Member Avatar for zachattack05
0
114
Member Avatar for andydeans

hi, fairly new to mysql. i have been working on a site which would have say 100 + agents. basically the agents clients are their own so i thought the best way would be to get a dedicated server and create a mysql database for each agents company. the database …

Member Avatar for andydeans
0
151
Member Avatar for julio gomez

Hi, I am using a PHP parser to extract some contents from a RSS feed. The parser used to work just fine, but when I changed my hosting the parser stopped working and now it shows the following error: XML Error: not well-formed (invalid token) at line 11 The XML …

Member Avatar for julio gomez
0
214
Member Avatar for Ghada Ibrahim

Hello , I really need your help! i created a textbox in a jsp page , but i want its value to change using another JSP page without using a submit button in the second page , i need it automatically if a certain condition applies.. Pleaaaase can anyone tell …

Member Avatar for Ghada Ibrahim
0
2K
Member Avatar for jellybeannn

Hi, I've got a date range between a start and end date, which has to be each month on the valuation day, but if end date(2010/07/20) is before the valuation date(2010/07/31), the valuation month for that month must be displayed. if (endDate.Day < validDay) is true, then it works perfect. …

Member Avatar for kvprajapati
0
123
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around …

Member Avatar for sam8
0
3K
Member Avatar for seven11

I need help in determining,using Big-O notation, the upper-bound for these two algorithms i wrote. They both do the same thing but are coded differently. They both look for all the prime numbers up to some limit, N. This first algorithm: [CODE] public static void algo1(){ primes = new int[n]; …

Member Avatar for Rashakil Fol
0
124
Member Avatar for inisca

[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is …

Member Avatar for kvprajapati
0
200

The End.