43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hughesadam_87

Hi, I've been having trouble posting a code snipet tonight, I keep getting this error: The code snippet in your post is formatted incorrectly. Please use the Code button in the editor toolbar when posting whitespace-sensitive text or curly braces. My code is running fine in wingware IDE with 4 …

Software Development first-post ide python
Member Avatar for hughesadam_87
0
169
Member Avatar for Microno

I've written a program that allows you to calculate the definite integral of a function but I feel that it is limited and I want to rewrite it so that the user inputs an equation which is then stored as a string and then that string becomes the equation for …

Software Development c++
Member Avatar for Microno
0
172
Member Avatar for SagarSe7en

Hy Friends, Have to submit a small routine program. So this is how it goes: There are soaps on the shelves. One soap costs $1 and the next soap costs $1.2 until no money is left in the pocket Each soap is 20% more in price than the previous one. …

Software Development java
Member Avatar for NormR1
0
550
Member Avatar for superjj

Hoi At the moment I'm learing Databases. this is some code that I'm using. The question that I have is, can I insert a row without ID. I mean that the database increase the ID number itself. Thanks in advance. command = new OleDbCommand(); command.Connection = connect; command.CommandText = "INSERT …

Software Development sql
Member Avatar for superjj
0
263
Member Avatar for Majestics

I am using c# for my project, and i am working on a splash screen. Splash screen checking necessary files, problem is files are checked before showing splash screen. I want to do file checking after splashScreen interface become visible. I am using two methods //----------- Constructor --------------------------------------- splashScreen() { …

Software Development
Member Avatar for Mike Askew
0
93
Member Avatar for chixm8_49

What does 'X' ? 'O' : 'X' mean? Thanks. :)

Software Development c
Member Avatar for Banfa
0
96
Member Avatar for shanki himanshu

int a=-3,b=2,c=0,d; d=++a&&++b||++c; printf("a=%d,b=%d,c=%d,d=%d",a,b,c,d); why value of 'c' is not incremented in output?

Software Development c
Member Avatar for Banfa
0
104
Member Avatar for songokute

Hi, i have a j2me game (in chinese): comments, button text, game guide... are in chinese! I want to make them all (chinese words) be translated into English, but Eclipese doesn't display these chinese words!! I downloaded some Chinese font and installed them, nothing change in eclipse editor! The same …

Software Development display java
Member Avatar for songokute
0
248
Member Avatar for Nathan Campos

Hello, I'm starting on Assembly and i want to know how i can clear the screen in Assembly, because of my OS. When i run it in Bochs, that boot messages are there and i want to clear they, for a better visual of my OS. Thanks, Nathan Paulino Campos

Software Development assembly
Member Avatar for jrandom
2
6K
Member Avatar for ayat abukhadra

hello, I'm re-writing a pre-written application which i wrote years ago i wanna develop it to become accessable by phones is it easier to write a mobile application using vb.net or an asp.net web page can be accessed by mobiles ,guid me please.

Software Development vb.net
Member Avatar for Jx_Man
0
114
Member Avatar for ayat abukhadra

hello, I'm trying to write a web service using vb.net and i always get a localhost web service how can i write a web service as a server ?

Software Development vb.net
Member Avatar for ayat abukhadra
0
103
Member Avatar for Sendy Hipo

hi guys, im learning c++ on my own and i have finished reading and studying E-book by Tony Gaddis ("starting out with c++, from control structures through objects, student value edition, 7th edition ") now im completely "lost" , i have searched google to see reference, but there are too …

