199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vinochick

I am very new to C++ and have the slightest idea where to start. Here are the directions for the project I'm doing. Below is a copy of the program that I have so far. An internet service provider has three different subscription packages for its customers: Package A: For …

Member Avatar for jonsca
0
765
Member Avatar for mrjoli021

i have a class called sqlConn.php within the same directory as hiuser.php how do i call that class. [code] include('sql_Conn.php'); $sql = new sql_Conn; [/code] does not work i get Warning: include(sql_Conn.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/TestSite/hiUser.php on line 10 Warning: include() [function.include]: …

Member Avatar for venkat0904
0
166
Member Avatar for ricksvoid

I have a simple sqlDataSource that populates a GridView control Nothing out of the ordinary here. [CODE] <asp:SqlDataSource ID="personalInfoSource" runat="server" ConnectionString="<%$ appSettings:Maya%>" SelectCommand="SELECT customerID, lname, fname, dateNow FROM dbo.customers ORDER BY lname ASC"> </asp:SqlDataSource> <asp:GridView ID="names" runat="server" Width="280px" DataSourceID="personalInfoSource" AutoGenerateColumns="False" DataKeyNames="customerID" AllowSorting="True"> <RowStyle BackColor="#FFBA00" Font-Names="arial" ForeColor="#26354a" /> <AlternatingRowStyle BackColor="#D3DCE6" Font-Names="arial" …

Member Avatar for Ramesh S
0
236
Member Avatar for Sucesso

Hi, everybody. I've been a member for a while, but I'm not a coder, so I haven't made any posts. But I get frustrated not knowing how to do things. So I'm taking the plunge. I'm working through a tutorial on PHP and MySQL (here: [url]http://dev.mysql.com/tech-resources/articles/ddws/[/url]), and things have been …

Member Avatar for venkat0904
0
229
Member Avatar for ankur_

I am starting to learn C basic OS Concepts and I have to code them using C. Can anyone suggest me some good links where I can get basics of the complete OS Concepts like (process,IPC,thread,sheduling,File management,Memory management, Security) I have got good idea about the concepts but I am …

Member Avatar for ankur_
0
137
Member Avatar for maverick405

Hello, please help me I am trying to write program that allows a user to enter 10 numbers, stores in an array and then displays each with it's square (no * no) and cube (no * no * no), I am able to get square but cube in not working, …

Member Avatar for abhi_elementx
0
2K
Member Avatar for ArjunRaja

Hi I am new to C. I want use properties file in C like how we use in "java" and "Perl". I want to read the values from a file and have to use those values in another file. This logic is to avoid hardcoding username and password.

Member Avatar for ArjunRaja
0
120
Member Avatar for gretty

Hi I have downloaded an editor called OceanTiger CSDesigner & it has no compiler with it. I have read the sticky posts, & I know that I could use netbeans or microsoft visual instead but I want OceanTiger because its small like Dev c++ & doesn't uses heaps of memory …

Member Avatar for thines01
0
153
Member Avatar for Whilliam

Hello, I've been having problems with my program. I really don't get files that much. This is my code: [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> #include<conio.h> #define max 3 typedef struct { char FName[24]; char LName[16]; char MI; }name; typedef struct { unsigned long ID; name n; char course[8]; int level; }profile; …

Member Avatar for super-sonic
0
140
Member Avatar for railmaster7

I'm making a header file to make, sort, and print a vector using heapsort. I keep getting a compiler error about my const char[100] array. Probably something really simple I'm missing...I hope. In function `void build_list(std::vector<T, std::allocator<_CharT> >&, const char*)': 16 expected primary-expression before "const" 16 expected `;' before "const" …

Member Avatar for Dave Sinkula
0
206
Member Avatar for LennieKuah

Hi there, Please help me. I am having problem trying to include Checkbox in 1st Column in DataGrid for all the Rows. Being a newbie and I am struggling doing it. I need your help.

Member Avatar for LennieKuah
0
196
Member Avatar for Kaddolas

Hi I wonder how I do to remove usersid from 1915 to 1945 for example in MS Sql? [code=sql]Delete from [dbo].[user] where user ID = 1915 to userID 1945[/code] When i add that i get this message: Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword …

Member Avatar for mail2saion
0
105
Member Avatar for Stefano Mtangoo

I have read several tutorials and 'philosophical' views aon writting PHP codes by either implementing templates or making your own templates. So me says template engines are like learning new language, som e say are good. Good controversy! What do you suggest guys, I mean pros and cons of each …

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for vinochick
Member Avatar for Dave Sinkula
0
905
Member Avatar for gallantmon1

Does anyone know where I can have access to SHA-2 algorithms? Preferably, in Java but C can also do. Thanks

Member Avatar for calccrypto
0
93
Member Avatar for scott6480

I am having a problem with my program. We are supposed to ask for two numbers as input then half the larger and double the smaller. If the larger is odd then the smaller is added to an accumulator. My problem lies (i'm guessing) somewhere in the functions. Here is …

Member Avatar for Dave Sinkula
0
206
Member Avatar for Art_Vandelay

Hello, So I'm just starting to learn c++ and am trying to make a tic tac toe game. My problem is where it says (board[pMove - 1] != 'X' || 'O'); it's supposed to see if there is already an x or o in the spot and then place the …

Member Avatar for Art_Vandelay
0
95
Member Avatar for lifeh2o

I am trying to make a desktop application that can fetch live scores from web and save them to a database for offline view. Also if you know any open source application that is capable of displaying scores by fecthing from web then please tell. I dont know how to …

Member Avatar for kvprajapati
0
126
Member Avatar for MeBjess

This is part of some class work I have to do, but this is not what I am turning in as my assignment! It does have some bugs, but as long as the user only enters an integer it runs fine. I have included just the part of the code …

Member Avatar for MeBjess
0
116
Member Avatar for rysin

[CODE] #include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { string names[] = {"Jim", "Rob", "Sam", "Tim"}; int i; i = 0; string stain; stain = "f"; while (stain == "f") { if (names[i] == "") { stain = "p"; } i += 1; } for (int …

Member Avatar for jbennet
0
129
Member Avatar for briantrumpet

How do you stop forms from being movable and resizeable after you have maximized them in code.(this only happens if the maximize box is disabled) If you maximize a form with the maximize button it does not let you move or resize the form.

Member Avatar for DdoubleD
0
1K
Member Avatar for CanYouHandstand

Hey All I've recently picked up a VCL delphi project and am quite new to the language. The software so far consists of a main form, with several GroupBoxes and panels covering the entire form. I'm trying to implement some user short cuts, for example when "Ctrl+1" is pressed I …

Member Avatar for CanYouHandstand
0
2K
Member Avatar for dmm

Let's say I'm writing to a file a series of integers like this: 4 3 2 1 0 After writing the last number (or the last line), can I delete that last one?

Member Avatar for William Hemsworth
0
79
Member Avatar for lotrsimp12345

1>c:\users\...\documents\visual studio 2008\projects\generic bst container\generic bst container\my_bst.h(80) : warning C4717: 'my_bst<int,int>::insert_sub' : recursive on all control paths, function will cause runtime stack overflow TEST.CPP #include <iostream> #include "my_bst.h" using namespace std; int main() { my_bst<int,int> ab; ab.insert(5,10); return 0; } MY_BST_NODE.H #ifndef MY_BST_NODE_H #define MY_BST_NODE_H #include <iostream> using namespace std; …

Member Avatar for Kontained
0
198
Member Avatar for snehula

Hi :-) Yeah I'm new to this whole thing, that's why I'm probably going to ask a lot of stupid questions, I apologize in advance.. The story is: I'm writing a program to enter a string and a search character and output the number of times this character occured in …

Member Avatar for quuba
0
134
Member Avatar for fadia

Hi guys.. I've started but don't know what to do next.. can someone please help. This is the question.. Q:- Write a program to define a class to implement the time of day. A clock gives the time of day, let us call this class ClockType. Furthermore, to represent the …

Member Avatar for fadia
0
305
Member Avatar for brando|away

I'm not sure if this is the right forum, but i always seem to get redirected here with questions regarding .NET Im using Managed C++ and im trying to edit a registry key. [code] using namespace System; using namespace Microsoft::Win32; int main() { RegistryKey^ rk = Registry::CurrentUser; rk->OpenSubKey(L"Software\\Microsoft\\Command Processor", true); …

Member Avatar for brando|away
0
103
Member Avatar for Goalatio

Hey guys, I am on the Windows OS using NASM16, and I'd like to know how to set the system time.. Code so far: [CODE][org 0100h] ;COM format %include "Lib_1\Lib1.asm" ;settime Hour minute second date month year ;settime "6" "35" "00" "06" "01" "09" ;-------------------- ;Lib1.asm ;string - Displays a …

0
82
Member Avatar for hedwards09

Hello, I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main …

Member Avatar for brownjohn
0
121
Member Avatar for nguerrero03

I've long looked at this site for advice, but I'm stuck now. I have an idea of WHAT I need to do, but don't know exactly how to do it. YES this is homework. NO I'm not asking for anyone to completely do it because I need to learn this …

Member Avatar for nguerrero03
0
544
Member Avatar for Afupi

I am very new to using the STL list library. From what I have been reading here and other places on the web is that I have to create a compare function to use within the sort member function of list. The reason being that the list node's contain structures. …

Member Avatar for Afupi
0
333
Member Avatar for whitestream6

I'm trying to set dynamic titles on my pages with a switch statement, but can't get it to work. Tried ifelse using code gleaned from Google but it didn't work. I'm trying to get it so that all my pages' titles are able to be dynamically used from a value …

Member Avatar for rokape
0
226
Member Avatar for StaticX

Hi i am in need of an explanation to the following: I have created a program to take in a string(stored in a character array). With my string,i must pass it into a function and 2 functions i have created are stringLength and toUpperCase.(i know there are string functions to …

Member Avatar for StaticX
0
98
Member Avatar for ybean4

Hi, I'm looking for a way to write programs for a pc on a palm and "compile" them (check them for compiling errors without actually creating an executable). Any ideas? Thanks

Member Avatar for ybean4
0
77
Member Avatar for pac-man

Hi guys, I have a static vector which holds objects of a class. I want this vector to be singleton i.e. be the only vector of this type which will indefinitely store the relevant objects. Unfortunately, a problem arises whereby, when I access the vector from a different class, for …

Member Avatar for pac-man
0
844
Member Avatar for acdougla17

OK, so I have this project to do and cant figure it out. I am not positive on calling functions correctly and I am kind of lost when it comes to parameter passing. So my program needs to read a text file 1 integer at a time, find out if …

Member Avatar for restrictment
0
155
Member Avatar for react05

How would I call the function so the program runs through each option. I've got the program done but everything i run it, the options do not run. Any help? Thanks. [code]#include <iostream> #include <fstream> #include <iomanip> using namespace std; void readMatrix (double x[][30], int & m, int & n); …

Member Avatar for react05
0
116
Member Avatar for shakunni

How do you add a character to an existing string? In java you could just do: char c='a'; String b="posit"; b+=c; but I tried doing that in C and it doesnt work. Is there a workaround? Thanks.

Member Avatar for shakunni
0
93
Member Avatar for shakunni

I need to read data from a flat file [find below] into a linked list. Each line is a record and each record needs to be read into a different node. After I open the file using fopen(), I have the following problem: 1) How do I move from the …

Member Avatar for gerard4143
0
105
Member Avatar for ulxlx

I've made pong and was wondering how I could embed it (it was made in java). I'm new to java so if you could explain it, that would be helpful, but if you can't that's ok. Thanks in advance :icon_mrgreen:.

Member Avatar for ulxlx
0
177
Member Avatar for smd5049

will someone please help me with this. It seems simple enough but I'm very new to asp and vb. I have a datagrid and I want to know how to access the values in a specific column. The dg is bound to a sql query. The column returns integer values …

Member Avatar for smd5049
0
139
Member Avatar for mitsuevo

hey guys, Got another question: in C programming etc we can stop an execution of say an infinite look by pressing Ctrl+C. What's the equivalent in python? i'm using the IDLE GUI. I've found myself in situations where its running a never ending long task which i want to stall, …

Member Avatar for jlm699
0
110
Member Avatar for shakunni

Hey, How do I create a file from a C program? I want to check if the file exists and if it doesnt, then create it. I am using the following code to check if it exists: [code] filecheck() { b=fopen("password.csv","r+w"); if(b==NULL) { // need code for creating a file …

Member Avatar for venomxxl
0
118
Member Avatar for PopeJareth

Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Member Avatar for PopeJareth
0
256
Member Avatar for pyprog

Can I pass a string filename as a parameter to a function? For example, [CODE]def func("something.txt"):[/CODE] When I do this, it says that the syntax is invalid. Is there a proper way to do it or it is simply not done?

Member Avatar for pythopian
0
118
Member Avatar for mitchstokes225

I have tried the two ways below to get my functions to call and run, but VS gives me the error error c2660: ..... function does not take 0 arguments First way tried [code] //Michelle CSI 130 Lab 11 Part 2 Section B //Digital logic and Boolean algebra #include <iostream> …

Member Avatar for mikiurban
0
143
Member Avatar for tag234

Hello, I am currently trying to write a program that will read from either stdin from a file (using <) or from piped input. I have the portion using the < working because i am able to read the st_size of the file and create a read() call accordingly: read(0,&inptr,stdinfo.st_size); …

Member Avatar for banders7
0
194
Member Avatar for jppr03

Hi! I need a button in php code, that when i click on that button it export's my SELECT to a text file or excell file.. i searched.. there's a lot of program's that make that.. but i don't want that.. i want to make on my webpage a simple …

Member Avatar for jppr03
0
2K
Member Avatar for luxxnatura

Hi all, I'm supposed to write a small program that asks the user for a number of a month( 1= Jan, 2=Feb, etc) and then outputs the month name and the month number. If the number entered is invalid (for example, > 12 or equal 0), then the user receives …

Member Avatar for luxxnatura
0
91
Member Avatar for jimmy1234

How would I go about changing this to grab the sku without making it static as I have it below: [CODE=php]<?php if($this->getProduct()->getSku()=='SKU###'){ $titles=array('Color 1:','Home Color 2:'); $url = Mage::getBaseUrl(); $skinUrl = $this->getSkinUrl('images/catalog/product/placeholder/'); require_once 'app/code/local/Temgra/ColorCustomOptions/colorCustomOptions.php'; colorCustomOptions1($this->getProduct(), $titles, $url, $skinUrl); } ?>[/CODE] What this does is grabs the sku of a product …

0
48

The End.