Software Development c++
Member Avatar for Sendy Hipo
0
143
Member Avatar for 111100/11000

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; char Outputing(char shifted_letter); int found_match; int searching_alphabet; int main() { const char ORIGINAL_alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; //maybe const isn't necesery char alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << "\nEnter …

Software Development c++ encryption
Member Avatar for Labdabeta
0
328
Member Avatar for hughesadam_87

Hi, I think I have a pretty simple question but my google searches are giving me more information than I need. I think my terminology is not clear. Let's say I'm making a dictionary to hold a datatype very specific to some filetype or data of interest. Let's say I …

Software Development python
Member Avatar for hughesadam_87
0
441
Member Avatar for DeeperShade

Ok, basically i'm putting together a win32 wrapper based on various tutorials I've seen. But when I try to close it via the close buttong (top right) or via the esacpe button it doesn't do anything, with the first it closes the window but doesn't end the program, with the …

Software Development c++
Member Avatar for DeeperShade
0
138
Member Avatar for muhd.ardany1

hello..i got a probem here.. You see that i have been given a task that is to make group of 4 people. The data i had received were 79 names including their ID, gender and races.... There are condition need to be satisfy that are in a group there should …

Software Development pascal
Member Avatar for pritaeas
0
140
Member Avatar for triumphost

How can I compare Dimensional arrays using iterators? My attempt is below but I gave up and used indexing instead. I plan to change comparing doubles with == to use epsilon later. Also should I be using vector of vectors? //In my class, Data is defined as std::vector<std::vector<double>> Data; bool …

Software Development c++ matrix-multiplication
Member Avatar for deceptikon
0
187
Member Avatar for daviddoria

For a while now I've been doing this when I want to check the input of a function (in this example, to make sure they are not equal). [code] void foo(int a, int b) { assert(a != b); } [/code] But when the assert fails, I always find my self …

Software Development c++
Member Avatar for vibhor48
0
295
Member Avatar for hughesadam_87

Hi, I have been subclassing namedtuple to handle my custom data type: fields=['Query', 'u1', 'Accession] Old = namedtuple('Old', fields, verbose=False) class New(Old): def __repr__(self): return 'Overwriting works nicely' p=New('Hi',2,3) print p >>> 'Overwriting works nicely' What I want to do is to add the behavior that some of my fields …

Software Development python
Member Avatar for hughesadam_87
-1
152
Member Avatar for hughesadam_87

Hi guys, This is more a general discussion of methodology than a specific question. I have been working on a, the primary purpose of which is to store an oddly formatted data file (aka not you classic CSV). At the end of the day, the data is stored in a …

Software Development python
Member Avatar for hughesadam_87
0
159
Member Avatar for iThaos

Hi everyone, I'm trying to make a little applet that reads text files. I was planning to load some data into a class and use it later. However, I seem to having a few problems with it. // DataSet.java package com.someone.something; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class DataSet …

Software Development dataset java
Member Avatar for iThaos
0
427
Member Avatar for Estella

i want to extract icon from exe file. does anyone know how to do this?? thank you very much Regards Estella

Software Development visual-basic
Member Avatar for palvani
0
653
Member Avatar for shanki himanshu

char str[]="S\065AB"; printf("\n%d", sizeof(str)); explain the output. i am getting 5.

Software Development c
Member Avatar for Banfa
0
549
Member Avatar for laavanya

> WHAT SHOULD WE LEARN OTHER THAN C LANGUAGE TO DO PROJECTS IN C..??PLEASE HELP...

Software Development c
Member Avatar for rithish
0
144
Member Avatar for cor.vandijk.779

Theinput in a JTextField must be used in the variable Color color. input = YELLOW must change variable color in Color.YELLOW. My attempt does not work:

Software Development java
Member Avatar for JamesCherrill
0
239
Member Avatar for iFrolox

I got a blank project, i added 3 checkboxes, and 1 inside a group box. And i got this code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click For Each phCheck As Control In Me.Controls If TypeOf phCheck Is CheckBox AndAlso DirectCast(phCheck, CheckBox).Checked Then If phCheck.Tag Is "Test" …

Software Development vb.net
Member Avatar for iFrolox
0
3K
Member Avatar for katie1988

I'm creating a program where the user can search items in an access database and results are displayed in a listview. When I click search all items are displayed but when I enter an item in the textbox then search nothing is displayed. This is my code Private Sub cmdProdSearch_Click() …

Member Avatar for Bile
0
1K
Member Avatar for triumphost

In OpenGL, I'm reading about glVertexPointer which has a parameter: `const void* pointer` and it is a pointer to the coordinates of the first vertex. Thing is, it doesn't have any parameters that tell you the amount of vertices there are. I'm wondering if there is a way to copy …

Software Development c++ opengl
Member Avatar for triumphost
0
215
Member Avatar for Suzie999

Hi, I wonder if anyone can direct me to a win32 API or offer some logic as to how I might copy memory to a specific location in an array. What I am doing at the moment is copying an unsigned int into an unsigned char[]. The reason is to …

Software Development api c++
Member Avatar for Suzie999
0
147
Member Avatar for M.Waqas Aslam

hello , i am getting error on it , object refrence is not set to an instance of an object , my code is if (dgvBlockSites.Rows[j].Cells[1].Value.ToString() != "-1") { //-------------- some code here } i dont know what is wrong with it , i have 4 or 5 rows in …

Software Development
Member Avatar for waqassilat
0
120
Member Avatar for M.Waqas Aslam

hello ! i want to restrict user to not visit www.abc.com site , from my pc , how can i do it in c# , user will use chrome , firfox , IE etc , Regards

Software Development
Member Avatar for M.Waqas Aslam
0
95
Member Avatar for myk45

Hello All! Well this is not exactly a C++ question. Please let me know if this needs to be posted elsewhere. So, here it goes: I have a project, cosisting of the entire buildrules in Makefiles. This has been built only on Linux. Now, i need to build it on …

Software Development c++
Member Avatar for myk45
0
220
Member Avatar for Suzie999

I have been trying in vain to pass an array to a thread and have that thread loop through it. Here is code of a simple thread passing an int to it. #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <iostream> DWORD ThreadProc (LPVOID lpdwThreadParam ); int threadnumber = …

Software Development c++
Member Avatar for Suzie999
0
213
Member Avatar for Denden17

Hi guyz, anyone here who know how to set your form in a full screen in any type of screen resolution. Like for example im working here in my pc with a resolution of 1366x768 now if i want my application to run in another pc with another screen resolution …

Software Development vb.net
Member Avatar for Denden17
0
242
Member Avatar for guilherme.carvalho.9250

Hello everyone, Im a beginner in vb.net and currently Im developing a program where i save date to a txt file like this Reminder#dinner#26-07-2012 19:52:00 and show it in a listbox(all the lines in the txt file). What i want to do is to select a line(item) in the listbox …

Software Development file-system vb.net
Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int i,j,n,c[10]; char *str,ch; str=(char*)malloc(20); printf("enter the string: "); fgets(str,sizeof(str),stdin); n=strlen(str); printf("%d",n); j=1; c[1]=0; for(i=0;i<n;i++) { ch=tolower(str[i]); if(ch== '') { j++; c[j]=0; } if(ch=='a'||ch='e'||ch='i'||ch=='o'||ch=='u') c[j]++; } printf("no of vowels in each word in given line is \n"); for(i=1;i<=j;i++) { printf("word is %d-->%d\n",i,c[i]); } …

Software Development c
Member Avatar for deceptikon
0
151
Member Avatar for Sendy Hipo

hi guys, im curious about c++ gui qt , the i searched for it and download QT opensource 4.8.2 (300mb+) for windows i run the installer, then it asked me for MinGw's directory in my pc, then i use the MinGw inside my codeblock, after that it said "Found version …

Software Development c++ gui open-source qt
Member Avatar for Sendy Hipo
0
358
Member Avatar for HibaPro

i get this msg from sql server when i restore the back up file TITLE: Microsoft SQL Server Management Studio ------------------------------ An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ ADDITIONAL INFORMATION: The media family on device 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TenderingSys' is incorrectly formed. SQL Server cannot …

Software Development mssql sql vb.net
Member Avatar for HibaPro
0
300
Member Avatar for CasperG

Help!!! I cannot get my combo box to populate using a select statement from mysql database. Please see below for coding [code] CN = New ADODB.Connection 'Connecion to database CN.Open("driver={mysql odbc 5.1 driver};server=localhost;database=v_control;user=root;password=;option=3") RS = New ADODB.Recordset RS.Open(SQLdata, CN, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockPessimistic) If DBconnect() = True Then SQLSearch("select * from engineer …

Software Development sql vb.net
Member Avatar for andhie.dhie.1
0
543
Member Avatar for Nikhar

I am writing a c++ code (or any sort of code for that matter) after one complete year. And yet I don't think I could have become so bad that I can't make a Hello World program. Still, here I am with so many errors. Here's the code:- [CODE]#include <iostream> …

Software Development c++
Member Avatar for pc75
0
3K
Member Avatar for VernonDozier

I'm trying to createa function that takes command line arguments, parses them, and returns a stream to be used for output. If a filename is specified, the program will write to that file. If no filename is specified, the default output will be to cout. I haven't gotten to the …

Software Development c++ file-stream
Member Avatar for VernonDozier
0
8K
Member Avatar for Mitja Bonca

I have a small problem with printing reports (made by crystal reports). In Form1 I have a list of customers in a ListView (with checkboxes). If the users selects one customer (checkes ONE checkBox) the report is shown - and the report it self has on option to print. If …

Software Development dataset listview
Member Avatar for waqassilat
0
855
Member Avatar for M.Waqas Aslam

hello ! i am working on a simple application that can block the sites ,after searching i found that if i add name of the site in c:\windows\system32\drivers\etc\hosts then i can block those sites , for this i want to open this hosts file in my textbox with administrator rights …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
190
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Software Development java
Member Avatar for stultuske
0
232
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> #include<ctype.h> void main() { char str[50]; int i=0; printf("enter the string: "); fgets(str,sizeof(str),stdin); printf("the abbrevation of string is"); printf("%c",toupper(str[i])); for(i=0;str[i]!='\0';i++) { if(str[i]== '') { i++; printf("%c",toupper(str[i])); } } } error at line 14

Software Development c
Member Avatar for rithish
0
134
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { char x[10],y[10]; int i,j,k,flag=0; printf("enter the string: "); fgets(x,sizof(x),stdin); for(i=0;x[i]!='\0';i++) for(j=0,k=i;x[k]!='\0';j++,k--) { y[j]=x[k]; } if(x==y) { printf("the string is palindrome"); } else { printf("not palindrome"); } }

Software Development c
Member Avatar for rithish
-1
305
Member Avatar for MasterHacker110

I have setup my own server(just a windows XP service pack 2 installed) now i want my friend to connect to it. I understand that there are 2 ways to do this. You can type in your CMD: telnet [IP Address] [PORT] Or you could type: telnet and then the …

Software Development shell-scripting
Member Avatar for rch1231
0
238
Member Avatar for userIT

I have this code that supposed to display the values from an array to a text file #include <iostream> #include <cstdlib> #include <fstream> #include <vector> using namespace std; int array[7][4]; fstream file2; template< typename T > void display( const vector< vector<T> >& matrix ) { for(int i = 0; i …

Software Development c++ file-system ios
Member Avatar for userIT
0
239
Member Avatar for Suzie999

I'm trying to split an array which is that of unsigned char where NULL marks the split point I have written this code, but it just looks clunky, and I would like to ask advice on any other more efficient methods of doing such a thing there might be. #include …

Software Development c++
Member Avatar for Suzie999
0
1K
Member Avatar for njbst18

I'm new to creating jar files. I'm using JCreator and have set up the jar creation and the manifest using winrar and txt to get it to run. However if I run the .jar from anywhere other than the programs root directory all the images vanish. I have been looking …

Software Development image java
Member Avatar for NormR1
0
753

The End.